mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a problem with ORDER BY and compound SELECT queries. (CVS 3995)
FossilOrigin-Name: af76928fc5891f9a222ac0c39f8b443a9707b9e3
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
#
|
||||
# The most complicated trees are for SELECT statements.
|
||||
#
|
||||
# $Id: fuzz.test,v 1.9 2007/05/14 15:49:44 danielk1977 Exp $
|
||||
# $Id: fuzz.test,v 1.10 2007/05/14 16:50:49 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -485,6 +485,17 @@ do_test fuzz-1.12.2 {
|
||||
}
|
||||
} {}
|
||||
|
||||
|
||||
do_test fuzz-1.13 {
|
||||
# The problem here was that when there were more expressions in
|
||||
# the ORDER BY list than the result-set list. The temporary b-tree
|
||||
# used for sorting was being misconfigured in this case.
|
||||
#
|
||||
execsql {
|
||||
SELECT 'abcd' UNION SELECT 'efgh' ORDER BY 1 ASC, 1 ASC;
|
||||
}
|
||||
} {abcd efgh}
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Test some fuzzily generated expressions.
|
||||
#
|
||||
|
Reference in New Issue
Block a user