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

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

?? types2.test

?? sqlite庫
?? TEST
字號:
# 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. The focus# of this file is testing the interaction of manifest types, type affinity# and comparison expressions.## $Id: types2.test,v 1.5 2005/01/21 03:12:16 danielk1977 Exp $set testdir [file dirname $argv0]source $testdir/tester.tcl# Tests in this file are organized roughly as follows:## types2-1.*: The '=' operator in the absence of an index.# types2-2.*: The '=' operator implemented using an index.# types2-3.*: The '<' operator implemented using an index.# types2-4.*: The '>' operator in the absence of an index.# types2-5.*: The 'IN(x, y...)' operator in the absence of an index.# types2-6.*: The 'IN(x, y...)' operator with an index.# types2-7.*: The 'IN(SELECT...)' operator in the absence of an index.# types2-8.*: The 'IN(SELECT...)' operator with an index.## All tests test the operators using literals and columns, but no# other types of expressions. All expressions except columns are# handled similarly in the implementation.execsql {  CREATE TABLE t1(    i1 INTEGER,    i2 INTEGER,    n1 NUMERIC,    n2 NUMERIC,    t1 TEXT,    t2 TEXT,    o1 BLOB,    o2 BLOB  );  INSERT INTO t1 VALUES(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);}proc test_bool {testname vars expr res} {  if { $vars != "" } {    execsql "UPDATE t1 SET $vars"  }  foreach {t e r} [list $testname $expr $res] {}  do_test $t.1 "execsql {SELECT $e FROM t1}" $r  do_test $t.2 "execsql {SELECT 1 FROM t1 WHERE $expr}" [expr $r?"1":""]  do_test $t.3 "execsql {SELECT 1 FROM t1 WHERE NOT ($e)}" [expr $r?"":"1"]}# Compare literals against literals. This should always use a numeric# comparison.## Changed by ticket #805:  Use no affinity for literal comparisons.#test_bool types2-1.1 "" {500 = 500.0} 1test_bool types2-1.2 "" {'500' = 500.0} 0test_bool types2-1.3 "" {500 = '500.0'} 0test_bool types2-1.4 "" {'500' = '500.0'} 0# Compare literals against a column with TEXT affinitytest_bool types2-1.5 {t1=500} {500 = t1} 1test_bool types2-1.6 {t1=500} {'500' = t1} 1test_bool types2-1.7 {t1=500} {500.0 = t1} 0test_bool types2-1.8 {t1=500} {'500.0' = t1} 0test_bool types2-1.9 {t1='500'} {500 = t1} 1test_bool types2-1.10 {t1='500'} {'500' = t1} 1test_bool types2-1.11 {t1='500'} {500.0 = t1} 0test_bool types2-1.12 {t1='500'} {'500.0' = t1} 0# Compare literals against a column with NUMERIC affinitytest_bool types2-1.13 {n1=500} {500 = n1} 1test_bool types2-1.14 {n1=500} {'500' = n1} 1test_bool types2-1.15 {n1=500} {500.0 = n1} 1test_bool types2-1.16 {n1=500} {'500.0' = n1} 1test_bool types2-1.17 {n1='500'} {500 = n1} 1test_bool types2-1.18 {n1='500'} {'500' = n1} 1test_bool types2-1.19 {n1='500'} {500.0 = n1} 1test_bool types2-1.20 {n1='500'} {'500.0' = n1} 1# Compare literals against a column with affinity NONEtest_bool types2-1.21 {o1=500} {500 = o1} 1test_bool types2-1.22 {o1=500} {'500' = o1} 0test_bool types2-1.23 {o1=500} {500.0 = o1} 1test_bool types2-1.24 {o1=500} {'500.0' = o1} 0test_bool types2-1.25 {o1='500'} {500 = o1} 0test_bool types2-1.26 {o1='500'} {'500' = o1} 1test_bool types2-1.27 {o1='500'} {500.0 = o1} 0test_bool types2-1.28 {o1='500'} {'500.0' = o1} 0set vals [list 10 10.0 '10' '10.0' 20 20.0 '20' '20.0' 30 30.0 '30' '30.0']#              1  2    3    4      5  6    7    8      9  10   11   12execsql {  CREATE TABLE t2(i INTEGER, n NUMERIC, t TEXT, o XBLOBY);  CREATE INDEX t2i1 ON t2(i);  CREATE INDEX t2i2 ON t2(n);  CREATE INDEX t2i3 ON t2(t);  CREATE INDEX t2i4 ON t2(o);}foreach v $vals {  execsql "INSERT INTO t2 VALUES($v, $v, $v, $v);"}proc test_boolset {testname where set} {  set ::tb_sql "SELECT rowid FROM t2 WHERE $where"  do_test $testname {    lsort -integer [execsql $::tb_sql]  } $set}test_boolset types2-2.1 {i = 10} {1 2 3 4}test_boolset types2-2.2 {i = 10.0} {1 2 3 4}test_boolset types2-2.3 {i = '10'} {1 2 3 4}test_boolset types2-2.4 {i = '10.0'} {1 2 3 4}test_boolset types2-2.5 {n = 20} {5 6 7 8}test_boolset types2-2.6 {n = 20.0} {5 6 7 8}test_boolset types2-2.7 {n = '20'} {5 6 7 8}test_boolset types2-2.8 {n = '20.0'} {5 6 7 8}test_boolset types2-2.9 {t = 20} {5 7}test_boolset types2-2.10 {t = 20.0} {6 8}test_boolset types2-2.11 {t = '20'} {5 7}test_boolset types2-2.12 {t = '20.0'} {6 8}test_boolset types2-2.10 {o = 30} {9 10}test_boolset types2-2.11 {o = 30.0} {9 10}test_boolset types2-2.12 {o = '30'} 11test_boolset types2-2.13 {o = '30.0'} 12test_boolset types2-3.1 {i < 20} {1 2 3 4}test_boolset types2-3.2 {i < 20.0} {1 2 3 4}test_boolset types2-3.3 {i < '20'} {1 2 3 4}test_boolset types2-3.4 {i < '20.0'} {1 2 3 4}test_boolset types2-3.1 {n < 20} {1 2 3 4}test_boolset types2-3.2 {n < 20.0} {1 2 3 4}test_boolset types2-3.3 {n < '20'} {1 2 3 4}test_boolset types2-3.4 {n < '20.0'} {1 2 3 4}test_boolset types2-3.1 {t < 20} {1 2 3 4}test_boolset types2-3.2 {t < 20.0} {1 2 3 4 5 7}test_boolset types2-3.3 {t < '20'} {1 2 3 4}test_boolset types2-3.4 {t < '20.0'} {1 2 3 4 5 7}test_boolset types2-3.1 {o < 20} {1 2}test_boolset types2-3.2 {o < 20.0} {1 2}test_boolset types2-3.3 {o < '20'} {1 2 3 4 5 6 9 10}test_boolset types2-3.3 {o < '20.0'} {1 2 3 4 5 6 7 9 10}# Compare literals against literals (always a numeric comparison).# Change (by ticket #805):  No affinity in comparisonstest_bool types2-4.1 "" {500 > 60.0} 1test_bool types2-4.2 "" {'500' > 60.0} 1test_bool types2-4.3 "" {500 > '60.0'} 0test_bool types2-4.4 "" {'500' > '60.0'} 0# Compare literals against a column with TEXT affinitytest_bool types2-4.5 {t1=500.0} {t1 > 500} 1test_bool types2-4.6 {t1=500.0} {t1 > '500' } 1test_bool types2-4.7 {t1=500.0} {t1 > 500.0 } 0test_bool types2-4.8 {t1=500.0} {t1 > '500.0' } 0test_bool types2-4.9 {t1='500.0'} {t1 > 500 } 1test_bool types2-4.10 {t1='500.0'} {t1 > '500' } 1test_bool types2-4.11 {t1='500.0'} {t1 > 500.0 } 0test_bool types2-4.12 {t1='500.0'} {t1 > '500.0' } 0# Compare literals against a column with NUMERIC affinitytest_bool types2-4.13 {n1=400} {500 > n1} 1test_bool types2-4.14 {n1=400} {'500' > n1} 1test_bool types2-4.15 {n1=400} {500.0 > n1} 1test_bool types2-4.16 {n1=400} {'500.0' > n1} 1test_bool types2-4.17 {n1='400'} {500 > n1} 1test_bool types2-4.18 {n1='400'} {'500' > n1} 1test_bool types2-4.19 {n1='400'} {500.0 > n1} 1test_bool types2-4.20 {n1='400'} {'500.0' > n1} 1# Compare literals against a column with affinity NONEtest_bool types2-4.21 {o1=500} {500 > o1} 0test_bool types2-4.22 {o1=500} {'500' > o1} 1test_bool types2-4.23 {o1=500} {500.0 > o1} 0test_bool types2-4.24 {o1=500} {'500.0' > o1} 1test_bool types2-4.25 {o1='500'} {500 > o1} 0test_bool types2-4.26 {o1='500'} {'500' > o1} 0test_bool types2-4.27 {o1='500'} {500.0 > o1} 0test_bool types2-4.28 {o1='500'} {'500.0' > o1} 1ifcapable subquery {  # types2-5.* - The 'IN (x, y....)' operator with no index.  #   # Compare literals against literals (always a numeric comparison).  test_bool types2-5.1 {} {(NULL IN ('10.0', 20)) ISNULL} 1  test_bool types2-5.2 {} {10 IN ('10.0', 20)} 1  test_bool types2-5.3 {} {'10' IN ('10.0', 20)} 1  test_bool types2-5.4 {} {10 IN (10.0, 20)} 1  test_bool types2-5.5 {} {'10.0' IN (10, 20)} 1    # Compare literals against a column with TEXT affinity  test_bool types2-5.6 {t1='10.0'} {t1 IN (10.0, 20)} 1  test_bool types2-5.7 {t1='10.0'} {t1 IN (10, 20)} 0  test_bool types2-5.8 {t1='10'} {t1 IN (10.0, 20)} 0  test_bool types2-5.9 {t1='10'} {t1 IN (20, '10.0')} 0  test_bool types2-5.10 {t1=10} {t1 IN (20, '10')} 1    # Compare literals against a column with NUMERIC affinity  test_bool types2-5.11 {n1='10.0'} {n1 IN (10.0, 20)} 1  test_bool types2-5.12 {n1='10.0'} {n1 IN (10, 20)} 1  test_bool types2-5.13 {n1='10'} {n1 IN (10.0, 20)} 1  test_bool types2-5.14 {n1='10'} {n1 IN (20, '10.0')} 1  test_bool types2-5.15 {n1=10} {n1 IN (20, '10')} 1    # Compare literals against a column with affinity NONE  test_bool types2-5.16 {o1='10.0'} {o1 IN (10.0, 20)} 0  test_bool types2-5.17 {o1='10.0'} {o1 IN (10, 20)} 0  test_bool types2-5.18 {o1='10'} {o1 IN (10.0, 20)} 0  test_bool types2-5.19 {o1='10'} {o1 IN (20, '10.0')} 0  test_bool types2-5.20 {o1=10} {o1 IN (20, '10')} 0  test_bool types2-5.21 {o1='10.0'} {o1 IN (10, 20, '10.0')} 1  test_bool types2-5.22 {o1='10'} {o1 IN (10.0, 20, '10')} 1  test_bool types2-5.23 {o1=10} {n1 IN (20, '10', 10)} 1}# Tests named types2-6.* use the same infrastructure as the types2-2.*# tests. The contents of the vals array is repeated here for easy # reference.# # set vals [list 10 10.0 '10' '10.0' 20 20.0 '20' '20.0' 30 30.0 '30' '30.0']#                1  2    3    4      5  6    7    8      9  10   11   12ifcapable subquery {  test_boolset types2-6.1 {o IN ('10', 30)} {3 9 10}  test_boolset types2-6.2 {o IN (20.0, 30.0)} {5 6 9 10}  test_boolset types2-6.3 {t IN ('10', 30)} {1 3 9 11}  test_boolset types2-6.4 {t IN (20.0, 30.0)} {6 8 10 12}  test_boolset types2-6.5 {n IN ('10', 30)} {1 2 3 4 9 10 11 12}  test_boolset types2-6.6 {n IN (20.0, 30.0)} {5 6 7 8 9 10 11 12}  test_boolset types2-6.7 {i IN ('10', 30)} {1 2 3 4 9 10 11 12}  test_boolset types2-6.8 {i IN (20.0, 30.0)} {5 6 7 8 9 10 11 12}  # Also test than IN(x, y, z) works on a rowid:  test_boolset types2-6.9 {rowid IN (1, 6, 10)} {1 6 10}}# Tests types2-7.* concentrate on expressions of the form # "x IN (SELECT...)" with no index.execsql {  CREATE TABLE t3(i INTEGER, n NUMERIC, t TEXT, o BLOB);  INSERT INTO t3 VALUES(1, 1, 1, 1);  INSERT INTO t3 VALUES(2, 2, 2, 2);  INSERT INTO t3 VALUES(3, 3, 3, 3);  INSERT INTO t3 VALUES('1', '1', '1', '1');  INSERT INTO t3 VALUES('1.0', '1.0', '1.0', '1.0');}ifcapable subquery {  test_bool types2-7.1 {i1=1} {i1 IN (SELECT i FROM t3)} 1  test_bool types2-7.2 {i1='2.0'} {i1 IN (SELECT i FROM t3)} 1  test_bool types2-7.3 {i1='2.0'} {i1 IN (SELECT n FROM t3)} 1  test_bool types2-7.4 {i1='2.0'} {i1 IN (SELECT t FROM t3)} 1  test_bool types2-7.5 {i1='2.0'} {i1 IN (SELECT o FROM t3)} 1    test_bool types2-7.6 {n1=1} {n1 IN (SELECT n FROM t3)} 1  test_bool types2-7.7 {n1='2.0'} {n1 IN (SELECT i FROM t3)} 1  test_bool types2-7.8 {n1='2.0'} {n1 IN (SELECT n FROM t3)} 1  test_bool types2-7.9 {n1='2.0'} {n1 IN (SELECT t FROM t3)} 1  test_bool types2-7.10 {n1='2.0'} {n1 IN (SELECT o FROM t3)} 1    test_bool types2-7.6 {t1=1} {t1 IN (SELECT t FROM t3)} 1  test_bool types2-7.7 {t1='2.0'} {t1 IN (SELECT t FROM t3)} 0  test_bool types2-7.8 {t1='2.0'} {t1 IN (SELECT n FROM t3)} 1  test_bool types2-7.9 {t1='2.0'} {t1 IN (SELECT i FROM t3)} 1  test_bool types2-7.10 {t1='2.0'} {t1 IN (SELECT o FROM t3)} 0  test_bool types2-7.11 {t1='1.0'} {t1 IN (SELECT t FROM t3)} 1  test_bool types2-7.12 {t1='1.0'} {t1 IN (SELECT o FROM t3)} 1    test_bool types2-7.13 {o1=2} {o1 IN (SELECT o FROM t3)} 1  test_bool types2-7.14 {o1='2'} {o1 IN (SELECT o FROM t3)} 0  test_bool types2-7.15 {o1='2'} {o1 IN (SELECT o||'' FROM t3)} 1}# set vals [list 10 10.0 '10' '10.0' 20 20.0 '20' '20.0' 30 30.0 '30' '30.0']#                1  2    3    4      5  6    7    8      9  10   11   12execsql {  CREATE TABLE t4(i INTEGER, n NUMERIC, t VARCHAR(20), o LARGE BLOB);  INSERT INTO t4 VALUES(10, 20, 20, 30);}ifcapable subquery {  test_boolset types2-8.1 {i IN (SELECT i FROM t4)} {1 2 3 4}  test_boolset types2-8.2 {n IN (SELECT i FROM t4)} {1 2 3 4}  test_boolset types2-8.3 {t IN (SELECT i FROM t4)} {1 2 3 4}  test_boolset types2-8.4 {o IN (SELECT i FROM t4)} {1 2 3 4}  test_boolset types2-8.5 {i IN (SELECT t FROM t4)} {5 6 7 8}  test_boolset types2-8.6 {n IN (SELECT t FROM t4)} {5 6 7 8}  test_boolset types2-8.7 {t IN (SELECT t FROM t4)} {5 7}  test_boolset types2-8.8 {o IN (SELECT t FROM t4)} {7}  test_boolset types2-8.9 {i IN (SELECT o FROM t4)} {9 10 11 12}  test_boolset types2-8.6 {n IN (SELECT o FROM t4)} {9 10 11 12}  test_boolset types2-8.7 {t IN (SELECT o FROM t4)} {9 11}  test_boolset types2-8.8 {o IN (SELECT o FROM t4)} {9 10}}finish_test

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国产成人在线| 日韩av一区二区三区| 精品在线视频一区| 欧美日本韩国一区二区三区视频 | 日韩精品在线看片z| 视频在线观看国产精品| 欧美网站大全在线观看| 亚洲最大成人综合| 色94色欧美sute亚洲线路一久 | 欧美日韩国产高清一区| 亚洲不卡一区二区三区| 欧美日韩一区二区欧美激情 | 色哟哟一区二区| 一区二区三区日本| 欧美精品aⅴ在线视频| 日本中文在线一区| 欧美成人三级电影在线| 国产成人午夜精品5599| 国产精品久久久久久亚洲伦 | 亚洲国产精品黑人久久久| 成年人网站91| 亚洲一区免费视频| 91精品国产综合久久久蜜臀图片| 日韩av一级片| 亚洲国产电影在线观看| 欧美午夜在线一二页| 蜜臀av性久久久久蜜臀aⅴ| 国产三级久久久| 欧美日韩国产影片| 国产在线看一区| 亚洲激情自拍视频| 日韩午夜av一区| 91小视频在线| 蜜桃在线一区二区三区| 成人欧美一区二区三区| 日韩限制级电影在线观看| 成人激情视频网站| 日精品一区二区三区| 日本一区二区三区四区在线视频| 欧美色精品在线视频| 国产精一区二区三区| 人妖欧美一区二区| 国产精品久久久久婷婷| 精品卡一卡二卡三卡四在线| 亚洲人成在线播放网站岛国| 欧美日韩成人激情| 国产 欧美在线| 久久99久久精品| 亚洲综合在线观看视频| 欧美—级在线免费片| 日韩欧美国产午夜精品| 欧美久久一二三四区| 91麻豆文化传媒在线观看| 风间由美一区二区三区在线观看| 蜜桃免费网站一区二区三区| 亚洲一区二区在线播放相泽| 亚洲精品久久久久久国产精华液| 国产精品三级av| 欧美激情一区二区三区不卡 | 麻豆成人综合网| 日韩电影免费在线看| 亚洲大片免费看| 亚洲自拍偷拍欧美| 一级精品视频在线观看宜春院| 中文字幕中文字幕一区二区| 国产精品青草久久| 国产精品福利av| 亚洲美女电影在线| 一区二区三区中文字幕| 一区二区三区欧美视频| 亚洲大片精品永久免费| 青娱乐精品视频在线| 麻豆国产91在线播放| 国产成人免费在线观看不卡| 国产成人免费视频网站| 成人激情午夜影院| 日本精品视频一区二区| 欧美色男人天堂| 欧美一区二区三区电影| 精品久久久久久久久久久久久久久 | 国产精品久久久久桃色tv| 亚洲国产成人午夜在线一区| 亚洲人精品一区| 亚洲成人一区在线| 国产精品123| 欧美日韩在线播放一区| 九九九久久久精品| 成人综合婷婷国产精品久久| 色偷偷88欧美精品久久久 | 亚洲一区在线观看免费| 精品一区二区免费看| 97久久精品人人做人人爽50路| 欧美日韩精品系列| 久久婷婷国产综合精品青草| 亚洲男人的天堂在线观看| 日韩精品三区四区| 北条麻妃国产九九精品视频| 欧美丰满少妇xxxxx高潮对白| 日本一区二区免费在线观看视频 | 韩日av一区二区| 欧美美女一区二区在线观看| 久久久精品天堂| 亚洲国产视频一区二区| 粉嫩av一区二区三区粉嫩| 3d动漫精品啪啪一区二区竹菊| 国产日韩亚洲欧美综合| 蜜臀av一区二区| 欧美撒尿777hd撒尿| 麻豆91在线播放| 欧美日韩精品一区二区在线播放| 国产精品人人做人人爽人人添 | 在线成人免费视频| 玉足女爽爽91| 色狠狠色噜噜噜综合网| 中文字幕一区二| 国产精品一区二区你懂的| 欧美一级一区二区| 日韩专区一卡二卡| 欧美色窝79yyyycom| 亚洲精品国产无套在线观| 91色porny蝌蚪| 亚洲男同1069视频| 色噜噜狠狠色综合中国| 中文字幕一区二区三区不卡| 国产91丝袜在线观看| 中文字幕欧美国产| 99re热视频精品| 亚洲综合免费观看高清完整版在线 | 国产精品久久网站| 91久久人澡人人添人人爽欧美| 亚洲精品视频免费观看| 精品视频1区2区3区| 免费成人av资源网| 精品国产乱码久久久久久浪潮| 六月丁香综合在线视频| 亚洲精品一区二区三区香蕉 | 久久久精品日韩欧美| 成人av资源在线| 亚洲午夜一区二区三区| 欧美日韩一区二区欧美激情| 久久99国产乱子伦精品免费| 久久久久综合网| 91国偷自产一区二区使用方法| 午夜精品免费在线观看| 欧美精品一区二区三区高清aⅴ | 九色综合狠狠综合久久| 国产精品不卡视频| 欧美一区二区在线看| 东方欧美亚洲色图在线| 亚洲成人午夜影院| 久久精品水蜜桃av综合天堂| 99久久er热在这里只有精品15 | 91精品国产色综合久久不卡电影 | 精品福利在线导航| 色噜噜狠狠一区二区三区果冻| 精品一区二区三区在线播放| 国产精品久久久久久久久果冻传媒| 欧美人xxxx| 在线亚洲欧美专区二区| 粉嫩av一区二区三区在线播放 | 亚洲国产成人精品视频| 国产精品青草综合久久久久99| 欧美一区二区三区播放老司机| 国产欧美1区2区3区| 日韩亚洲欧美高清| 欧美日韩在线播放一区| 91免费看`日韩一区二区| 国产盗摄视频一区二区三区| 日韩av在线免费观看不卡| 国产一区二区h| 日韩成人dvd| 婷婷一区二区三区| 亚洲午夜激情网页| 亚洲一区视频在线| 亚洲午夜久久久久久久久久久| 国产精品久久久久影院亚瑟 | 一区二区三区中文字幕| 亚洲男人的天堂网| |精品福利一区二区三区| 亚洲国产岛国毛片在线| 久久久亚洲午夜电影| 久久五月婷婷丁香社区| 久久亚区不卡日本| 国产人伦精品一区二区| 久久精品一二三| 亚洲国产精品黑人久久久| 中文无字幕一区二区三区 | 久久久久久久综合色一本| 久久久午夜电影| 国产精品少妇自拍| 国产精品精品国产色婷婷| 亚洲欧美日韩一区二区三区在线观看| 国产精品久久久久久久午夜片 | av中文字幕不卡| 91啪亚洲精品| 欧美裸体bbwbbwbbw| 日韩精品一区二区三区四区| 久久一二三国产| 中文字幕一区二区三区精华液 | 一本一道波多野结衣一区二区|