os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/config/Panics.ini
First public contribution.
2 // Called by Panics.script.
3 // Tests that PANICs occur in the right situations.
5 // Attempt to use an RSqlStatement object without an RSqlDatabase.
17 // Doesn't actually call ParameterIndex, just gets it on the internal array,
19 ParameterIndex0=2,*explicit*
20 // Use position 0, which contains ParameterIndex 2 which is invalid.
21 StreamWriteBindBin1=0,Z:\TEF_SQL\TestData\reference1.bin
23 // Doesn't actually call ParameterIndex, just gets it on the internal array,
25 ParameterIndex0=2,*explicit*
26 // Use position 0, which contains ParameterIndex 2 which is invalid.
27 BindInt64_1=0,Z:\TEF_SQL\TestData\reference1.bin
29 // Doesn't actually call ColumnIndex, just gets it on the internal array,
31 ColumnIndex0=2,*explicit*
32 // Use position 0, which contains ColumnIndex 2 which is invalid.
35 // Doesn't actually call ColumnIndex, just gets it on the internal array,
37 ColumnIndex0=2,*explicit*
38 // Use position 0, which contains ColumnIndex 2 which is invalid.
41 // Doesn't actually call ColumnIndex, just gets it on the internal array,
43 ColumnIndex0=2,*explicit*
44 // Use position 0, which contains ColumnIndex 2 which is invalid.
47 // ///////////////////////////////////////////////////////////////////////////
49 // Attempt to use an RSqlDatabase which isn't open. Not exhaustive..
51 Open0=Z:\TEF_SQL\TestData\test1.db
53 Exec2=Select * from MonkeyPuzzle;
55 Open0=Z:\TEF_SQL\TestData\test1.db
57 SetIsolationLevel2=EReadUncommitted
59 Open0=Z:\TEF_SQL\TestData\test1.db
61 Attach2=Z:\TEF_SQL\TestData\test1.db,fruitgum
63 Open0=Z:\TEF_SQL\TestData\test1.db
67 Open0=Z:\TEF_SQL\TestData\test1.db
71 Open0=Z:\TEF_SQL\TestData\test1.db
74 // Runs a create that should fail, then attempts to run an Exec..
76 Create0=A:\wontwork.db
77 ExpectedError0=KErrNotReady
78 Exec1=delete * from hello;
80 // ///////////////////////////////////////////////////////////////////////////
82 // Try using a Column* call when we've gone off the end of the table, i.e
83 // Next gave a KSqlAtEnd.
86 ExpectedError0=KErrNotFound
88 Exec2=Create Table Con( Someint int primary key, Somereal real, Sometext text);
89 Exec3=Insert into Con values(1, 2.0, "Three");
90 Exec4=Insert into Con values(2, 3.0, "Four");
91 Exec5=Insert into Con values(3, 4.0, "Five");
92 Prepare6=select * from Con;
99 // Try using a Column* call when we've gone off the end of the table.
102 Prepare1=select * from Con;
108 // Try using a Column* call when we've gone off the end of the table.
112 Prepare1=select * from Con;
118 // Try using a Column* call when we've gone off the end of the table.
122 Prepare1=select * from Con;
128 // Try using a Column* call when we've gone off the end of the table.
132 Prepare1=select * from Con;
138 // Try using a Column* call when we've gone off the end of the table.
142 Prepare1=select * from Con;
148 // Try using a Column* call when we've gone off the end of the table.
149 // Don't bother with all 3 different columntext methods.
153 Prepare1=select * from Con;
159 // Try using a Column* call when we've gone off the end of the table.
163 Prepare1=select * from Con;
169 // Try using a Column* call when we've gone off the end of the table.
170 StreamReadColText7=0,Z:\TEF_SQL\TestData\reference1.txt
171 // Use a bad parameter index.
174 Prepare1=insert into Con(Someint, Somereal) values(:a, :b);
177 // Parameter index 2 is bad.
178 ParameterIndex4=2,*explicit*
184 // ///////////////////////////////////////////////////////////////////////////
186 // Use a parameter index which is out of bounds.
189 Prepare1=insert into con(Sometext) values (:fred);
190 ParameterIndex2=:fred
191 ParameterIndex3=3,*explicit*
192 BindText4=0,My hovercraft
193 BindText5=1,is full of eels
195 // Attempt to find the columntype for a bad columnindex.
198 Prepare1=select * from Con;
201 // Setup a bad column index in slot 1..
202 ColumnIndex3=3,*explicit*
204 // Have to be at a row for ColumnType to work. This is because SQLite isn't
206 ColumnType5=0,ESqlInt
207 ColumnType6=1,kaboom!
209 // Try doing a Next on an unprepared RSqlStatement.
214 // ///////////////////////////////////////////////////////////////////////////
216 // Attempt to read a column entry without selecting it.
219 Prepare1=select Sometext, Somereal from Con;
221 ExpectedError2=KErrNotFound
232 // ///////////////////////////////////////////////////////////////////////////
234 // Runs ParameterIndex on a non-existent table.
237 Prepare1=Insert into carpet(john, paul, george, ringo) values(:a, :b, :c, :d);
238 ExpectedError1=KSqlErrGeneral
242 // ///////////////////////////////////////////////////////////////////////////