From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1E7883155A for ; Tue, 25 Jun 2019 07:42:26 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UCMLphyVLgvN for ; Tue, 25 Jun 2019 07:42:25 -0400 (EDT) Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 7697431544 for ; Tue, 25 Jun 2019 07:42:25 -0400 (EDT) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 1/2] sqltester: don't convert booleans to 0/1 numerics Date: Tue, 25 Jun 2019 14:42:16 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: Nikita Pettik When there were no booleans in SQL, to represent them numeric values 0 and 1 were involved. However, recently booleans have been introduced in SQL, so values of result set can take boolean values. Hence, it makes no sense to continue converting booleans to numeric, so we can use directly booleans. --- test/sql-tap/atof1.test.lua | 2 +- test/sql-tap/autoinc.test.lua | 2 +- test/sql-tap/cse.test.lua | 10 +- test/sql-tap/e_select1.test.lua | 8 +- test/sql-tap/func.test.lua | 42 +++--- .../gh-3251-string-pattern-comparison.test.lua | 18 +-- test/sql-tap/in1.test.lua | 24 ++-- test/sql-tap/in2.test.lua | 2 +- test/sql-tap/in3.test.lua | 16 +-- test/sql-tap/in4.test.lua | 2 +- test/sql-tap/insert1.test.lua | 4 +- test/sql-tap/lua/sqltester.lua | 24 ---- test/sql-tap/lua_sql.test.lua | 2 +- test/sql-tap/misc1.test.lua | 6 +- test/sql-tap/select1.test.lua | 2 +- test/sql-tap/select7.test.lua | 4 +- test/sql-tap/selectG.test.lua | 2 +- test/sql-tap/sql-errors.test.lua | 4 +- test/sql-tap/subquery.test.lua | 6 +- test/sql-tap/subselect.test.lua | 4 +- test/sql-tap/tkt-80e031a00f.test.lua | 148 ++++++++++----------- test/sql-tap/tkt-a7b7803e.test.lua | 16 +-- test/sql-tap/tkt-b351d95f9.test.lua | 2 +- test/sql-tap/tkt1473.test.lua | 30 ++--- test/sql-tap/tkt3346.test.lua | 2 +- test/sql-tap/tkt3493.test.lua | 28 ++-- test/sql-tap/triggerC.test.lua | 2 +- test/sql-tap/types.test.lua | 2 +- test/sql-tap/where5.test.lua | 4 +- test/sql-tap/whereB.test.lua | 102 +++++++------- test/sql-tap/with2.test.lua | 6 +- 31 files changed, 251 insertions(+), 275 deletions(-) diff --git a/test/sql-tap/atof1.test.lua b/test/sql-tap/atof1.test.lua index e4de744d8..40778cd81 100755 --- a/test/sql-tap/atof1.test.lua +++ b/test/sql-tap/atof1.test.lua @@ -48,7 +48,7 @@ for i = 1, 10000 - 1, 1 do local y = test:execsql(string.format("SELECT %s=CAST(quote(%s) AS real)",x, x)) return y end, { - 1 + true }) end diff --git a/test/sql-tap/autoinc.test.lua b/test/sql-tap/autoinc.test.lua index 3e3eaad14..260196845 100755 --- a/test/sql-tap/autoinc.test.lua +++ b/test/sql-tap/autoinc.test.lua @@ -43,7 +43,7 @@ test:do_execsql_test( SELECT * FROM "_sequence"; ]], { -- - 1,1,"T1",1,0,9223372036854775807LL,1,0,0 + 1,1,"T1",1,0,9223372036854775807LL,1,0,false -- }) diff --git a/test/sql-tap/cse.test.lua b/test/sql-tap/cse.test.lua index 78d0d2046..341b6de01 100755 --- a/test/sql-tap/cse.test.lua +++ b/test/sql-tap/cse.test.lua @@ -35,7 +35,7 @@ test:do_test( ]] end, { -- - 11, -11, -12, 0, 1, 0, 22, 121, 1, 11, 21, -21, -22, 0, 1, 0, 42, 441, 1, 21 + 11, -11, -12, false, true, 0, 22, 121, 1, 11, 21, -21, -22, false, true, 0, 42, 441, 1, 21 -- }) @@ -45,7 +45,7 @@ test:do_execsql_test( SELECT b, b%b, b==b, b!=b, b - 11, 0, 1, 0, 0, 1, 0, 1, 11, 21, 0, 1, 0, 0, 1, 0, 1, 21 + 11, 0, true, false, false, true, false, true, 11, 21, 0, true, false, false, true, false, true, 21 -- }) @@ -135,7 +135,7 @@ test:do_execsql_test( SELECT a, -a, ~a, NOT CAST(a AS BOOLEAN), NOT NOT CAST(a AS BOOLEAN), a-a, a+a, a*a, a/a, a FROM t1 ]], { -- - 1, -1, -2, 0, 1, 0, 2, 1, 1, 1, 2, -2, -3, 0, 1, 0, 4, 4, 1, 2 + 1, -1 ,-2, false, true, 0, 2, 1, 1, 1, 2, -2, -3, false, true, 0, 4, 4, 1, 2 -- }) @@ -145,7 +145,7 @@ test:do_execsql_test( SELECT a, a%a, a==a, a!=a, a - 1, 0, 1, 0, 0, 1, 0, 1, 1, 2, 0, 1, 0, 0, 1, 0, 1, 2 + 1, 0, true, false, false, true, false, true, 1, 2, 0, true, false, false, true, false, true, 2 -- }) @@ -155,7 +155,7 @@ test:do_execsql_test( SELECT NOT CAST(b AS BOOLEAN), ~b, NOT NOT CAST(b AS BOOLEAN), b FROM t1 ]], { -- - 0, -12, 1, 11, 0, -22, 1, 21 + false, -12, true, 11, false, -22, true, 21 -- }) diff --git a/test/sql-tap/e_select1.test.lua b/test/sql-tap/e_select1.test.lua index 99680380a..e5b63e12d 100755 --- a/test/sql-tap/e_select1.test.lua +++ b/test/sql-tap/e_select1.test.lua @@ -869,9 +869,9 @@ test:do_select_tests( {"1", "SELECT a, b FROM z1", {51.65, -59.58, -5, "", -2.2, -23.18, "", 67, -1.04, -32.3, 63, 0}}, {"2", "SELECT a IS NULL, b+1, a,b,c FROM z1", - {0, -58.58, 51.65, -59.58, "belfries", 0, "", -5, "", "75", - 0, -22.18, -2.2, -23.18, "suiters", 1, 68, "", 67, "quartets", 0, -31.3, - -1.04, -32.3, "aspen", 0, 1, 63, 0, "-26"}}, + {false, -58.58, 51.65, -59.58, "belfries", false, "", -5, "", "75", + false, -22.18, -2.2, -23.18, "suiters", true, 68, "", 67, "quartets", false, -31.3, + -1.04, -32.3, "aspen", false, 1, 63, 0, "-26"}}, {"3", "SELECT 32*32, CAST(d AS TEXT) || CAST(e AS TEXT) FROM z2", {1024, "", 1024, "36.06.0"}}, }) @@ -952,7 +952,7 @@ test:do_select_tests( { {"1", "SELECT one, two, count(*) FROM a1 WHERE false", {"", "", 0}}, {"2", "SELECT sum(two), * FROM a1, a2 WHERE three>5", {"", "", "", "", ""}}, - {"3", "SELECT max(one) IS NULL, one IS NULL, two IS NULL FROM a1 WHERE two=7", {1, 1, 1}}, + {"3", "SELECT max(one) IS NULL, one IS NULL, two IS NULL FROM a1 WHERE two=7", {true, true, true}}, }) -- EVIDENCE-OF: R-64138-28774 An aggregate query without a GROUP BY diff --git a/test/sql-tap/func.test.lua b/test/sql-tap/func.test.lua index f9044ad01..a0c6b47b5 100755 --- a/test/sql-tap/func.test.lua +++ b/test/sql-tap/func.test.lua @@ -930,7 +930,7 @@ test:do_execsql_test( UNION ALL SELECT -9223372036850000000) ]], { -- - 1 + true -- }) @@ -948,7 +948,7 @@ test:do_execsql_test( SELECT random() is not null; ]], { -- - 1 + true -- }) @@ -968,7 +968,7 @@ test:do_execsql_test( SELECT randomblob(32) is not null; ]], { -- - 1 + true -- }) @@ -2746,94 +2746,94 @@ test:do_execsql_test( test:do_execsql_test( "func-43", "SELECT CHAR(00) LIKE CHAR(00);", - {1}) + {true}) test:do_execsql_test( "func-44", "SELECT CHAR(00) LIKE CHAR(65);", - {0}) + {false}) test:do_execsql_test( "func-45", "SELECT CHAR(00,65) LIKE CHAR(00,65);", - {1}) + {true}) test:do_execsql_test( "func-46", "SELECT CHAR(00,65) LIKE CHAR(00,66);", - {0}) + {false}) test:do_execsql_test( "func-47", "SELECT CHAR(00,65, 00) LIKE CHAR(00,65,00);", - {1}) + {true}) test:do_execsql_test( "func-48", "SELECT CHAR(00,65,00) LIKE CHAR(00,65);", - {0}) + {false}) test:do_execsql_test( "func-49", "SELECT CHAR(65,00,65,00,65) LIKE CHAR(65,00,65,00,65);", - {1}) + {true}) test:do_execsql_test( "func-50", "SELECT CHAR(65,00,65,00,65) LIKE CHAR(65,00,65,00,66);", - {0}) + {false}) -- LIKE ('%' and '_') test:do_execsql_test( "func-51", "SELECT CHAR(00) LIKE '_';", - {1}) + {true}) test:do_execsql_test( "func-52", "SELECT CHAR(00) LIKE '__';", - {0}) + {false}) test:do_execsql_test( "func-53", "SELECT CHAR(00,65) LIKE '__';", - {1}) + {true}) test:do_execsql_test( "func-54", "SELECT CHAR(00,65) LIKE '_A';", - {1}) + {true}) test:do_execsql_test( "func-55", "SELECT CHAR(00,65,00) LIKE '%';", - {1}) + {true}) test:do_execsql_test( "func-56", "SELECT CHAR(00,65,00) LIKE '%A';", - {0}) + {false}) test:do_execsql_test( "func-57", "SELECT CHAR(65,00,65,00,65) LIKE '%A';", - {1}) + {true}) test:do_execsql_test( "func-58", "SELECT CHAR(65,00,65,00,65) LIKE '%B';", - {0}) + {false}) -- LIKE (ESCAPE symbols) test:do_execsql_test( "func-59", "SELECT CHAR(00) || '_' LIKE '_#_' ESCAPE '#';", - {1}) + {true}) test:do_execsql_test( "func-60", "SELECT CHAR(00) || '_' LIKE '_#%' ESCAPE '#';", - {0}) + {false}) -- REPLACE test:do_execsql_test( diff --git a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua index 861ac8ba2..95e8c98d0 100755 --- a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua +++ b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua @@ -158,15 +158,15 @@ for i, tested_string in ipairs(invalid_testcases) do test_name = prefix .. "5." .. tostring(i) test_itself = "SELECT 'ab" .. tested_string .. "' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "6." .. tostring(i) test_itself = "SELECT 'abc" .. tested_string .. "' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "7." .. tostring(i) test_itself = "SELECT 'ab" .. tested_string .. "c' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) end -- Unicode byte sequences. @@ -187,27 +187,27 @@ local valid_testcases = { for i, tested_string in ipairs(valid_testcases) do local test_name = prefix .. "8." .. tostring(i) local test_itself = "SELECT 'abc' LIKE 'ab" .. tested_string .. "';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "9." .. tostring(i) test_itself = "SELECT 'abc' LIKE 'abc" .. tested_string .. "';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "10." .. tostring(i) test_itself = "SELECT 'abc' LIKE 'ab" .. tested_string .. "c';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "11." .. tostring(i) test_itself = "SELECT 'ab" .. tested_string .. "' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "12." .. tostring(i) test_itself = "SELECT 'abc" .. tested_string .. "' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) test_name = prefix .. "13." .. tostring(i) test_itself = "SELECT 'ab" .. tested_string .. "c' LIKE 'abc';" - test:do_execsql_test(test_name, test_itself, {0}) + test:do_execsql_test(test_name, test_itself, {false}) end test:finish_test() diff --git a/test/sql-tap/in1.test.lua b/test/sql-tap/in1.test.lua index 76112cff9..eca7c15ba 100755 --- a/test/sql-tap/in1.test.lua +++ b/test/sql-tap/in1.test.lua @@ -865,7 +865,7 @@ test:do_test( ]] end, { -- - 1, '', 0, '' + true, '', false, '' -- }) @@ -890,7 +890,7 @@ test:do_execsql_test( SELECT 2 IN (SELECT a FROM t7) ]], { -- - 1 + true -- }) @@ -900,7 +900,7 @@ test:do_execsql_test( SELECT 6 IN (SELECT a FROM t7) ]], { -- - '' + "" -- }) @@ -910,7 +910,7 @@ test:do_execsql_test( SELECT 2 IN (SELECT b FROM t7) ]], { -- - 1 + true -- }) @@ -920,7 +920,7 @@ test:do_execsql_test( SELECT 6 IN (SELECT b FROM t7) ]], { -- - 0 + false -- }) @@ -930,7 +930,7 @@ test:do_execsql_test( SELECT 2 IN (SELECT c FROM t7) ]], { -- - 1 + true -- }) @@ -940,7 +940,7 @@ test:do_execsql_test( SELECT 6 IN (SELECT c FROM t7) ]], { -- - 0 + false -- }) @@ -956,7 +956,7 @@ test:do_execsql_test( 6 NOT IN (SELECT c FROM t7) ]], { -- - 0, '', 0, 1, 0, 1 + false, "", false, true, false, true -- }) @@ -971,7 +971,7 @@ test:do_execsql_test( FROM t7 AS outside ORDER BY b; ]], { -- - 0, '', '', '', 0 + false, "", "", "", false -- }) @@ -986,7 +986,7 @@ test:do_execsql_test( FROM t7 AS outside ORDER BY b; ]], { -- - 1, '', '', '', 1 + true, "", "", "", true -- }) @@ -1009,7 +1009,7 @@ test:do_test( ]] end, { -- - 1, '', 1, 0, 1, 0 + true, "", true, false, true, false -- }) @@ -1025,7 +1025,7 @@ test:do_execsql_test( 6 NOT IN (SELECT c FROM t7) ]], { -- - 0, '', 0, 1, 0, 1 + false, "", false, true, false, true -- }) diff --git a/test/sql-tap/in2.test.lua b/test/sql-tap/in2.test.lua index 9d9a3c3b3..5782eab0c 100755 --- a/test/sql-tap/in2.test.lua +++ b/test/sql-tap/in2.test.lua @@ -90,7 +90,7 @@ for ii=3,N-1 do "in2-"..ii, 'SELECT 1 IN (SELECT a FROM a WHERE (i <'..ii..' ) OR (i >= '..N..'))', { - 1 + true }) end diff --git a/test/sql-tap/in3.test.lua b/test/sql-tap/in3.test.lua index 1ca6a6446..4677c4925 100755 --- a/test/sql-tap/in3.test.lua +++ b/test/sql-tap/in3.test.lua @@ -299,7 +299,7 @@ test:do_test( return exec_neph(" SELECT x IN (SELECT a FROM t1) FROM t2 ") end, { -- - 0, 1 + 0, true -- }) @@ -311,7 +311,7 @@ test:do_test( return exec_neph(" SELECT x IN (SELECT b FROM t1) FROM t2 ") end, { -- - 1, 1 + 1, true -- }) @@ -323,7 +323,7 @@ test:do_test( return exec_neph(" SELECT x IN (SELECT c FROM t1) FROM t2 ") end, { -- - 1, 1 + 1, true -- }) @@ -335,7 +335,7 @@ test:do_test( return exec_neph(" SELECT y IN (SELECT a FROM t1) FROM t2 ") end, { -- - 1, 1 + 1, true -- }) @@ -347,7 +347,7 @@ test:do_test( return exec_neph(" SELECT y IN (SELECT b FROM t1) FROM t2 ") end, { -- - 0, 1 + 0, true -- }) @@ -359,7 +359,7 @@ test:do_test( return exec_neph(" SELECT y IN (SELECT c FROM t1) FROM t2 ") end, { -- - 1, 1 + 1, true -- }) @@ -395,7 +395,7 @@ test:do_test( return exec_neph(" SELECT 'text' IN (SELECT b FROM t3)") end, { -- - 0, 1 + 0, true -- }) @@ -408,7 +408,7 @@ test:do_test( return exec_neph(" SELECT 'TEXT' COLLATE \"unicode_ci\" IN (SELECT b FROM t3) ") end, { -- - 1, 1 + 1, true -- }) diff --git a/test/sql-tap/in4.test.lua b/test/sql-tap/in4.test.lua index 9d488745d..92427b657 100755 --- a/test/sql-tap/in4.test.lua +++ b/test/sql-tap/in4.test.lua @@ -272,7 +272,7 @@ test:do_execsql_test( SELECT x IN() AS a FROM t3 WHERE NOT a ]], { -- - 0, 0 + false, false -- }) diff --git a/test/sql-tap/insert1.test.lua b/test/sql-tap/insert1.test.lua index 031fd224a..9f80976f8 100755 --- a/test/sql-tap/insert1.test.lua +++ b/test/sql-tap/insert1.test.lua @@ -313,7 +313,7 @@ test:do_execsql_test("insert-4.7", [[ return {test:lsearch(x, 'OpenTEphemeral') > 0} -- X(264, "X!cmd", [=[["expr","[lsearch $x OpenEphemeral]>0"]]=]) end, { -- - 1 + true -- }) @@ -348,7 +348,7 @@ test:do_execsql_test("insert-4.7", [[ return {test:lsearch(x, 'OpenTemp') > 0} -- X(298, "X!cmd", [=[["expr","[lsearch $x OpenTemp]>0"]]=]) end, { -- - 0 + false -- }) diff --git a/test/sql-tap/lua/sqltester.lua b/test/sql-tap/lua/sqltester.lua index 87ddca718..e83a8e404 100644 --- a/test/sql-tap/lua/sqltester.lua +++ b/test/sql-tap/lua/sqltester.lua @@ -27,28 +27,6 @@ local function flatten(arr) return result end --- Goal of this routine is to update expected result --- to be comparable with expected. --- Right now it converts logical values to numbers. --- Input must be a table. -local function fix_result(arr) - if type(arr) ~= 'table' then return arr end - for i, v in ipairs(arr) do - if type(v) == 'table' then - -- it is ok to pass array - --fix_expect(v) - else - if type(v) == 'boolean' then - if v then - arr[i] = 1 - else - arr[i] = 0 - end - end - end - end -end - local function finish_test() test:check() os.exit() @@ -143,8 +121,6 @@ local function do_test(self, label, func, expect) local ok, result = pcall(func) if ok then if result == nil then result = { } end - -- Convert all trues and falses to 1s and 0s - fix_result(result) -- If nothing is expected: just make sure there were no error. if expect == nil then diff --git a/test/sql-tap/lua_sql.test.lua b/test/sql-tap/lua_sql.test.lua index b0913e7f4..921fc3922 100755 --- a/test/sql-tap/lua_sql.test.lua +++ b/test/sql-tap/lua_sql.test.lua @@ -115,7 +115,7 @@ for i = 1, #from_lua_to_sql, 1 do test:do_execsql_test( "lua_sql-2.3."..i, "select "..from_lua_to_sql[i][1].." = check_from_lua_to_sql("..i..")", - {1}) + {true}) end local from_lua_to_sql_bad = { diff --git a/test/sql-tap/misc1.test.lua b/test/sql-tap/misc1.test.lua index f332fb791..d5e17ce01 100755 --- a/test/sql-tap/misc1.test.lua +++ b/test/sql-tap/misc1.test.lua @@ -606,7 +606,7 @@ test:do_execsql_test( SELECT '0'=='0.0' ]], { -- - 0 + false -- }) @@ -616,7 +616,7 @@ test:do_execsql_test( SELECT '0'==0.0 ]], { -- - 1 + true -- }) @@ -626,7 +626,7 @@ test:do_execsql_test( SELECT '12345678901234567890'=='12345678901234567891' ]], { -- - 0 + false -- }) diff --git a/test/sql-tap/select1.test.lua b/test/sql-tap/select1.test.lua index 6beeb34cb..58a523787 100755 --- a/test/sql-tap/select1.test.lua +++ b/test/sql-tap/select1.test.lua @@ -2058,7 +2058,7 @@ test:do_test( SELECT 2 IN (SELECT a FROM t1) ]], { -- - 1 + true -- }) diff --git a/test/sql-tap/select7.test.lua b/test/sql-tap/select7.test.lua index f2a071d04..4c76ee65a 100755 --- a/test/sql-tap/select7.test.lua +++ b/test/sql-tap/select7.test.lua @@ -236,7 +236,7 @@ test:do_execsql_test( SELECT a=0, typeof(a) FROM t4 ]], { -- - 0, "number", 0, "number" + false, "number", false, "number" -- }) @@ -246,7 +246,7 @@ test:do_execsql_test( SELECT a=0, typeof(a) FROM t4 GROUP BY a ]], { -- - 0, "number", 0, "number" + false, "number", false, "number" -- }) diff --git a/test/sql-tap/selectG.test.lua b/test/sql-tap/selectG.test.lua index 69029023f..0ca066d1c 100755 --- a/test/sql-tap/selectG.test.lua +++ b/test/sql-tap/selectG.test.lua @@ -50,7 +50,7 @@ test:do_test( :format(end_time - start_time, time_quota)) end, { -- <100> - 100000, 5000050000, 50000.5, 1 + 100000, 5000050000, 50000.5, true -- }) diff --git a/test/sql-tap/sql-errors.test.lua b/test/sql-tap/sql-errors.test.lua index a8d39472d..7ffa0aed0 100755 --- a/test/sql-tap/sql-errors.test.lua +++ b/test/sql-tap/sql-errors.test.lua @@ -492,7 +492,7 @@ test:do_execsql_test( SELECT (1, 2, 3) < (1, 2, 4); ]], { -- - 1 + true -- }) @@ -502,7 +502,7 @@ test:do_execsql_test( SELECT (1, 2, 3) < (1, 2, 2); ]], { -- - 0 + false -- }) diff --git a/test/sql-tap/subquery.test.lua b/test/sql-tap/subquery.test.lua index 7a3e270dc..4e4b8d453 100755 --- a/test/sql-tap/subquery.test.lua +++ b/test/sql-tap/subquery.test.lua @@ -130,7 +130,7 @@ test:do_execsql_test( SELECT (y*2)>b FROM t1, t2 WHERE a=x; ]], { -- - 0, 1, 1, 1 + false, true, true, true -- }) @@ -290,7 +290,7 @@ test:do_execsql_test( SELECT a IN (10.0, 20) FROM t3; ]], { -- - 0 + false -- }) @@ -572,7 +572,7 @@ test:do_execsql_test( ORDER BY a.x; ]], { -- - 106, 4.5, 0, 1, 107, 4.0, 1, 0 + 106, 4.5, false, true, 107, 4.0, true, false -- }) diff --git a/test/sql-tap/subselect.test.lua b/test/sql-tap/subselect.test.lua index ebfdf431e..1c3558f9b 100755 --- a/test/sql-tap/subselect.test.lua +++ b/test/sql-tap/subselect.test.lua @@ -175,7 +175,7 @@ test:do_execsql_test( SELECT 1 IN (SELECT a FROM t1 ORDER BY a); ]], { -- - 1 + true -- }) @@ -185,7 +185,7 @@ test:do_execsql_test( SELECT 2 IN (SELECT a FROM t1 ORDER BY a DESC); ]], { -- - 0 + false -- }) diff --git a/test/sql-tap/tkt-80e031a00f.test.lua b/test/sql-tap/tkt-80e031a00f.test.lua index 3edea11ac..75bae0ed2 100755 --- a/test/sql-tap/tkt-80e031a00f.test.lua +++ b/test/sql-tap/tkt-80e031a00f.test.lua @@ -43,7 +43,7 @@ test:do_execsql_test( SELECT 1 IN () ]], { -- - 0 + false -- }) @@ -53,7 +53,7 @@ test:do_execsql_test( SELECT 1 IN (2) ]], { -- - 0 + false -- }) @@ -63,7 +63,7 @@ test:do_execsql_test( SELECT 1 IN (2,3,4,5,6,7,8,9) ]], { -- - 0 + false -- }) @@ -73,7 +73,7 @@ test:do_execsql_test( SELECT 1 NOT IN () ]], { -- - 1 + true -- }) @@ -83,7 +83,7 @@ test:do_execsql_test( SELECT 1 NOT IN (2) ]], { -- - 1 + true -- }) @@ -93,7 +93,7 @@ test:do_execsql_test( SELECT 1 NOT IN (2,3,4,5,6,7,8,9) ]], { -- - 1 + true -- }) @@ -103,7 +103,7 @@ test:do_execsql_test( SELECT null IN () ]], { -- - 0 + false -- }) @@ -113,7 +113,7 @@ test:do_execsql_test( SELECT null NOT IN () ]], { -- - 1 + true -- }) @@ -124,7 +124,7 @@ test:do_execsql_test( SELECT 1 IN t1; ]], { -- - 0 + false -- }) @@ -134,7 +134,7 @@ test:do_execsql_test( SELECT 1 NOT IN t1 ]], { -- - 1 + true -- }) @@ -144,7 +144,7 @@ test:do_execsql_test( SELECT null IN t1 ]], { -- - 0 + false -- }) @@ -154,7 +154,7 @@ test:do_execsql_test( SELECT null NOT IN t1 ]], { -- - 1 + true -- }) @@ -165,7 +165,7 @@ test:do_execsql_test( SELECT 1 IN t2; ]], { -- - 0 + false -- }) @@ -175,7 +175,7 @@ test:do_execsql_test( SELECT 1 NOT IN t2 ]], { -- - 1 + true -- }) @@ -185,7 +185,7 @@ test:do_execsql_test( SELECT null IN t2 ]], { -- - 0 + false -- }) @@ -195,7 +195,7 @@ test:do_execsql_test( SELECT null NOT IN t2 ]], { -- - 1 + true -- }) @@ -206,7 +206,7 @@ test:do_execsql_test( SELECT 1 IN t3; ]], { -- - 0 + false -- }) @@ -216,7 +216,7 @@ test:do_execsql_test( SELECT 1 NOT IN t3 ]], { -- - 1 + true -- }) @@ -226,7 +226,7 @@ test:do_execsql_test( SELECT null IN t3 ]], { -- - 0 + false -- }) @@ -236,7 +236,7 @@ test:do_execsql_test( SELECT null NOT IN t3 ]], { -- - 1 + true -- }) @@ -246,7 +246,7 @@ test:do_execsql_test( SELECT 1 IN (SELECT x+y FROM t1, t2) ]], { -- - 0 + false -- }) @@ -256,7 +256,7 @@ test:do_execsql_test( SELECT 1 NOT IN (SELECT x+y FROM t1,t2) ]], { -- - 1 + true -- }) @@ -266,7 +266,7 @@ test:do_execsql_test( SELECT null IN (SELECT x+y FROM t1,t2) ]], { -- - 0 + false -- }) @@ -276,7 +276,7 @@ test:do_execsql_test( SELECT null NOT IN (SELECT x+y FROM t1,t2) ]], { -- - 1 + true -- }) @@ -286,7 +286,7 @@ test:do_execsql_test( SELECT 1.23 IN () ]], { -- - 0 + false -- }) @@ -296,7 +296,7 @@ test:do_execsql_test( SELECT 1.23 NOT IN () ]], { -- - 1 + true -- }) @@ -306,7 +306,7 @@ test:do_execsql_test( SELECT 1.23 IN t1 ]], { -- - 0 + false -- }) @@ -316,7 +316,7 @@ test:do_execsql_test( SELECT 1.23 NOT IN t1 ]], { -- - 1 + true -- }) @@ -326,7 +326,7 @@ test:do_execsql_test( SELECT 'hello' IN () ]], { -- - 0 + false -- }) @@ -336,7 +336,7 @@ test:do_execsql_test( SELECT 'hello' NOT IN () ]], { -- - 1 + true -- }) @@ -366,7 +366,7 @@ test:do_execsql_test( SELECT x'303132' IN () ]], { -- - 0 + false -- }) @@ -376,7 +376,7 @@ test:do_execsql_test( SELECT x'303132' NOT IN () ]], { -- - 1 + true -- }) @@ -415,7 +415,7 @@ test:do_execsql_test( SELECT 1 IN (2,3,4) ]], { -- - 0 + false -- }) @@ -425,7 +425,7 @@ test:do_execsql_test( SELECT 1 NOT IN (2,3,4) ]], { -- - 1 + true -- }) @@ -435,7 +435,7 @@ test:do_execsql_test( SELECT 'a' IN ('b','c','d') ]], { -- - 0 + false -- }) @@ -445,7 +445,7 @@ test:do_execsql_test( SELECT 'a' NOT IN ('b','c','d') ]], { -- - 1 + true -- }) @@ -485,7 +485,7 @@ test:do_test( return test:execsql "SELECT 1 IN t4" end, { -- - 0 + false -- }) @@ -495,7 +495,7 @@ test:do_execsql_test( SELECT 1 NOT IN t4 ]], { -- - 1 + true -- }) @@ -505,7 +505,7 @@ test:do_execsql_test( SELECT 1 IN t5 ]], { -- - 0 + false -- }) @@ -515,7 +515,7 @@ test:do_execsql_test( SELECT 1 NOT IN t5 ]], { -- - 1 + true -- }) @@ -525,7 +525,7 @@ test:do_execsql_test( SELECT 1 IN t6 ]], { -- - 0 + false -- }) @@ -535,7 +535,7 @@ test:do_execsql_test( SELECT 1 NOT IN t6 ]], { -- - 1 + true -- }) @@ -545,7 +545,7 @@ test:do_execsql_test( SELECT 'a' IN t7 ]], { -- - 0 + false -- }) @@ -555,7 +555,7 @@ test:do_execsql_test( SELECT 'a' NOT IN t7 ]], { -- - 1 + true -- }) @@ -565,7 +565,7 @@ test:do_execsql_test( SELECT 'a' IN t8 ]], { -- - 0 + false -- }) @@ -575,7 +575,7 @@ test:do_execsql_test( SELECT 'a' NOT IN t8 ]], { -- - 1 + true -- }) @@ -588,7 +588,7 @@ test:do_execsql_test( SELECT 2 IN (2,3,4,null) ]], { -- - 1 + true -- }) @@ -598,7 +598,7 @@ test:do_execsql_test( SELECT 3 NOT IN (2,3,4,null) ]], { -- - 0 + false -- }) @@ -608,7 +608,7 @@ test:do_execsql_test( SELECT 4 IN (2,3,4) ]], { -- - 1 + true -- }) @@ -618,7 +618,7 @@ test:do_execsql_test( SELECT 2 NOT IN (2,3,4) ]], { -- - 0 + false -- }) @@ -628,7 +628,7 @@ test:do_execsql_test( SELECT 'b' IN ('b','c','d') ]], { -- - 1 + true -- }) @@ -638,7 +638,7 @@ test:do_execsql_test( SELECT 'c' NOT IN ('b','c','d') ]], { -- - 0 + false -- }) @@ -648,7 +648,7 @@ test:do_execsql_test( SELECT 'd' IN ('b','c',null,'d') ]], { -- - 1 + true -- }) @@ -658,7 +658,7 @@ test:do_execsql_test( SELECT 'b' NOT IN (null,'b','c','d') ]], { -- - 0 + false -- }) @@ -668,7 +668,7 @@ test:do_execsql_test( SELECT 2 IN t4 ]], { -- - 1 + true -- }) @@ -678,7 +678,7 @@ test:do_execsql_test( SELECT 3 NOT IN t4 ]], { -- - 0 + false -- }) @@ -688,7 +688,7 @@ test:do_execsql_test( SELECT 4 IN (select a from t4n) ]], { -- - 1 + true -- }) @@ -698,7 +698,7 @@ test:do_execsql_test( SELECT 2 NOT IN (select a from t4n) ]], { -- - 0 + false -- }) @@ -708,7 +708,7 @@ test:do_execsql_test( SELECT 2 IN t5 ]], { -- - 1 + true -- }) @@ -718,7 +718,7 @@ test:do_execsql_test( SELECT 3 NOT IN t5 ]], { -- - 0 + false -- }) @@ -728,7 +728,7 @@ test:do_execsql_test( SELECT 2 IN t6 ]], { -- - 1 + true -- }) @@ -738,7 +738,7 @@ test:do_execsql_test( SELECT 3 NOT IN t6 ]], { -- - 0 + false -- }) @@ -748,7 +748,7 @@ test:do_execsql_test( SELECT 4 IN (select b from t6n) ]], { -- - 1 + true -- }) @@ -758,7 +758,7 @@ test:do_execsql_test( SELECT 2 NOT IN (select b from t6n) ]], { -- - 0 + false -- }) @@ -768,7 +768,7 @@ test:do_execsql_test( SELECT 'b' IN t7 ]], { -- - 1 + true -- }) @@ -778,7 +778,7 @@ test:do_execsql_test( SELECT 'c' NOT IN t7 ]], { -- - 0 + false -- }) @@ -788,7 +788,7 @@ test:do_execsql_test( SELECT 'c' IN (select a from t7n) ]], { -- - 1 + true -- }) @@ -798,7 +798,7 @@ test:do_execsql_test( SELECT 'd' NOT IN (select a from t7n) ]], { -- - 0 + false -- }) @@ -808,7 +808,7 @@ test:do_execsql_test( SELECT 'b' IN t8 ]], { -- - 1 + true -- }) @@ -818,7 +818,7 @@ test:do_execsql_test( SELECT 'c' NOT IN t8 ]], { -- - 0 + false -- }) @@ -828,7 +828,7 @@ test:do_execsql_test( SELECT 'c' IN (select c from t8n) ]], { -- - 1 + true -- }) @@ -838,7 +838,7 @@ test:do_execsql_test( SELECT 'd' NOT IN (select c from t8n) ]], { -- - 0 + false -- }) @@ -848,7 +848,7 @@ test:do_execsql_test( SELECT 'a' IN (NULL,'a') ]], { -- - 1 + true -- }) @@ -868,7 +868,7 @@ test:do_execsql_test( SELECT 'a' NOT IN (NULL,'a') ]], { -- - 0 + false -- }) diff --git a/test/sql-tap/tkt-a7b7803e.test.lua b/test/sql-tap/tkt-a7b7803e.test.lua index f94bcac9a..14f05ebfd 100755 --- a/test/sql-tap/tkt-a7b7803e.test.lua +++ b/test/sql-tap/tkt-a7b7803e.test.lua @@ -33,7 +33,7 @@ test:do_test( ]] end, { -- - 1, "first" + true, "first" -- }) @@ -47,7 +47,7 @@ test:do_test( ]] end, { -- - 99, 1 + 99, true -- }) @@ -61,7 +61,7 @@ test:do_test( ]] end, { -- - 1, 1, 99, "fuzzy" + true, true, 99, "fuzzy" -- }) @@ -76,7 +76,7 @@ test:do_test( ]] end, { -- - 0, 1, 0, "first", 1, 0, 99, "fuzzy" + false, true, 0, "first", true, false, 99, "fuzzy" -- }) @@ -91,7 +91,7 @@ test:do_test( ]] end, { -- - 0, "first", 1, "first", 1, "fuzzy", 1, "first", 1, "fuzzy", 0, "fuzzy" + false, "first", true, "first", true, "fuzzy", true, "first", true, "fuzzy", false, "fuzzy" -- }) @@ -106,7 +106,7 @@ test:do_test( ]] end, { -- - 1, "fuzzy", 1, "first" + true, "fuzzy", true, "first" -- }) @@ -120,7 +120,7 @@ test:do_test( ]] end, { -- - 1, "fuzzy", 1, "first" + true, "fuzzy", true, "first" -- }) @@ -134,7 +134,7 @@ test:do_test( ]] end, { -- - 1, "fuzzy", 1, "first", 1, "fuzzy", 0, "fuzzy" + true, "fuzzy", true, "first", true, "fuzzy", false, "fuzzy" -- }) diff --git a/test/sql-tap/tkt-b351d95f9.test.lua b/test/sql-tap/tkt-b351d95f9.test.lua index 2e9b52687..9bdf573b3 100755 --- a/test/sql-tap/tkt-b351d95f9.test.lua +++ b/test/sql-tap/tkt-b351d95f9.test.lua @@ -56,7 +56,7 @@ test:do_execsql_test( SELECT x, y BETWEEN 'xy' AND 'xz' FROM t2 ORDER BY x; ]], { -- - "name1", 0, "name2", 1 + "name1", false, "name2", true -- }) diff --git a/test/sql-tap/tkt1473.test.lua b/test/sql-tap/tkt1473.test.lua index ada18d030..bc7991593 100755 --- a/test/sql-tap/tkt1473.test.lua +++ b/test/sql-tap/tkt1473.test.lua @@ -217,7 +217,7 @@ test:do_execsql_test( (SELECT 1 FROM t1 WHERE a=1 UNION SELECT 2 FROM t1 WHERE b=0) ]], { -- - 1 + true -- }) @@ -261,7 +261,7 @@ test:do_execsql_test( (SELECT 1 FROM t1 WHERE a=0 UNION SELECT 2 FROM t1 WHERE b=4) ]], { -- - 1 + true -- }) @@ -272,7 +272,7 @@ test:do_execsql_test( (SELECT 1 FROM t1 WHERE a=0 UNION ALL SELECT 2 FROM t1 WHERE b=0) ]], { -- - 0 + false -- }) @@ -283,7 +283,7 @@ test:do_execsql_test( (SELECT 1 FROM t1 WHERE a=0 UNION SELECT 2 FROM t1 WHERE b=0) ]], { -- - 0 + false -- }) @@ -629,7 +629,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) @@ -719,7 +719,7 @@ test:do_execsql_test( ) ]], { -- - 1 + true -- }) @@ -749,7 +749,7 @@ test:do_execsql_test( ) ]], { -- - 1 + true -- }) @@ -779,7 +779,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) @@ -809,7 +809,7 @@ test:do_execsql_test( ) ]], { -- - 1 + true -- }) @@ -839,7 +839,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) @@ -873,7 +873,7 @@ test:do_execsql_test( ) ]], { -- - 1 + true -- }) @@ -897,7 +897,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) @@ -953,7 +953,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) @@ -965,7 +965,7 @@ test:do_execsql_test( ) ]], { -- - 1 + true -- }) @@ -989,7 +989,7 @@ test:do_execsql_test( ) ]], { -- - 0 + false -- }) diff --git a/test/sql-tap/tkt3346.test.lua b/test/sql-tap/tkt3346.test.lua index ce57a2db0..12c1785bf 100755 --- a/test/sql-tap/tkt3346.test.lua +++ b/test/sql-tap/tkt3346.test.lua @@ -33,7 +33,7 @@ test:do_test( ]] end, { -- - 2, "bob", 0, 1, "alice", 1, 3, "claire", 0 + 2, "bob", false, 1, "alice", true, 3, "claire", false -- }) diff --git a/test/sql-tap/tkt3493.test.lua b/test/sql-tap/tkt3493.test.lua index 67e79da72..7ceec4702 100755 --- a/test/sql-tap/tkt3493.test.lua +++ b/test/sql-tap/tkt3493.test.lua @@ -129,7 +129,7 @@ test:do_execsql_test( SELECT a=123 FROM t1 GROUP BY a ]], { -- - 1 + true -- }) @@ -139,7 +139,7 @@ test:do_execsql_test( SELECT a=123 FROM t1 ]], { -- - 1 + true -- }) @@ -149,7 +149,7 @@ test:do_execsql_test( SELECT a='123' FROM t1 ]], { -- - 1 + true -- }) @@ -159,7 +159,7 @@ test:do_execsql_test( SELECT count(*), a=123 FROM t1 ]], { -- - 1, 1 + 1, true -- }) @@ -169,7 +169,7 @@ test:do_execsql_test( SELECT count(*), +a=123 FROM t1 ]], { -- - 1, 1 + 1, true -- }) @@ -179,7 +179,7 @@ test:do_execsql_test( SELECT b='456' FROM t1 GROUP BY a ]], { -- - 1 + true -- }) @@ -189,7 +189,7 @@ test:do_execsql_test( SELECT b='456' FROM t1 GROUP BY b ]], { -- - 1 + true -- }) @@ -199,7 +199,7 @@ test:do_execsql_test( SELECT b='456' FROM t1 ]], { -- - 1 + true -- }) @@ -264,7 +264,7 @@ test:do_execsql_test( SELECT a='abc' FROM t2 GROUP BY a ]], { -- - 1 + true -- }) @@ -274,7 +274,7 @@ test:do_execsql_test( SELECT a='abc' FROM t2 ]], { -- - 1 + true -- }) @@ -284,7 +284,7 @@ test:do_execsql_test( SELECT a>b FROM t2 GROUP BY a, b ]], { -- - 0 + false -- }) @@ -294,7 +294,7 @@ test:do_execsql_test( SELECT a>b COLLATE "binary" FROM t2 GROUP BY a, b ]], { -- - 1 + true -- }) @@ -304,7 +304,7 @@ test:do_execsql_test( SELECT b>a FROM t2 GROUP BY a, b ]], { -- - 1 + true -- }) @@ -314,7 +314,7 @@ test:do_execsql_test( SELECT b>a COLLATE "unicode_ci" FROM t2 GROUP BY a, b ]], { -- - 1 + true -- }) diff --git a/test/sql-tap/triggerC.test.lua b/test/sql-tap/triggerC.test.lua index 0d4024224..cf7dd7b1a 100755 --- a/test/sql-tap/triggerC.test.lua +++ b/test/sql-tap/triggerC.test.lua @@ -870,7 +870,7 @@ test:do_test( ]] end, { -- - "", "", 1, 1 + "", "", true, true -- }) diff --git a/test/sql-tap/types.test.lua b/test/sql-tap/types.test.lua index 8de87b5bf..1cbb577ac 100755 --- a/test/sql-tap/types.test.lua +++ b/test/sql-tap/types.test.lua @@ -216,7 +216,7 @@ test:do_execsql_test( SELECT a IS NULL FROM t3; ]], { -- - 1 + true -- }) diff --git a/test/sql-tap/where5.test.lua b/test/sql-tap/where5.test.lua index e46694871..749201564 100755 --- a/test/sql-tap/where5.test.lua +++ b/test/sql-tap/where5.test.lua @@ -422,7 +422,7 @@ test:do_execsql_test("where5-4.6", [[ SELECT x IS NULL FROM t3 ]], { -- - 0, 0, 0 + false, false, false -- }) @@ -430,7 +430,7 @@ test:do_execsql_test("where5-4.7", [[ SELECT x IS NOT NULL FROM t3 ]], { -- - 1, 1, 1 + true, true, true -- }) diff --git a/test/sql-tap/whereB.test.lua b/test/sql-tap/whereB.test.lua index e04e37dc4..f75d0772c 100755 --- a/test/sql-tap/whereB.test.lua +++ b/test/sql-tap/whereB.test.lua @@ -41,7 +41,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -52,7 +52,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -63,7 +63,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -74,7 +74,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -86,7 +86,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -97,7 +97,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -108,7 +108,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -137,7 +137,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 0 + 1, 2, false -- }) @@ -233,7 +233,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 0 + 1, 2, false -- }) @@ -329,7 +329,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -340,7 +340,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -351,7 +351,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -364,7 +364,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -376,7 +376,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -387,7 +387,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -400,7 +400,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -429,7 +429,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -440,7 +440,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -451,7 +451,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -464,7 +464,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -476,7 +476,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -487,7 +487,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -500,7 +500,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -529,7 +529,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -540,7 +540,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -551,7 +551,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -564,7 +564,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -576,7 +576,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -587,7 +587,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -600,7 +600,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -629,7 +629,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -640,7 +640,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -651,7 +651,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -664,7 +664,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -676,7 +676,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -687,7 +687,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -700,7 +700,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -729,7 +729,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -740,7 +740,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -751,7 +751,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -764,7 +764,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -776,7 +776,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -787,7 +787,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -800,7 +800,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -829,7 +829,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -840,7 +840,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -851,7 +851,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -864,7 +864,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -876,7 +876,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -887,7 +887,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) @@ -900,7 +900,7 @@ test:do_execsql_test( ]], { -- - 1, 2, 1 + 1, 2, true -- }) diff --git a/test/sql-tap/with2.test.lua b/test/sql-tap/with2.test.lua index 48f737725..8c7f9f2d9 100755 --- a/test/sql-tap/with2.test.lua +++ b/test/sql-tap/with2.test.lua @@ -338,7 +338,7 @@ test:do_execsql_test( 4.2, genstmt(10), { -- <4.2> - 1 + true -- }) @@ -346,7 +346,7 @@ test:do_execsql_test( 4.3, genstmt(100), { -- <4.3> - 1 + true -- }) @@ -354,7 +354,7 @@ test:do_execsql_test( 4.4, genstmt(255), { -- <4.4> - 1 + true -- }) -- 2.15.1