mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-08 09:44:21 +01:00
testing: Improve insert.test for STRICT mode type case insensitivity
This commit is contained in:
@@ -19,12 +19,19 @@ do_execsql_test_on_specific_db {:memory:} must-be-int-insert {
|
||||
4}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} strict-basic-creation {
|
||||
create table test1 (id integer, name text, price real) strict;
|
||||
insert into test1 values(1, 'item1', 10.5);
|
||||
select * from test1;
|
||||
CREATE TABLE test1 (id INTEGER, name TEXT, price REAL) STRICT;
|
||||
INSERT INTO test1 VALUES(1, 'item1', 10.5);
|
||||
SELECT * FROM test1;
|
||||
} {1|item1|10.5}
|
||||
|
||||
do_execsql_test_in_memory_any_error strict-require-datatype {
|
||||
# Reproducer for https://github.com/tursodatabase/turso/issues/2822
|
||||
do_execsql_test_on_specific_db {:memory:} strict-type-case-insensitivity {
|
||||
CREATE TABLE test1 (id integer, name text, price real) STRICT;
|
||||
INSERT INTO test1 VALUES(1, 'item1', 10.5);
|
||||
SELECT * FROM test1;
|
||||
} {1|item1|10.5}
|
||||
|
||||
do_execsql_test_in_memory_any_error strict-require-datatype {
|
||||
CREATE TABLE test2 (id INTEGER, name) STRICT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user