1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix for ticket #297 - bug in sqliteSortCompare(). (CVS 917)

FossilOrigin-Name: 4ded1965eb83dee0f28c27ba935d615c77331571
This commit is contained in:
drh
2003-04-18 17:45:14 +00:00
parent a5f668327b
commit cab20050bb
4 changed files with 23 additions and 14 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the CREATE TABLE statement.
#
# $Id: sort.test,v 1.8 2003/01/18 20:11:07 drh Exp $
# $Id: sort.test,v 1.9 2003/04/18 17:45:15 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -347,4 +347,15 @@ do_test sort-7.14 {
}
} {1 11 12 2}
# Ticket #297
#
do_test sort-8.1 {
execsql {
CREATE TABLE t5(a real, b text);
INSERT INTO t5 VALUES(100,'A1');
INSERT INTO t5 VALUES(100.0,'A2');
SELECT * FROM t5 ORDER BY a, b;
}
} {100 A1 100.0 A2}
finish_test