mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-24 14:17:58 +03:00
If a unique index covers any prefix of the ORDER BY clause then let it
satisfy the ORDER BY clause. (CVS 5301) FossilOrigin-Name: e53403b6d742be83c5b130ed6cef4035d081d613
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
# This file implements tests for miscellanous features that were
|
||||
# left out of other test files.
|
||||
#
|
||||
# $Id: misc3.test,v 1.18 2008/01/19 23:50:26 drh Exp $
|
||||
# $Id: misc3.test,v 1.19 2008/06/25 02:47:57 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -274,7 +274,7 @@ ifcapable {explain} {
|
||||
} {1}
|
||||
do_test misc3-6.11 {
|
||||
set x [execsql {
|
||||
EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY a, b DESC
|
||||
EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY +a, b DESC
|
||||
}]
|
||||
set y [regexp { 123456789012 } $x]
|
||||
lappend y [regexp { 4.5678 } $x]
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# explicit sort order and explicit collating secquites) and
|
||||
# with and without optional LIMIT and OFFSET clauses.
|
||||
#
|
||||
# $Id: selectA.test,v 1.1 2008/06/25 02:22:32 drh Exp $
|
||||
# $Id: selectA.test,v 1.2 2008/06/25 02:47:57 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
Reference in New Issue
Block a user