mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Added support for the INTEGER PRIMARY KEY column type. (CVS 333)
FossilOrigin-Name: 236a54d289e858a1e0505a20d907a2a40c01b521
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this file is testing the CREATE UNIQUE INDEX statement,
|
||||
# and primary keys, and the UNIQUE constraint on table columns
|
||||
#
|
||||
# $Id: unique.test,v 1.2 2001/09/27 23:57:06 drh Exp $
|
||||
# $Id: unique.test,v 1.3 2001/12/21 14:30:44 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -28,6 +28,15 @@ do_test unique-1.1 {
|
||||
c text
|
||||
);
|
||||
}
|
||||
} {1 {table "t1" has more than one primary key}}
|
||||
do_test unique-1.1b {
|
||||
catchsql {
|
||||
CREATE TABLE t1(
|
||||
a int PRIMARY KEY,
|
||||
b int UNIQUE,
|
||||
c text
|
||||
);
|
||||
}
|
||||
} {0 {}}
|
||||
do_test unique-1.2 {
|
||||
catchsql {
|
||||
|
Reference in New Issue
Block a user