mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Add tcl
This commit is contained in:
17
testing/insert.test
Executable file
17
testing/insert.test
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user