mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Disallow string constants enclosed in double-quotes within new CREATE TABLE and CREATE INDEX statements. It is still possible to enclose column names in double-quotes, and existing database schemas that use double-quotes for strings can still be loaded. This addresses ticket [9b78184b].
FossilOrigin-Name: 1685610ef8e0dc9218b02461ceab14dc6114f4f5ef7fcda0da395094aff443e1
This commit is contained in:
@ -117,11 +117,13 @@ do_test check-1.17 {
|
||||
|
||||
do_test check-2.1 {
|
||||
execsql {
|
||||
PRAGMA writable_schema = 1;
|
||||
CREATE TABLE t2(
|
||||
x INTEGER CONSTRAINT one CHECK( typeof(coalesce(x,0))=="integer" ),
|
||||
y REAL CONSTRAINT two CHECK( typeof(coalesce(y,0.1))=='real' ),
|
||||
z TEXT CONSTRAINT three CHECK( typeof(coalesce(z,''))=='text' )
|
||||
);
|
||||
PRAGMA writable_schema = 0;
|
||||
}
|
||||
} {}
|
||||
do_test check-2.2 {
|
||||
|
Reference in New Issue
Block a user