diff options
author | stephan <stephan@noemail.net> | 2024-10-18 23:36:08 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-10-18 23:36:08 +0000 |
commit | 23caead6cbee369c7c7bccf9cb4e90c3487634ae (patch) | |
tree | 41b09c4cf05be01ad9b6cfa8ffd5dda7feffd80d /ext/wasm/SQLTester/SQLTester.run.mjs | |
parent | b94228a119f30398c0347028e63497ef17335bd7 (diff) | |
download | sqlite-23caead6cbee369c7c7bccf9cb4e90c3487634ae.tar.gz sqlite-23caead6cbee369c7c7bccf9cb4e90c3487634ae.zip |
Fix three bugs in SQLTester.mjs which caused --tableresult tests, escaping of SQL values to incorrectly fail, and the --column-names setting to not be reset between tests.
FossilOrigin-Name: 779368dd9b8bb20890b06229c4c3c3b5d153ee88d1af472799515cdc599c870a
Diffstat (limited to 'ext/wasm/SQLTester/SQLTester.run.mjs')
-rw-r--r-- | ext/wasm/SQLTester/SQLTester.run.mjs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/wasm/SQLTester/SQLTester.run.mjs b/ext/wasm/SQLTester/SQLTester.run.mjs index 735fe4dcd..bba1437e5 100644 --- a/ext/wasm/SQLTester/SQLTester.run.mjs +++ b/ext/wasm/SQLTester/SQLTester.run.mjs @@ -69,11 +69,13 @@ intentional error; SELECT json_array(1,2,3) --json [1,2,3] --testcase tableresult-1 - select 1, 'a'; - select 2, 'b'; + select 1, 'a' UNION + select 2, 'b' UNION + select 3, 'c' ORDER by 1 --tableresult # [a-z] 2 b + 3 c --end --testcase json-block-1 select json_array(1,2,3); @@ -110,14 +112,15 @@ const runTests = function(){ ts.run(sqt); affirm( 'zilch' === sqt.nullValue() ); sqt.addTestScript(ts); - sqt.runTests(); + }else if(0){ + sqt.addTestScript(ts); }else{ for(const t of allTests){ sqt.addTestScript( new ns.TestScript(t) ); } allTests.length = 0; - sqt.runTests(); } + sqt.runTests(); }finally{ //log( "Metrics:", sqt.metrics ); sqt.reset(); |