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

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/fkey1.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/fkey1.test
diff --git a/third_party/sqlite/sqlite-src-3080704/test/fkey1.test b/third_party/sqlite/sqlite-src-3080704/test/fkey1.test
deleted file mode 100644
index 90a4c44409ed94d68188651efe3eabeedc7ce3eb..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3080704/test/fkey1.test
+++ /dev/null
@@ -1,124 +0,0 @@
-# 2001 September 15
-#
-# 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 foreign keys.
-#
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-ifcapable {!foreignkey} {
- finish_test
- return
-}
-
-# Create a table and some data to work with.
-#
-do_test fkey1-1.0 {
- execsql {
- CREATE TABLE t1(
- a INTEGER PRIMARY KEY,
- b INTEGER
- REFERENCES t1 ON DELETE CASCADE
- REFERENCES t2,
- c TEXT,
- FOREIGN KEY (b,c) REFERENCES t2(x,y) ON UPDATE CASCADE
- );
- }
-} {}
-do_test fkey1-1.1 {
- execsql {
- CREATE TABLE t2(
- x INTEGER PRIMARY KEY,
- y TEXT
- );
- }
-} {}
-do_test fkey1-1.2 {
- execsql {
- CREATE TABLE t3(
- a INTEGER REFERENCES t2,
- b INTEGER REFERENCES t1,
- FOREIGN KEY (a,b) REFERENCES t2(x,y)
- );
- }
-} {}
-
-do_test fkey1-2.1 {
- execsql {
- CREATE TABLE t4(a integer primary key);
- CREATE TABLE t5(x references t4);
- CREATE TABLE t6(x references t4);
- CREATE TABLE t7(x references t4);
- CREATE TABLE t8(x references t4);
- CREATE TABLE t9(x references t4);
- CREATE TABLE t10(x references t4);
- DROP TABLE t7;
- DROP TABLE t9;
- DROP TABLE t5;
- DROP TABLE t8;
- DROP TABLE t6;
- DROP TABLE t10;
- }
-} {}
-
-do_test fkey1-3.1 {
- execsql {
- CREATE TABLE t5(a PRIMARY KEY, b, c);
- CREATE TABLE t6(
- d REFERENCES t5,
- e REFERENCES t5(c)
- );
- PRAGMA foreign_key_list(t6);
- }
-} [concat \
- {0 0 t5 e c {NO ACTION} {NO ACTION} NONE} \
- {1 0 t5 d {} {NO ACTION} {NO ACTION} NONE} \
-]
-do_test fkey1-3.2 {
- execsql {
- CREATE TABLE t7(d, e, f,
- FOREIGN KEY (d, e) REFERENCES t5(a, b)
- );
- PRAGMA foreign_key_list(t7);
- }
-} [concat \
- {0 0 t5 d a {NO ACTION} {NO ACTION} NONE} \
- {0 1 t5 e b {NO ACTION} {NO ACTION} NONE} \
-]
-do_test fkey1-3.3 {
- execsql {
- CREATE TABLE t8(d, e, f,
- FOREIGN KEY (d, e) REFERENCES t5 ON DELETE CASCADE ON UPDATE SET NULL
- );
- PRAGMA foreign_key_list(t8);
- }
-} [concat \
- {0 0 t5 d {} {SET NULL} CASCADE NONE} \
- {0 1 t5 e {} {SET NULL} CASCADE NONE} \
-]
-do_test fkey1-3.4 {
- execsql {
- CREATE TABLE t9(d, e, f,
- FOREIGN KEY (d, e) REFERENCES t5 ON DELETE CASCADE ON UPDATE SET DEFAULT
- );
- PRAGMA foreign_key_list(t9);
- }
-} [concat \
- {0 0 t5 d {} {SET DEFAULT} CASCADE NONE} \
- {0 1 t5 e {} {SET DEFAULT} CASCADE NONE} \
-]
-do_test fkey1-3.5 {
- sqlite3_db_status db DBSTATUS_DEFERRED_FKS 0
-} {0 0 0}
-
-finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/filefmt.test ('k') | third_party/sqlite/sqlite-src-3080704/test/fkey2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698