mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
sync up our in tree sqlite with the 3.3.13 official release. Commit to follow to finish this process on the windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4351 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
64133ab31a
commit
5791353cec
118 files changed
+15152
-1229
No files matched your search
@@ -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.38 2006/09/16 21:45:14 drh Exp $
|
||||
# $Id: vtab1.test,v 1.39 2007/01/09 14:01:14 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -96,6 +96,29 @@ do_test vtab1-1.6 {
|
||||
}
|
||||
} {}
|
||||
|
||||
# Ticket #2156. Using the sqlite3_prepare_v2() API, make sure that
|
||||
# a CREATE VIRTUAL TABLE statement can be used multiple times.
|
||||
#
|
||||
do_test vtab1-1.2152.1 {
|
||||
set DB [sqlite3_connection_pointer db]
|
||||
set sql {CREATE VIRTUAL TABLE t2152a USING echo(t2152b)}
|
||||
set STMT [sqlite3_prepare_v2 $DB $sql -1 TAIL]
|
||||
sqlite3_step $STMT
|
||||
} SQLITE_ERROR
|
||||
do_test vtab-1.2152.2 {
|
||||
sqlite3_reset $STMT
|
||||
sqlite3_step $STMT
|
||||
} SQLITE_ERROR
|
||||
do_test vtab-1.2152.3 {
|
||||
sqlite3_reset $STMT
|
||||
db eval {CREATE TABLE t2152b(x,y)}
|
||||
sqlite3_step $STMT
|
||||
} SQLITE_DONE
|
||||
do_test vtab-1.2152.4 {
|
||||
sqlite3_finalize $STMT
|
||||
db eval {DROP TABLE t2152a; DROP TABLE t2152b}
|
||||
} {}
|
||||
|
||||
# Test to make sure nothing goes wrong and no memory is leaked if we
|
||||
# select an illegal table-name (i.e a reserved name or the name of a
|
||||
# table that already exists).
|
||||
|
||||
Reference in new issue
Block a user