Create separate affinities for INTEGER and REAL. (CVS 2766)

FossilOrigin-Name: ce06c123d0c5663dbaf263c2e0aaf5d9cdeb2ccd
This commit is contained in:
drh
2005-11-14 22:29:05 +00:00
parent a8f1914b72
commit 8a51256c0c
29 changed files with 318 additions and 248 deletions
+10 -10
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing CHECK constraints
#
# $Id: check.test,v 1.5 2005/11/03 12:33:29 drh Exp $
# $Id: check.test,v 1.6 2005/11/14 22:29:06 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -35,7 +35,7 @@ do_test check-1.2 {
INSERT INTO t1 VALUES(3,4);
SELECT * FROM t1;
}
} {3 4}
} {3 4.0}
do_test check-1.3 {
catchsql {
INSERT INTO t1 VALUES(6,7);
@@ -45,7 +45,7 @@ do_test check-1.4 {
execsql {
SELECT * FROM t1;
}
} {3 4}
} {3 4.0}
do_test check-1.5 {
catchsql {
INSERT INTO t1 VALUES(4,3);
@@ -55,7 +55,7 @@ do_test check-1.6 {
execsql {
SELECT * FROM t1;
}
} {3 4}
} {3 4.0}
do_test check-1.7 {
catchsql {
INSERT INTO t1 VALUES(NULL,6);
@@ -65,7 +65,7 @@ do_test check-1.8 {
execsql {
SELECT * FROM t1;
}
} {3 4 {} 6}
} {3 4.0 {} 6.0}
do_test check-1.9 {
catchsql {
INSERT INTO t1 VALUES(2,NULL);
@@ -75,14 +75,14 @@ do_test check-1.10 {
execsql {
SELECT * FROM t1;
}
} {3 4 {} 6 2 {}}
} {3 4.0 {} 6.0 2 {}}
do_test check-1.11 {
execsql {
DELETE FROM t1 WHERE x IS NULL OR x!=3;
UPDATE t1 SET x=2 WHERE x==3;
SELECT * FROM t1;
}
} {2 4}
} {2 4.0}
do_test check-1.12 {
catchsql {
UPDATE t1 SET x=7 WHERE x==2
@@ -92,7 +92,7 @@ do_test check-1.13 {
execsql {
SELECT * FROM t1;
}
} {2 4}
} {2 4.0}
do_test check-1.14 {
catchsql {
UPDATE t1 SET x=5 WHERE x==2
@@ -102,7 +102,7 @@ do_test check-1.15 {
execsql {
SELECT * FROM t1;
}
} {2 4}
} {2 4.0}
do_test check-1.16 {
catchsql {
UPDATE t1 SET x=4, y=11 WHERE x==2
@@ -112,7 +112,7 @@ do_test check-1.17 {
execsql {
SELECT * FROM t1;
}
} {4 11}
} {4 11.0}
do_test check-2.1 {
execsql {