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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? conflict.test

?? 新版輕量級嵌入式數據庫
?? TEST
?? 第 1 頁 / 共 2 頁
字號:
# 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 {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品一区二区乱码| 91色婷婷久久久久合中文| 色哦色哦哦色天天综合| 久久久久久久一区| 午夜视频一区二区| caoporn国产精品| 久久女同性恋中文字幕| 香蕉久久夜色精品国产使用方法 | 亚洲综合自拍偷拍| 国产伦精品一区二区三区视频青涩| 欧美三级三级三级| 亚洲人一二三区| 国产不卡在线视频| 4hu四虎永久在线影院成人| 樱花影视一区二区| 成人美女视频在线看| 精品第一国产综合精品aⅴ| 无码av免费一区二区三区试看 | 欧美精品v国产精品v日韩精品| 亚洲视频狠狠干| 不卡的av中国片| 国产人成一区二区三区影院| 捆绑调教美女网站视频一区| 9191国产精品| 午夜在线成人av| 欧美日韩精品三区| 亚洲午夜久久久久久久久电影院| av在线不卡观看免费观看| 亚洲成人精品一区| 欧美综合色免费| 亚洲国产一区二区在线播放| 色噜噜狠狠色综合中国| 亚洲免费资源在线播放| av男人天堂一区| 国产精品久久久久久久蜜臀| 成人一级黄色片| 国产精品三级av| 成人国产精品免费| 中文字幕制服丝袜成人av | 日韩和的一区二区| 欧美日韩夫妻久久| 五月综合激情婷婷六月色窝| 欧美日本一道本| 日韩福利电影在线| 欧美一级欧美三级在线观看| 美国十次了思思久久精品导航| 欧美一区二区三区视频免费播放 | 亚洲午夜免费福利视频| 欧美日韩中文另类| 日韩不卡一区二区| 欧美mv日韩mv国产网站| 国产成人午夜99999| 国产欧美精品国产国产专区| 欧美三级欧美一级| 中文字幕欧美激情一区| 94色蜜桃网一区二区三区| 亚洲乱码中文字幕| 91污在线观看| 最新不卡av在线| 在线视频欧美精品| 日韩专区欧美专区| 精品国产露脸精彩对白| 丁香五精品蜜臀久久久久99网站| 国产精品国产馆在线真实露脸| 91色porny在线视频| 亚洲妇女屁股眼交7| 91精品国产综合久久精品| 精品亚洲成a人在线观看| 欧美韩国日本不卡| 欧洲一区二区av| 麻豆国产欧美日韩综合精品二区| 精品国产乱码久久| 91在线视频免费91| 亚洲成人动漫av| 久久这里都是精品| 91日韩精品一区| 午夜精品一区在线观看| 欧美精品一区二区三区很污很色的| 国产夫妻精品视频| 亚洲一区二区中文在线| 精品国产区一区| 91色乱码一区二区三区| 日本免费在线视频不卡一不卡二| 久久综合狠狠综合久久综合88| 97久久精品人人爽人人爽蜜臀 | 久久先锋资源网| 一本久久精品一区二区| 久久99深爱久久99精品| 成人免费一区二区三区在线观看| 欧美日韩亚洲综合| 国产成人亚洲精品青草天美| 亚洲精品久久久蜜桃| 欧美精品一区二区三区视频| 91麻豆swag| 激情小说亚洲一区| 一区二区三区小说| 精品国产成人系列| 91电影在线观看| 国产一区二区精品久久| 亚洲国产视频在线| 国产欧美一区二区精品仙草咪| 欧美视频中文一区二区三区在线观看| 寂寞少妇一区二区三区| 亚洲国产综合人成综合网站| 欧美国产综合色视频| 日韩欧美中文字幕一区| 99久久精品免费精品国产| 捆绑紧缚一区二区三区视频 | 久久精品一区八戒影视| 欧美另类变人与禽xxxxx| 成人激情av网| 精品一区免费av| 亚洲电影一区二区三区| 欧美国产综合色视频| 精品美女被调教视频大全网站| 色屁屁一区二区| 国产999精品久久久久久绿帽| 日日摸夜夜添夜夜添国产精品| 国产精品无遮挡| 精品国产青草久久久久福利| 欧美日韩久久一区二区| 91免费看片在线观看| 国产伦精品一区二区三区免费 | 午夜a成v人精品| 最新国产精品久久精品| 久久久久国产精品人| 欧美一区二区大片| 欧美美女直播网站| 一本色道**综合亚洲精品蜜桃冫| 国产黄人亚洲片| 久久99精品一区二区三区| 日韩av电影天堂| 亚洲成年人网站在线观看| 亚洲精品中文在线影院| 国产精品白丝在线| 欧美极品另类videosde| 久久久影视传媒| 精品sm在线观看| 欧美va亚洲va在线观看蝴蝶网| 777午夜精品免费视频| 在线观看视频一区| 91麻豆精品在线观看| 99久久精品情趣| 99久久99久久精品国产片果冻| 成人开心网精品视频| 成人一级视频在线观看| 粉嫩av一区二区三区在线播放| 国产一区 二区| 91精品国产综合久久精品| 欧美日本高清视频在线观看| 欧洲精品一区二区| 欧美午夜寂寞影院| 欧美日韩一区视频| 欧美羞羞免费网站| 欧美三级日韩在线| 欧美日本乱大交xxxxx| 欧美精品在线观看播放| 欧美日韩不卡一区二区| 91精品视频网| 日韩欧美你懂的| 欧美不卡视频一区| 日韩欧美亚洲一区二区| 精品少妇一区二区三区免费观看| 91精品国产日韩91久久久久久| 欧美区在线观看| 日韩一区二区在线观看| 日韩欧美不卡一区| 久久精品亚洲国产奇米99| 国产日韩欧美电影| 国产精品久久久久永久免费观看| 中文字幕av一区 二区| 中文字幕人成不卡一区| 亚洲精品国产第一综合99久久| 亚洲一区二区三区在线播放| 污片在线观看一区二区| 裸体歌舞表演一区二区| 韩日av一区二区| 成人精品一区二区三区四区| 91网页版在线| 欧美性生活大片视频| 91精品国产综合久久香蕉的特点| 日韩一区二区在线播放| 国产丝袜美腿一区二区三区| 亚洲色图第一区| 亚洲成av人综合在线观看| 久久国产精品免费| 成人黄页毛片网站| 在线中文字幕不卡| 日韩一级成人av| 国产日韩欧美精品在线| 亚洲免费观看高清在线观看| 亚洲gay无套男同| 久久97超碰国产精品超碰| www.日韩av| 69精品人人人人| 国产日韩欧美制服另类| 一区二区视频免费在线观看| 麻豆精品一区二区综合av| 成人av片在线观看| 在线成人小视频|