mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Correctly handle COLLATE clauses in tables being modified by an
ALTER TABLE ADD COLUMN command. Ticket #1665. (CVS 3060) FossilOrigin-Name: baef2f66be164910881278ea527d2be75ac2e944
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is testing the ALTER TABLE statement.
|
||||
#
|
||||
# $Id: alter.test,v 1.16 2006/01/17 09:35:02 danielk1977 Exp $
|
||||
# $Id: alter.test,v 1.17 2006/02/09 02:56:03 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -618,5 +618,17 @@ do_test alter-6.7 {
|
||||
"
|
||||
} {4 5}
|
||||
|
||||
finish_test
|
||||
# Ticket #1665: Make sure ALTER TABLE ADD COLUMN works on a table
|
||||
# that includes a COLLATE clause.
|
||||
#
|
||||
do_test alter-7.1 {
|
||||
execsql {
|
||||
CREATE TABLE t1(a TEXT COLLATE BINARY);
|
||||
ALTER TABLE t1 ADD COLUMN b INTEGER COLLATE NOCASE;
|
||||
INSERT INTO t1 VALUES(1,'2');
|
||||
SELECT typeof(a), a, typeof(b), b FROM t1;
|
||||
}
|
||||
} {text 1 integer 2}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user