sqlite3/sqlite3-tcl85.diff

78 lines
1.8 KiB
Diff

--- test/bind.test
+++ test/bind.test
@@ -211,6 +211,7 @@
DELETE FROM t1;
}
} {}
+if 0 {
do_test bind-4.4 {
sqlite3_bind_double $VM 1 NaN
sqlite3_bind_double $VM 2 1e300
@@ -229,7 +230,7 @@
DELETE FROM t1;
}
} {}
-
+}
# NULL
do_test bind-5.1 {
sqlite3_bind_null $VM 1
--- test/tclsqlite.test
+++ test/tclsqlite.test
@@ -77,7 +77,9 @@
} msg]
regsub {:.*$} $msg {} msg
lappend v $msg
-} {1 {syntax error in expression "x*"}}
+} {1 {invalid bareword "x"
+in expression "x*";
+should be "$x" or "{x}" or "x(...)" or ...}}
do_test tcl-1.7 {
set v [catch {db} msg]
lappend v $msg
--- test/types3.test
+++ test/types3.test
@@ -18,6 +18,9 @@
set testdir [file dirname $argv0]
source $testdir/tester.tcl
+set V [expr {1+12345678012345}]
+set wideInt [expr {[tcl_variable_type V] eq "wideInt" ? 1 : 0}]
+
# A variable with only a string representation comes in as TEXT
do_test types3-1.1 {
set V {}
@@ -30,8 +33,8 @@
set V [expr {int(1+2)}]
concat [tcl_variable_type V] [execsql {SELECT typeof(:V)}]
} {int integer}
-set V [expr {1+12345678012345}]
-if {[tcl_variable_type V]=="wideInt"} {
+
+if {$wideInt} {
do_test types3-1.3 {
set V [expr {1+123456789012345}]
concat [tcl_variable_type V] [execsql {SELECT typeof(:V)}]
@@ -74,10 +77,17 @@
set V [db one {SELECT 123}]
tcl_variable_type V
} int
-do_test types3-2.3 {
- set V [db one {SELECT 1234567890123456}]
- tcl_variable_type V
-} wideInt
+if {$wideInt} {
+ do_test types3-2.3 {
+ set V [db one {SELECT 1234567890123456}]
+ tcl_variable_type V
+ } wideInt
+} {
+ do_test types3-2.3 {
+ set V [db one {SELECT 1234567890123456}]
+ tcl_variable_type V
+ } int
+}
do_test types3-2.4.1 {
set V [db one {SELECT 1234567890123456.1}]
tcl_variable_type V