mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
If the database filename is an empty string, open a temporary file to hold
the database. Ticket #432. (CVS 1085) FossilOrigin-Name: da53369f0bf133b89b213bbb1ccea13eb93ab6ed
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
# This file implements tests for miscellanous features that were
|
||||
# left out of other test files.
|
||||
#
|
||||
# $Id: misc2.test,v 1.6 2003/07/30 12:34:13 drh Exp $
|
||||
# $Id: misc2.test,v 1.7 2003/08/26 11:25:58 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -114,3 +114,17 @@ do_test misc2-5.1 {
|
||||
SELECT * from z;
|
||||
}
|
||||
} {}
|
||||
|
||||
# Make sure we can open a database with an empty filename. What this
|
||||
# does is store the database in a temporary file that is deleted when
|
||||
# the database is closed. Ticket #432.
|
||||
#
|
||||
do_test misc2-6.1 {
|
||||
db close
|
||||
sqlite db {}
|
||||
execsql {
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1 VALUES(1,2);
|
||||
SELECT * FROM t1;
|
||||
}
|
||||
} {1 2}
|
||||
|
Reference in New Issue
Block a user