mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187)
FossilOrigin-Name: 7b69968618bfc19f0c1ab25c5f16c9fdff5af094
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is collation sequences in concert with triggers.
|
||||
#
|
||||
# $Id: collate6.test,v 1.3 2007/07/26 10:16:30 danielk1977 Exp $
|
||||
# $Id: collate6.test,v 1.4 2007/07/30 14:40:48 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -136,5 +136,18 @@ do_test collate6-2.3 {
|
||||
}
|
||||
} {}
|
||||
|
||||
# At one point the 6-3.2 (but not 6-3.1) was causing an assert() to fail.
|
||||
#
|
||||
do_test collate6-3.1 {
|
||||
execsql {
|
||||
SELECT 1 FROM sqlite_master WHERE name COLLATE nocase = 'hello';
|
||||
}
|
||||
} {}
|
||||
do_test collate6-3.2 {
|
||||
execsql {
|
||||
SELECT 1 FROM sqlite_master WHERE 'hello' = name COLLATE nocase;
|
||||
}
|
||||
} {}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user