1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Modified statement machine in sqlite3_complete() to return 0 on empty string.

Added/updated tests for same.  Ticket 356c885b0b.

FossilOrigin-Name: 76eca7295cf7df4bef013af6c8c37251300cd383
This commit is contained in:
shaneh
2009-12-17 22:17:38 +00:00
parent 4e7b32f37f
commit c7d526e92b
4 changed files with 315 additions and 289 deletions

View File

@ -25,21 +25,40 @@ ifcapable {complete} {
do_test main-1.1 {
db complete {This is a test}
} {0}
do_test main-1.2 {
do_test main-1.2.0 {
db complete {
}
} {1}
do_test main-1.3 {
} {0}
do_test main-1.2.1 {
db complete {}
} {0}
do_test main-1.3.0 {
db complete {
-- a comment ;
}
} {1}
do_test main-1.4 {
} {0}
do_test main-1.3.1 {
db complete {
/* a comment ; */
}
} {0}
do_test main-1.4.0 {
db complete {
-- a comment ;
;
}
} {1}
do_test main-1.4.1 {
db complete {
/* a comment ; */
;
}
} {1}
do_test main-1.4.2 {
db complete {
/* a comment ; */ ;
}
} {1}
do_test main-1.5 {
db complete {DROP TABLE 'xyz;}
} {0}