OLD | NEW |
1 # 2012 October 24 | 1 # 2012 October 24 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 do_execsql_test instr-1.60 { | 241 do_execsql_test instr-1.60 { |
242 SELECT coalesce(instr(NULL,'abc'), 999); | 242 SELECT coalesce(instr(NULL,'abc'), 999); |
243 } {999} | 243 } {999} |
244 do_execsql_test instr-1.61 { | 244 do_execsql_test instr-1.61 { |
245 SELECT coalesce(instr('abc',NULL), 999); | 245 SELECT coalesce(instr('abc',NULL), 999); |
246 } {999} | 246 } {999} |
247 do_execsql_test instr-1.62 { | 247 do_execsql_test instr-1.62 { |
248 SELECT coalesce(instr(NULL,NULL), 999); | 248 SELECT coalesce(instr(NULL,NULL), 999); |
249 } {999} | 249 } {999} |
250 | 250 |
| 251 do_execsql_test instr-1.63 { |
| 252 SELECT instr(X'', 'abc') |
| 253 } 0 |
| 254 do_execsql_test instr-1.64 { |
| 255 CREATE TABLE x1(a, b); |
| 256 INSERT INTO x1 VALUES(X'', 'abc'); |
| 257 SELECT instr(a, b) FROM x1; |
| 258 } 0 |
| 259 |
251 finish_test | 260 finish_test |
OLD | NEW |