1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix for ticket #46: Report an error if a CREATE TABLE contains two or more

columns with the same name. (CVS 578)

FossilOrigin-Name: ba1953abd04671232cf9e93ab3f962fedbbdc508
This commit is contained in:
drh
2002-05-22 21:27:03 +00:00
parent 2ce1a6ec60
commit 97fc3d060a
4 changed files with 33 additions and 14 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.15 2002/02/21 12:01:28 drh Exp $
# $Id: table.test,v 1.16 2002/05/22 21:27:04 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -370,4 +370,13 @@ do_test table-8.8 {
}
} {1 {no such table: no_such_table}}
# Make sure we cannot have duplicate column names within a table.
#
do_test table-9.1 {
catchsql {
CREATE TABLE t6(a,b,a);
}
} {1 {duplicate column name: a}}
finish_test