mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
18 lines
400 B
Tcl
Executable File
18 lines
400 B
Tcl
Executable File
#!/usr/bin/env tclsh
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_execsql_check_err_msg insert-1.1 {
|
|
INSERT INTO test1 VALUES(1,2,3);
|
|
} {Error: in prepare, no such table: test1}
|
|
|
|
do_execsql_with_cleanup_test insert-1.2 {
|
|
CREATE TABLE test1(one int, two int, three int);
|
|
INSERT INTO test1 VALUES(1, 2, 3);
|
|
SELECT * FROM test1;
|
|
} {1|2|3} {
|
|
DROP TABLE IF EXISTS test1;
|
|
}
|
|
|