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

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

?? conflict.test

?? sqlite庫
?? 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一区二区三区免费野_久草精品视频
自拍偷拍欧美激情| 中文字幕av资源一区| 亚洲国产精品精华液网站| 99r精品视频| 亚洲激情图片一区| 欧美日韩视频专区在线播放| 伊人婷婷欧美激情| 91久久国产综合久久| 亚洲综合免费观看高清完整版| 91免费国产在线| 亚洲午夜成aⅴ人片| 欧美日韩成人在线| 久久精品国产亚洲5555| 久久亚洲一级片| 不卡高清视频专区| 午夜日韩在线电影| 精品少妇一区二区三区视频免付费| 韩国v欧美v日本v亚洲v| 中文字幕国产一区| 欧美色手机在线观看| 五月天激情综合网| 久久久久久久久久久黄色| 成人午夜av在线| 亚洲一区二区三区在线播放| 欧美一区二区不卡视频| 国产成a人亚洲| 午夜影院久久久| 久久夜色精品国产噜噜av| 色偷偷一区二区三区| 日本色综合中文字幕| 国产精品久久久久一区二区三区 | 中文字幕第一区综合| 91丨porny丨首页| 美女精品一区二区| 欧美韩国日本综合| 欧美二区三区的天堂| 国产.欧美.日韩| 日韩精品一级中文字幕精品视频免费观看 | 日韩视频在线一区二区| 成人在线视频首页| 亚洲高清视频中文字幕| 中文字幕精品在线不卡| 91精品国模一区二区三区| 国产成人精品午夜视频免费| 亚洲成人自拍一区| 最近日韩中文字幕| 久久综合色播五月| 制服丝袜在线91| 成人激情小说乱人伦| 免费观看91视频大全| 一区二区三区四区中文字幕| 久久蜜桃香蕉精品一区二区三区| 欧美性色综合网| 99久久久无码国产精品| 国产福利一区二区三区在线视频| 亚洲成在线观看| 日韩毛片精品高清免费| 久久精品这里都是精品| 日韩欧美一级二级三级久久久| 色综合久久中文综合久久97| 国产乱码字幕精品高清av | 欧美精品xxxxbbbb| 99久久精品免费精品国产| 精品一区二区久久| 蜜臀久久久久久久| 无吗不卡中文字幕| 亚洲一区二区精品视频| 亚洲欧洲另类国产综合| 国产欧美日韩在线| 日本一区二区三区国色天香| 欧美大度的电影原声| 51精品秘密在线观看| 欧美丰满少妇xxxxx高潮对白| 欧美在线综合视频| 在线观看亚洲专区| 在线观看亚洲一区| 欧美人妇做爰xxxⅹ性高电影| 色噜噜久久综合| 91天堂素人约啪| 一本大道综合伊人精品热热 | 亚洲午夜免费电影| 亚洲一区二区欧美| 亚洲在线视频一区| 五月综合激情日本mⅴ| 天堂av在线一区| 久久精品国产一区二区| 国产一区二区美女诱惑| 国产激情视频一区二区在线观看| 色综合久久中文综合久久97 | 亚洲综合区在线| 亚洲sss视频在线视频| 亚洲成精国产精品女| 日韩在线一二三区| 国产原创一区二区| 成人h精品动漫一区二区三区| av激情成人网| 欧美亚洲国产一卡| 91麻豆精品国产| 国产网站一区二区| 亚洲天堂成人在线观看| 亚洲h在线观看| 狠狠色狠狠色综合| 成人激情动漫在线观看| 色婷婷国产精品| 日韩免费电影网站| 国产午夜精品久久久久久免费视| 亚洲国产精品激情在线观看| 日本一区二区高清| 亚洲国产日韩精品| 紧缚捆绑精品一区二区| 成人小视频在线| 欧美日韩的一区二区| 国产亚洲精品福利| 一区二区三区在线观看国产| 日韩av一区二区在线影视| 国产伦精品一区二区三区免费| 91网站黄www| 欧美tk—视频vk| 亚洲摸摸操操av| 国内外精品视频| 在线观看亚洲精品视频| 久久综合狠狠综合久久激情 | 久久精品在线免费观看| 亚洲精品精品亚洲| 久久国产精品99精品国产| 成人91在线观看| 日韩精品在线一区二区| 亚洲色图视频网| 精品无人区卡一卡二卡三乱码免费卡| 大白屁股一区二区视频| 欧美年轻男男videosbes| 欧美国产在线观看| 亚洲444eee在线观看| 国产.欧美.日韩| 日韩精品一区二区三区老鸭窝 | 亚洲三级电影全部在线观看高清| 青青青爽久久午夜综合久久午夜| 成人福利视频网站| 日韩欧美国产三级| 亚洲综合在线视频| 欧美人伦禁忌dvd放荡欲情| 国产婷婷色一区二区三区| 丝瓜av网站精品一区二区 | 国产乱码精品一区二区三区忘忧草| 91视频国产观看| 久久久久久久国产精品影院| 日韩在线一区二区| 欧美视频一区二区| 亚洲老妇xxxxxx| 成人aaaa免费全部观看| 国产亚洲视频系列| 国产一区二区三区精品欧美日韩一区二区三区| 欧美午夜电影在线播放| 亚洲欧洲精品一区二区精品久久久| 国产美女一区二区三区| 日韩三级中文字幕| 日韩不卡一区二区| 欧美日韩国产经典色站一区二区三区| 亚洲日本电影在线| 91性感美女视频| 亚洲视频综合在线| 99re66热这里只有精品3直播| 日本一区二区三区久久久久久久久不| 极品美女销魂一区二区三区免费| 91精品国产综合久久久久久漫画| 亚洲永久精品国产| 欧美天堂一区二区三区| 亚洲午夜久久久久中文字幕久| 在线观看亚洲a| 午夜天堂影视香蕉久久| 欧美日韩免费观看一区三区| 亚洲国产视频a| 欧美日韩精品一区二区三区蜜桃| 亚洲高清三级视频| 欧美一级黄色录像| 激情综合一区二区三区| 精品成人一区二区| 国产精品自在欧美一区| 久久久久久一级片| 盗摄精品av一区二区三区| 国产精品你懂的在线| 99视频热这里只有精品免费| 亚洲欧美激情小说另类| 欧美亚洲国产bt| 日本免费新一区视频| 久久青草欧美一区二区三区| 国产91清纯白嫩初高中在线观看| 久久久www成人免费无遮挡大片| 成人性生交大片免费看中文| 中文字幕亚洲一区二区va在线| 91麻豆精品秘密| 午夜精品久久久久久久久久| 欧美一二三在线| 国产成人精品免费视频网站| 亚洲欧洲精品一区二区三区| 欧美日韩在线免费视频| 黄色精品一二区| 亚洲日本va在线观看| 欧美日本韩国一区| 国产1区2区3区精品美女|