1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a problem in the WHERE clause generator when the FROM clause is empty. (CVS 6114)

FossilOrigin-Name: a7015625610624be1645e918d0a62cf85bec86ce
This commit is contained in:
drh
2009-01-06 00:08:02 +00:00
parent de58ddb709
commit 813f31eafe
4 changed files with 35 additions and 12 deletions

View File

@ -19,7 +19,7 @@
#
# The most complicated trees are for SELECT statements.
#
# $Id: fuzz.test,v 1.16 2009/01/05 22:30:39 drh Exp $
# $Id: fuzz.test,v 1.17 2009/01/06 00:08:02 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -190,7 +190,6 @@ do_test fuzz-1.16.1 {
}
} {}
do_test fuzz-1.16.2 {
breakpoint
catchsql {
SELECT DISTINCT EXISTS(
SELECT 1
@ -265,6 +264,30 @@ do_test fuzz-1.17 {
}
} {0 {hardware 1 0}}
do_test fuzz-1.18 {
breakpoint
catchsql {
SELECT -2147483649 << upper('fault' NOT IN (
SELECT ALL (
SELECT ALL -1
ORDER BY -2147483649
LIMIT (
SELECT ALL (
SELECT 0 EXCEPT SELECT DISTINCT 'experiments' ORDER BY 1 ASC
)
)
OFFSET EXISTS (
SELECT ALL
(SELECT ALL -2147483648) NOT IN (
SELECT ALL 123456789.1234567899
) IN (SELECT 2147483649)
FROM sqlite_master
) NOT IN (SELECT ALL 'The')
)
))
}
} {0 -4294967298}
#----------------------------------------------------------------
# Test some fuzzily generated expressions.
#