1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add releasetest.tcl cases for SQLITE_LIKE_DOESNT_MATCH_BLOB and

for SQLITE_ENABLE_CURSOR_HINTS.

FossilOrigin-Name: f300c35efa5f7383b2a74b1c9466c243c17815e4
This commit is contained in:
drh
2016-01-04 01:08:50 +00:00
parent dc0b1f1c29
commit 7f10579a82
4 changed files with 16 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
C Bug\sfix:\sthe\sconflict\sresolution\sbehavior\sfor\sthe\simplied\sNOT\sNULL\sconstraint\non\sthe\sPRIMARY\sKEY\sof\sa\sWITHOUT\sROWID\stable\sshould\sbe\sABORT. C Add\sreleasetest.tcl\scases\sfor\sSQLITE_LIKE_DOESNT_MATCH_BLOB\sand\nfor\sSQLITE_ENABLE_CURSOR_HINTS.
D 2016-01-03T18:07:57.631 D 2016-01-04T01:08:50.342
F Makefile.in 28bcd6149e050dff35d4dcfd97e890cd387a499d F Makefile.in 28bcd6149e050dff35d4dcfd97e890cd387a499d
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
F Makefile.msc 5fff077fcc46de7714ed6eebb6159a4c00eab751 F Makefile.msc 5fff077fcc46de7714ed6eebb6159a4c00eab751
@@ -562,7 +562,7 @@ F test/crashtest1.c 09c1c7d728ccf4feb9e481671e29dda5669bbcc2
F test/createtab.test b5de160630b209c4b8925bdcbbaf48cc90b67fe8 F test/createtab.test b5de160630b209c4b8925bdcbbaf48cc90b67fe8
F test/cse.test 277350a26264495e86b1785f34d2d0c8600e021c F test/cse.test 277350a26264495e86b1785f34d2d0c8600e021c
F test/ctime.test 7bd009071e242aac4f18521581536b652b789a47 F test/ctime.test 7bd009071e242aac4f18521581536b652b789a47
F test/cursorhint.test 432811b62bd5ffb812729f49bba3b9ad687550bb F test/cursorhint.test 7bc346788390475e77a345da2b92270d04d35856
F test/date.test 984ac1e3e5e031386866f034006148d3972b4a65 F test/date.test 984ac1e3e5e031386866f034006148d3972b4a65
F test/dbstatus.test 8de104bb5606f19537d23cd553b41349b5ab1204 F test/dbstatus.test 8de104bb5606f19537d23cd553b41349b5ab1204
F test/dbstatus2.test 10418e62b3db5dca070f0c3eef3ea13946f339c2 F test/dbstatus2.test 10418e62b3db5dca070f0c3eef3ea13946f339c2
@@ -947,7 +947,7 @@ F test/rbu.test 168573d353cd0fd10196b87b0caa322c144ef736
F test/rdonly.test 64e2696c322e3538df0b1ed624e21f9a23ed9ff8 F test/rdonly.test 64e2696c322e3538df0b1ed624e21f9a23ed9ff8
F test/regexp1.test 497ea812f264d12b6198d6e50a76be4a1973a9d8 F test/regexp1.test 497ea812f264d12b6198d6e50a76be4a1973a9d8
F test/reindex.test 44edd3966b474468b823d481eafef0c305022254 F test/reindex.test 44edd3966b474468b823d481eafef0c305022254
F test/releasetest.tcl f84ff16fef79ee5d328eee7c48da084a775d101c F test/releasetest.tcl 975449bf742b8bb9025208292208af816a1fcb58
F test/resolver01.test f4022acafda7f4d40eca94dbf16bc5fc4ac30ceb F test/resolver01.test f4022acafda7f4d40eca94dbf16bc5fc4ac30ceb
F test/rollback.test 458fe73eb3ffdfdf9f6ba3e9b7350a6220414dea F test/rollback.test 458fe73eb3ffdfdf9f6ba3e9b7350a6220414dea
F test/rollback2.test fc14cf6d1a2b250d2735ef16124b971bce152f14 F test/rollback2.test fc14cf6d1a2b250d2735ef16124b971bce152f14
@@ -1406,7 +1406,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P 76f5efa68728d899a63a74f2528dfd0c497aa5f0 P e30062e9f6cae980150dda7df440b36dfdcb7bbe
R 478df71a9631f4b73fcefbae5de2f355 R 60c0d617eaaaa3eb60de4d61ace77f3f
U drh U drh
Z 2ce3cb02ff6782c368c437352328d0d1 Z bf759b86247c24cfa4d33f391ba06db6

View File

@@ -1 +1 @@
e30062e9f6cae980150dda7df440b36dfdcb7bbe f300c35efa5f7383b2a74b1c9466c243c17815e4

View File

@@ -46,10 +46,10 @@ proc p4_of_opcode {db opcode sql} {
# Run EXPLAIN on $sql. Return a list of P5 values for all $opcode # Run EXPLAIN on $sql. Return a list of P5 values for all $opcode
# opcodes that contain regexp $comment in their comment # opcodes that contain regexp $comment in their comment
# #
proc p5_of_opcode {db opcode comment sql} { proc p5_of_opcode {db opcode sql} {
set res {} set res {}
$db eval "EXPLAIN $sql" x { $db eval "EXPLAIN $sql" x {
if {$x(opcode)==$opcode && [regexp $comment $x(comment)]} { if {$x(opcode)==$opcode} {
lappend res $x(p5) lappend res $x(p5)
} }
} }
@@ -66,7 +66,7 @@ do_test 1.1 {
} }
} {{EQ(r[1],c0)}} } {{EQ(r[1],c0)}}
do_test 1.2 { do_test 1.2 {
p5_of_opcode db OpenRead . { p5_of_opcode db OpenRead {
SELECT * FROM t1 CROSS JOIN t2 WHERE a=x SELECT * FROM t1 CROSS JOIN t2 WHERE a=x
} }
} {00 00} } {00 00}
@@ -79,7 +79,7 @@ do_test 2.1 {
} }
} {{EQ(c0,r[1])}} } {{EQ(c0,r[1])}}
do_test 2.2 { do_test 2.2 {
p5_of_opcode db OpenRead . { p5_of_opcode db OpenRead {
SELECT * FROM t2 CROSS JOIN t1 WHERE a=x SELECT * FROM t2 CROSS JOIN t1 WHERE a=x
} }
} {00 00} } {00 00}
@@ -114,7 +114,7 @@ do_test 4.1desc {
} }
} {GT(c0,11)} } {GT(c0,11)}
do_test 4.2 { do_test 4.2 {
p5_of_opcode db OpenRead . { p5_of_opcode db OpenRead {
SELECT * FROM t1 WHERE b>11; SELECT * FROM t1 WHERE b>11;
} }
} {02 00} } {02 00}
@@ -129,7 +129,7 @@ do_test 4.3desc {
} }
} {} } {}
do_test 4.4 { do_test 4.4 {
p5_of_opcode db OpenRead . { p5_of_opcode db OpenRead {
SELECT c FROM t1 WHERE b<11; SELECT c FROM t1 WHERE b<11;
} }
} {00} } {00}

View File

@@ -86,6 +86,8 @@ array set ::Configs [strip_comments {
-DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_DEFAULT_FILE_FORMAT=4
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
-DSQLITE_ENABLE_STMT_SCANSTATUS -DSQLITE_ENABLE_STMT_SCANSTATUS
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS
-DSQLITE_ENABLE_CURSOR_HINTS
--enable-json1 --enable-json1
} }
"Check-Symbols" { "Check-Symbols" {