mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Honor the ORDER BY clause in a subquery that is the right-hand side of an IN
operator. Ticket #827. (CVS 1871) FossilOrigin-Name: 76fe68cff6ce75dada510544b063dc1069eb2e0e
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this file is testing SELECT statements that are part of
|
||||
# expressions.
|
||||
#
|
||||
# $Id: subselect.test,v 1.8 2004/07/20 00:20:23 drh Exp $
|
||||
# $Id: subselect.test,v 1.9 2004/07/26 23:32:27 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -149,5 +149,11 @@ do_test subselect-3.9 {
|
||||
SELECT (SELECT x FROM t3 ORDER BY x DESC LIMIT 1 OFFSET 2);
|
||||
}
|
||||
} {4}
|
||||
do_test subselect-3.10 {
|
||||
execsql {
|
||||
SELECT x FROM t3 WHERE x IN
|
||||
(SELECT x FROM t3 ORDER BY x DESC LIMIT 1 OFFSET 2);
|
||||
}
|
||||
} {4}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user