亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? conflict.test

?? 新版輕量級(jí)嵌入式數(shù)據(jù)庫(kù)
?? TEST
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
# 2002 January 29## 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 the conflict resolution extension# to SQLite.## $Id: conflict.test,v 1.27 2006/01/17 09:35:02 danielk1977 Exp $set testdir [file dirname $argv0]source $testdir/tester.tclifcapable !conflict {  finish_test  return}# Create tables for the first group of tests.#do_test conflict-1.0 {  execsql {    CREATE TABLE t1(a, b, c, UNIQUE(a,b));    CREATE TABLE t2(x);    SELECT c FROM t1 ORDER BY c;  }} {}# Six columns of configuration data as follows:##   i      The reference number of the test#   cmd    An INSERT or REPLACE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "c" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t2#   t3     Number of temporary files created by this test#foreach {i cmd t0 t1 t2 t3} {  1 INSERT                  1 {}  1  0  2 {INSERT OR IGNORE}      0 3   1  0  3 {INSERT OR REPLACE}     0 4   1  0  4 REPLACE                 0 4   1  0  5 {INSERT OR FAIL}        1 {}  1  0  6 {INSERT OR ABORT}       1 {}  1  0  7 {INSERT OR ROLLBACK}    1 {}  {} 0} {  do_test conflict-1.$i {    set ::sqlite_opentemp_count 0    set r0 [catch {execsql [subst {      DELETE FROM t1;      DELETE FROM t2;      INSERT INTO t1 VALUES(1,2,3);      BEGIN;      INSERT INTO t2 VALUES(1);       $cmd INTO t1 VALUES(1,2,4);    }]} r1]    catch {execsql {COMMIT}}    if {$r0} {set r1 {}} {set r1 [execsql {SELECT c FROM t1}]}    set r2 [execsql {SELECT x FROM t2}]    set r3 $::sqlite_opentemp_count    list $r0 $r1 $r2 $r3  } [list $t0 $t1 $t2 $t3]}# Create tables for the first group of tests.#do_test conflict-2.0 {  execsql {    DROP TABLE t1;    DROP TABLE t2;    CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c, UNIQUE(a,b));    CREATE TABLE t2(x);    SELECT c FROM t1 ORDER BY c;  }} {}# Six columns of configuration data as follows:##   i      The reference number of the test#   cmd    An INSERT or REPLACE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "c" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t2#foreach {i cmd t0 t1 t2} {  1 INSERT                  1 {}  1  2 {INSERT OR IGNORE}      0 3   1  3 {INSERT OR REPLACE}     0 4   1  4 REPLACE                 0 4   1  5 {INSERT OR FAIL}        1 {}  1  6 {INSERT OR ABORT}       1 {}  1  7 {INSERT OR ROLLBACK}    1 {}  {}} {  do_test conflict-2.$i {    set r0 [catch {execsql [subst {      DELETE FROM t1;      DELETE FROM t2;      INSERT INTO t1 VALUES(1,2,3);      BEGIN;      INSERT INTO t2 VALUES(1);       $cmd INTO t1 VALUES(1,2,4);    }]} r1]    catch {execsql {COMMIT}}    if {$r0} {set r1 {}} {set r1 [execsql {SELECT c FROM t1}]}    set r2 [execsql {SELECT x FROM t2}]    list $r0 $r1 $r2  } [list $t0 $t1 $t2]}# Create tables for the first group of tests.#do_test conflict-3.0 {  execsql {    DROP TABLE t1;    DROP TABLE t2;    CREATE TABLE t1(a, b, c INTEGER, PRIMARY KEY(c), UNIQUE(a,b));    CREATE TABLE t2(x);    SELECT c FROM t1 ORDER BY c;  }} {}# Six columns of configuration data as follows:##   i      The reference number of the test#   cmd    An INSERT or REPLACE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "c" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t2#foreach {i cmd t0 t1 t2} {  1 INSERT                  1 {}  1  2 {INSERT OR IGNORE}      0 3   1  3 {INSERT OR REPLACE}     0 4   1  4 REPLACE                 0 4   1  5 {INSERT OR FAIL}        1 {}  1  6 {INSERT OR ABORT}       1 {}  1  7 {INSERT OR ROLLBACK}    1 {}  {}} {  do_test conflict-3.$i {    set r0 [catch {execsql [subst {      DELETE FROM t1;      DELETE FROM t2;      INSERT INTO t1 VALUES(1,2,3);      BEGIN;      INSERT INTO t2 VALUES(1);       $cmd INTO t1 VALUES(1,2,4);    }]} r1]    catch {execsql {COMMIT}}    if {$r0} {set r1 {}} {set r1 [execsql {SELECT c FROM t1}]}    set r2 [execsql {SELECT x FROM t2}]    list $r0 $r1 $r2  } [list $t0 $t1 $t2]}do_test conflict-4.0 {  execsql {    DROP TABLE t2;    CREATE TABLE t2(x);    SELECT x FROM t2;  }} {}# Six columns of configuration data as follows:##   i      The reference number of the test#   conf1  The conflict resolution algorithm on the UNIQUE constraint#   cmd    An INSERT or REPLACE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "c" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t2#foreach {i conf1 cmd t0 t1 t2} {  1 {}       INSERT                  1 {}  1  2 REPLACE  INSERT                  0 4   1  3 IGNORE   INSERT                  0 3   1  4 FAIL     INSERT                  1 {}  1  5 ABORT    INSERT                  1 {}  1  6 ROLLBACK INSERT                  1 {}  {}  7 REPLACE  {INSERT OR IGNORE}      0 3   1  8 IGNORE   {INSERT OR REPLACE}     0 4   1  9 FAIL     {INSERT OR IGNORE}      0 3   1 10 ABORT    {INSERT OR REPLACE}     0 4   1 11 ROLLBACK {INSERT OR IGNORE }     0 3   1} {  do_test conflict-4.$i {    if {$conf1!=""} {set conf1 "ON CONFLICT $conf1"}    set r0 [catch {execsql [subst {      DROP TABLE t1;      CREATE TABLE t1(a,b,c,UNIQUE(a,b) $conf1);      DELETE FROM t2;      INSERT INTO t1 VALUES(1,2,3);      BEGIN;      INSERT INTO t2 VALUES(1);       $cmd INTO t1 VALUES(1,2,4);    }]} r1]    catch {execsql {COMMIT}}    if {$r0} {set r1 {}} {set r1 [execsql {SELECT c FROM t1}]}    set r2 [execsql {SELECT x FROM t2}]    list $r0 $r1 $r2  } [list $t0 $t1 $t2]}do_test conflict-5.0 {  execsql {    DROP TABLE t2;    CREATE TABLE t2(x);    SELECT x FROM t2;  }} {}# Six columns of configuration data as follows:##   i      The reference number of the test#   conf1  The conflict resolution algorithm on the NOT NULL constraint#   cmd    An INSERT or REPLACE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "c" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t2#foreach {i conf1 cmd t0 t1 t2} {  1 {}       INSERT                  1 {}  1  2 REPLACE  INSERT                  0 5   1  3 IGNORE   INSERT                  0 {}  1  4 FAIL     INSERT                  1 {}  1  5 ABORT    INSERT                  1 {}  1  6 ROLLBACK INSERT                  1 {}  {}  7 REPLACE  {INSERT OR IGNORE}      0 {}  1  8 IGNORE   {INSERT OR REPLACE}     0 5   1  9 FAIL     {INSERT OR IGNORE}      0 {}  1 10 ABORT    {INSERT OR REPLACE}     0 5   1 11 ROLLBACK {INSERT OR IGNORE}      0 {}  1 12 {}       {INSERT OR IGNORE}      0 {}  1 13 {}       {INSERT OR REPLACE}     0 5   1 14 {}       {INSERT OR FAIL}        1 {}  1 15 {}       {INSERT OR ABORT}       1 {}  1 16 {}       {INSERT OR ROLLBACK}    1 {}  {}} {  if {$t0} {set t1 {t1.c may not be NULL}}  do_test conflict-5.$i {    if {$conf1!=""} {set conf1 "ON CONFLICT $conf1"}    set r0 [catch {execsql [subst {      DROP TABLE t1;      CREATE TABLE t1(a,b,c NOT NULL $conf1 DEFAULT 5);      DELETE FROM t2;      BEGIN;      INSERT INTO t2 VALUES(1);       $cmd INTO t1 VALUES(1,2,NULL);    }]} r1]    catch {execsql {COMMIT}}    if {!$r0} {set r1 [execsql {SELECT c FROM t1}]}    set r2 [execsql {SELECT x FROM t2}]    list $r0 $r1 $r2  } [list $t0 $t1 $t2]}do_test conflict-6.0 {  execsql {    DROP TABLE t2;    CREATE TABLE t2(a,b,c);    INSERT INTO t2 VALUES(1,2,1);    INSERT INTO t2 VALUES(2,3,2);    INSERT INTO t2 VALUES(3,4,1);    INSERT INTO t2 VALUES(4,5,4);    SELECT c FROM t2 ORDER BY b;    CREATE TABLE t3(x);    INSERT INTO t3 VALUES(1);  }} {1 2 1 4}# Six columns of configuration data as follows:##   i      The reference number of the test#   conf1  The conflict resolution algorithm on the UNIQUE constraint#   cmd    An UPDATE command to execute against table t1#   t0     True if there is an error from $cmd#   t1     Content of "b" column of t1 assuming no error in $cmd#   t2     Content of "x" column of t3#   t3     Number of temporary files created#foreach {i conf1 cmd t0 t1 t2 t3} {  1 {}       UPDATE                  1 {6 7 8 9}  1 1  2 REPLACE  UPDATE                  0 {7 6 9}    1 1  3 IGNORE   UPDATE                  0 {6 7 3 9}  1 1  4 FAIL     UPDATE                  1 {6 7 3 4}  1 0  5 ABORT    UPDATE                  1 {1 2 3 4}  1 1  6 ROLLBACK UPDATE                  1 {1 2 3 4}  0 0  7 REPLACE  {UPDATE OR IGNORE}      0 {6 7 3 9}  1 1  8 IGNORE   {UPDATE OR REPLACE}     0 {7 6 9}    1 1  9 FAIL     {UPDATE OR IGNORE}      0 {6 7 3 9}  1 1 10 ABORT    {UPDATE OR REPLACE}     0 {7 6 9}    1 1 11 ROLLBACK {UPDATE OR IGNORE}      0 {6 7 3 9}  1 1 12 {}       {UPDATE OR IGNORE}      0 {6 7 3 9}  1 1 13 {}       {UPDATE OR REPLACE}     0 {7 6 9}    1 1 14 {}       {UPDATE OR FAIL}        1 {6 7 3 4}  1 0 15 {}       {UPDATE OR ABORT}       1 {1 2 3 4}  1 1 16 {}       {UPDATE OR ROLLBACK}    1 {1 2 3 4}  0 0} {  if {$t0} {set t1 {column a is not unique}}  do_test conflict-6.$i {    db close    sqlite3 db test.db     if {$conf1!=""} {set conf1 "ON CONFLICT $conf1"}    execsql {pragma temp_store=file}    set ::sqlite_opentemp_count 0    set r0 [catch {execsql [subst {      DROP TABLE t1;      CREATE TABLE t1(a,b,c, UNIQUE(a) $conf1);      INSERT INTO t1 SELECT * FROM t2;      UPDATE t3 SET x=0;      BEGIN;      $cmd t3 SET x=1;      $cmd t1 SET b=b*2;      $cmd t1 SET a=c+5;    }]} r1]    catch {execsql {COMMIT}}    if {!$r0} {set r1 [execsql {SELECT a FROM t1 ORDER BY b}]}    set r2 [execsql {SELECT x FROM t3}]    list $r0 $r1 $r2 $::sqlite_opentemp_count  } [list $t0 $t1 $t2 $t3]}# Test to make sure a lot of IGNOREs don't cause a stack overflow#do_test conflict-7.1 {  execsql {    DROP TABLE t1;    DROP TABLE t2;    DROP TABLE t3;    CREATE TABLE t1(a unique, b);  }  for {set i 1} {$i<=50} {incr i} {    execsql "INSERT into t1 values($i,[expr {$i+1}]);"  }  execsql {    SELECT count(*), min(a), max(b) FROM t1;  }} {50 1 51}do_test conflict-7.2 {  execsql {    PRAGMA count_changes=on;    UPDATE OR IGNORE t1 SET a=1000;  }} {1}do_test conflict-7.2.1 {  db changes} {1}do_test conflict-7.3 {  execsql {    SELECT b FROM t1 WHERE a=1000;  }} {2}do_test conflict-7.4 {  execsql {    SELECT count(*) FROM t1;  }} {50}do_test conflict-7.5 {  execsql {    PRAGMA count_changes=on;    UPDATE OR REPLACE t1 SET a=1001;  }} {50}do_test conflict-7.5.1 {  db changes} {50}do_test conflict-7.6 {  execsql {    SELECT b FROM t1 WHERE a=1001;  }} {51}do_test conflict-7.7 {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女免费在线| 日韩国产欧美一区二区三区| 国产毛片精品视频| 99这里都是精品| 欧美三级中文字幕在线观看| 一本到三区不卡视频| 日韩一区二区在线看片| 久久精品视频网| 蜜桃精品在线观看| 国产精品美女久久久久高潮| 不卡视频一二三四| 综合电影一区二区三区| 成人精品视频一区二区三区| 日韩欧美国产1| 五月天激情综合网| 欧美性猛片aaaaaaa做受| 一区二区三区精密机械公司| 久久久www成人免费无遮挡大片| 国产精品久久午夜| 亚洲色图视频网站| 亚洲一区二区三区自拍| 不卡一区在线观看| 日本成人在线电影网| 国产精品日韩成人| 欧美喷潮久久久xxxxx| 成人综合婷婷国产精品久久| 欧美色图免费看| 欧美一级日韩免费不卡| 久久精品国产免费看久久精品| 亚洲一二三级电影| 欧美午夜理伦三级在线观看| 国产色91在线| 国产成人综合网站| 午夜电影一区二区三区| 欧美高清视频不卡网| 成人av免费在线播放| 国产**成人网毛片九色| 国产99久久久久| 久久精品国产99| 麻豆专区一区二区三区四区五区| 中文字幕成人在线观看| 日韩精品一区二区三区在线播放| 亚洲日本韩国一区| 91美女福利视频| 欧美网站大全在线观看| 亚洲欧美在线视频观看| 色先锋aa成人| 国产精品美女久久久久久久久| 中文字幕一区二区三区在线播放| 久久这里只精品最新地址| 麻豆精品视频在线观看| 国产传媒欧美日韩成人| 亚洲视频一二三区| 99在线精品免费| 国产精品伦一区二区三级视频| 99精品视频一区| 亚洲午夜在线电影| 欧美日本免费一区二区三区| 国产精品久久久久久户外露出 | 91碰在线视频| 亚洲电影中文字幕在线观看| 91精品婷婷国产综合久久性色| 免费亚洲电影在线| 国产日韩欧美一区二区三区综合| 风间由美中文字幕在线看视频国产欧美 | 丁香啪啪综合成人亚洲小说| 日韩精品在线网站| 91年精品国产| 秋霞电影网一区二区| 久久久一区二区三区捆绑**| 日本丰满少妇一区二区三区| 亚洲黄色性网站| 日韩免费福利电影在线观看| 国产成人精品1024| 国产精品家庭影院| 精一区二区三区| 亚洲啪啪综合av一区二区三区| 欧美日本在线看| 成人久久视频在线观看| 中文字幕av免费专区久久| 欧美精品一区二区三区蜜桃视频| 91影视在线播放| 国产成人在线看| 亚洲女同ⅹxx女同tv| 一区二区在线电影| 成人激情av网| 亚洲婷婷综合久久一本伊一区| 在线观看91av| bt欧美亚洲午夜电影天堂| 一区二区三区**美女毛片| 91精品黄色片免费大全| 亚洲欧美日韩中文播放| 欧美绝品在线观看成人午夜影视| 国产一区二区不卡老阿姨| 亚洲精品网站在线观看| 久久久国产精品麻豆| 欧美精品一级二级| 99在线精品一区二区三区| 韩国精品久久久| 久久精品欧美日韩精品| 欧美亚洲国产一卡| 国产成人在线电影| 七七婷婷婷婷精品国产| 国产精品午夜久久| 久久伊人中文字幕| 婷婷综合另类小说色区| 日韩精品专区在线影院重磅| 亚洲成人午夜电影| 国产精品色在线观看| 国产91丝袜在线播放| 91亚洲永久精品| 福利电影一区二区三区| 欧美在线免费播放| 成人一区二区三区中文字幕| 欧美白人最猛性xxxxx69交| 欧美日韩高清在线| 欧美午夜寂寞影院| 国产乱人伦精品一区二区在线观看| 欧美电影精品一区二区| 一区二区三区成人在线视频| 欧美色图片你懂的| 国产精品一区一区三区| 精品一区二区三区免费毛片爱 | 麻豆精品一二三| 亚洲成人av免费| 欧美一区二区三区四区高清| www.欧美日韩国产在线| 国产成人免费视频精品含羞草妖精| 国内精品久久久久影院薰衣草| 精品一区二区成人精品| 久草在线在线精品观看| 欧美激情在线一区二区三区| 3d成人动漫网站| 在线看日本不卡| 欧美日韩国产首页| 欧美片在线播放| 91精品国产综合久久小美女| 日韩欧美在线影院| 精品嫩草影院久久| 国产精品视频你懂的| 日韩视频免费观看高清在线视频| 欧美日韩国产影片| 欧美mv日韩mv| 欧美激情在线看| 欧美色精品天天在线观看视频| 欧美区在线观看| 欧美一级免费大片| 亚洲精品高清视频在线观看| 国产99久久久国产精品| 色哟哟精品一区| 久久久精品免费免费| 884aa四虎影成人精品一区| 91高清视频在线| 日韩一卡二卡三卡国产欧美| 精品国产123| 亚洲国产精品ⅴa在线观看| 亚洲情趣在线观看| 欧美一级高清片| 国产精品免费看片| 国产精品看片你懂得| 日韩精品色哟哟| 在线电影院国产精品| 亚洲成人自拍偷拍| 日本高清不卡在线观看| 玉米视频成人免费看| 在线观看日韩毛片| 日本一二三不卡| 精品亚洲国产成人av制服丝袜 | 国产欧美一区二区三区网站| 男人操女人的视频在线观看欧美 | 1024国产精品| 亚洲成人三级小说| 成人动漫视频在线| 国产麻豆精品在线观看| 欧美午夜一区二区三区免费大片| 日韩一区二区视频在线观看| 国产精品乱码一区二三区小蝌蚪| 亚洲三级理论片| 亚洲第四色夜色| 亚洲精品精品亚洲| 久久99精品视频| 欧美影院午夜播放| 国产欧美日韩中文久久| 欧美日韩一区视频| 91在线porny国产在线看| 欧美三级日韩三级| 日本一区二区三区久久久久久久久不 | 亚洲国产中文字幕在线视频综合| 国产91精品一区二区麻豆网站 | 日韩视频永久免费| 欧美色倩网站大全免费| 成人毛片老司机大片| 成a人片国产精品| 欧美三区免费完整视频在线观看| 成人国产视频在线观看| 欧美性生活影院| 欧美日韩不卡一区| 欧美精品一区二区三区蜜臀| 国产精品污污网站在线观看| 日本一区二区视频在线|