1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Unsuccessful attempt to reproduce ticket #807. (CVS 1809)

FossilOrigin-Name: d7e9772c74a2b9377f17149cc1baa3b2d0dfbfb8
This commit is contained in:
drh
2004-07-18 23:47:53 +00:00
parent 8cd9db004a
commit 83ca160a33
3 changed files with 52 additions and 6 deletions

45
test/misc4.test Normal file
View File

@ -0,0 +1,45 @@
# 2004 Jun 27
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# May you do good and not evil.
# May you find forgiveness for yourself and forgive others.
# May you share freely, never taking more than you give.
#
#***********************************************************************
# This file implements regression tests for SQLite library.
#
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc4.test,v 1.1 2004/07/18 23:47:53 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
# Prepare a statement that will create a temporary table. Then do
# a rollback. Then try to execute the prepared statement.
#
do_test misc4-1.1 {
db close
set DB [sqlite3 db test.db]
execsql {
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
}
set sql {CREATE TEMP TABLE t2 AS SELECT * FROM t1}
set stmt [sqlite3_prepare $DB $sql -1 TAIL]
execsql {
BEGIN;
CREATE TABLE t3(a,b,c);
INSERT INTO t1 SELECT * FROM t1;
ROLLBACK;
}
sqlite3_step $stmt
execsql {
SELECT * FROM temp.t2;
}
} {1}
finish_test