mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Test coverage improvements. Over 90% of branches are now executed in
both directions. (CVS 3820) FossilOrigin-Name: a776d93ccae3bfa6e992cdd1387571dd21561f98
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.18 2007/02/24 11:52:55 drh Exp $
|
||||
# $Id: alter.test,v 1.19 2007/04/06 02:32:34 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -625,10 +625,11 @@ 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');
|
||||
INSERT INTO t1 VALUES(1,'-2');
|
||||
INSERT INTO t1 VALUES(5.4e-8,'5.4e-8');
|
||||
SELECT typeof(a), a, typeof(b), b FROM t1;
|
||||
}
|
||||
} {text 1 integer 2}
|
||||
} {text 1 integer -2 text 5.4e-8 real 5.4e-08}
|
||||
|
||||
# Make sure that when a column is added by ALTER TABLE ADD COLUMN and has
|
||||
# a default value that the default value is used by aggregate functions.
|
||||
|
Reference in New Issue
Block a user