Change the name of the TCL command from "sqlite" to "sqlite3" so that both
SQLite version 2 and SQLite version 3 can be used by Tcl at the same time. (CVS 1626) FossilOrigin-Name: d705d051bed2b92b6c3bbcc75fe5b056633b9c31
This commit is contained in:
+5
-5
@@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing the VACUUM statement.
|
||||
#
|
||||
# $Id: vacuum.test,v 1.20 2004/05/29 10:43:07 danielk1977 Exp $
|
||||
# $Id: vacuum.test,v 1.21 2004/06/19 00:16:32 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -96,7 +96,7 @@ do_test vacuum-2.1 {
|
||||
} {1 {cannot VACUUM from within a transaction}}
|
||||
catch {db eval COMMIT}
|
||||
do_test vacuum-2.2 {
|
||||
sqlite db2 test.db
|
||||
sqlite3 db2 test.db
|
||||
execsql {
|
||||
BEGIN;
|
||||
CREATE TABLE t4 AS SELECT * FROM t1;
|
||||
@@ -125,7 +125,7 @@ do_test vacuum-3.1 {
|
||||
db close
|
||||
db2 close
|
||||
file delete test.db
|
||||
sqlite db test.db
|
||||
sqlite3 db test.db
|
||||
execsql {
|
||||
PRAGMA empty_result_callbacks=on;
|
||||
VACUUM;
|
||||
@@ -136,7 +136,7 @@ do_test vacuum-3.1 {
|
||||
#
|
||||
do_test vacuum-4.1 {
|
||||
db close
|
||||
set DB [sqlite db test.db]
|
||||
set DB [sqlite3 db test.db]
|
||||
set VM [sqlite3_prepare $DB {VACUUM} -1 TAIL]
|
||||
sqlite3_step $VM
|
||||
} {SQLITE_DONE}
|
||||
@@ -150,7 +150,7 @@ do_test vacuum-4.2 {
|
||||
do_test vacuum-5.1 {
|
||||
db close
|
||||
file delete -force test.db
|
||||
sqlite db test.db
|
||||
sqlite3 db test.db
|
||||
catchsql {
|
||||
CREATE TABLE Test (TestID int primary key);
|
||||
INSERT INTO Test VALUES (NULL);
|
||||
|
||||
Reference in New Issue
Block a user