Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/colmeta.test

Issue 2363173002: [sqlite] Remove obsolete reference version 3.8.7.4. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/test/colmeta.test
diff --git a/third_party/sqlite/sqlite-src-3080704/test/colmeta.test b/third_party/sqlite/sqlite-src-3080704/test/colmeta.test
deleted file mode 100644
index 3939f8228acb917ffb2e383fd3d9a7b9cf88366c..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3080704/test/colmeta.test
+++ /dev/null
@@ -1,94 +0,0 @@
-#
-# 2006 February 9
-#
-# 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. The
-# focus of this script is the sqlite3_table_column_metadata() API.
-#
-# $Id: colmeta.test,v 1.4 2008/01/23 12:52:41 drh Exp $
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-ifcapable !columnmetadata {
- finish_test
- return
-}
-
-# Set up a schema in the main and temp test databases.
-do_test colmeta-0 {
- execsql {
- CREATE TABLE abc(a, b, c);
- CREATE TABLE abc2(a PRIMARY KEY COLLATE NOCASE, b VARCHAR(32), c);
- CREATE TABLE abc3(a NOT NULL, b INTEGER PRIMARY KEY, c);
- }
- ifcapable autoinc {
- execsql {
- CREATE TABLE abc4(a, b INTEGER PRIMARY KEY AUTOINCREMENT, c);
- }
- }
- ifcapable view {
- execsql {
- CREATE VIEW v1 AS SELECT * FROM abc2;
- }
- }
-} {}
-
-
-# Return values are of the form:
-#
-# {<decl-type> <collation> <not null> <primary key> <auto increment>}
-#
-set tests {
- 1 {main abc a} {0 {{} BINARY 0 0 0}}
- 2 {{} abc a} {0 {{} BINARY 0 0 0}}
- 3 {{} abc2 b} {0 {VARCHAR(32) BINARY 0 0 0}}
- 4 {main abc2 b} {0 {VARCHAR(32) BINARY 0 0 0}}
- 5 {{} abc2 a} {0 {{} NOCASE 0 1 0}}
- 6 {{} abc3 a} {0 {{} BINARY 1 0 0}}
- 7 {{} abc3 b} {0 {INTEGER BINARY 0 1 0}}
- 13 {main abc rowid} {0 {INTEGER BINARY 0 1 0}}
- 14 {main abc3 rowid} {0 {INTEGER BINARY 0 1 0}}
- 16 {main abc d} {1 {no such table column: abc.d}}
-}
-ifcapable view {
- set tests [concat $tests {
- 8 {{} abc4 b} {0 {INTEGER BINARY 0 1 1}}
- 15 {main abc4 rowid} {0 {INTEGER BINARY 0 1 1}}
- }]
-}
-ifcapable view {
- set tests [concat $tests {
- 9 {{} v1 a} {1 {no such table column: v1.a}}
- 10 {main v1 b} {1 {no such table column: v1.b}}
- 11 {main v1 badname} {1 {no such table column: v1.badname}}
- 12 {main v1 rowid} {1 {no such table column: v1.rowid}}
- }]
-}
-
-foreach {tn params results} $tests {
- set ::DB [sqlite3_connection_pointer db]
-
- set tstbody [concat sqlite3_table_column_metadata $::DB $params]
- do_test colmeta-$tn.1 {
- list [catch $tstbody msg] [set msg]
- } $results
-
- db close
- sqlite3 db test.db
-
- set ::DB [sqlite3_connection_pointer db]
- set tstbody [concat sqlite3_table_column_metadata $::DB $params]
- do_test colmeta-$tn.2 {
- list [catch $tstbody msg] [set msg]
- } $results
-}
-
-finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/collateA.test ('k') | third_party/sqlite/sqlite-src-3080704/test/colname.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698