1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Add support for CREATE TABLE IF NOT EXISTS. (CVS 2847)

FossilOrigin-Name: 0bd9e35fd22946640f4fb1c1874922ae096916f7
This commit is contained in:
drh
2005-12-29 23:33:54 +00:00
parent 72e5c6dbb9
commit faa59554c3
6 changed files with 29 additions and 20 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the CREATE TABLE statement.
#
# $Id: table.test,v 1.42 2005/12/29 01:11:37 drh Exp $
# $Id: table.test,v 1.43 2005/12/29 23:33:54 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -103,6 +103,9 @@ do_test table-2.1c {
lappend v $msg
} {1 {object name reserved for internal use: sqlite_master}}
do_test table-2.1d {
catchsql {CREATE TABLE IF NOT EXISTS test2(x,y)}
} {0 {}}
do_test table-2.1e {
execsql {DROP TABLE test2; SELECT name FROM sqlite_master WHERE type!='meta'}
} {}