Fixes for UPDATE statements on virtual tables. (CVS 3263)

FossilOrigin-Name: 81c5a5b48b05186a1690198092ac92006d9f7020
This commit is contained in:
danielk1977
2006-06-17 03:27:21 +00:00
parent 9c41938ff8
commit 2867fef244
5 changed files with 22 additions and 30 deletions
+7 -15
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is creating and dropping virtual tables.
#
# $Id: vtab1.test,v 1.19 2006/06/16 21:13:23 drh Exp $
# $Id: vtab1.test,v 1.20 2006/06/17 03:27:23 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -409,8 +409,6 @@ execsql {
DROP TABLE treal;
}
if 0 { # FIXME
#----------------------------------------------------------------------
# Test cases vtab1-6 test INSERT, UPDATE and DELETE operations
# on virtual tables.
@@ -437,17 +435,12 @@ do_test vtab1-6-4 {
}
} {5 2 3}
# TODO: This causes a crash at present.
#
# do_test vtab1-6-5 {
# explain {
# UPDATE techo set a = a||b||c;
# }
# execsql {
# UPDATE techo set a = a||b||c;
# SELECT * FROM techo;
# }
#} {523 2 3}
do_test vtab1-6-5 {
execsql {
UPDATE techo set a = a||b||c;
SELECT * FROM techo;
}
} {523 2 3}
do_test vtab1-6-6 {
execsql {
@@ -585,6 +578,5 @@ do_test vtab1.7-13 {
SELECT rowid, a, b, c FROM real_abc
}
} {}
} ;# END if 0
finish_test