summaryrefslogtreecommitdiff
path: root/lang/sql/adapter/sqlite-patches/31_eqp_test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sql/adapter/sqlite-patches/31_eqp_test.patch')
-rw-r--r--lang/sql/adapter/sqlite-patches/31_eqp_test.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/sql/adapter/sqlite-patches/31_eqp_test.patch b/lang/sql/adapter/sqlite-patches/31_eqp_test.patch
new file mode 100644
index 00000000..b3f49810
--- /dev/null
+++ b/lang/sql/adapter/sqlite-patches/31_eqp_test.patch
@@ -0,0 +1,18 @@
+--- test/eqp.test
++++ test/eqp.test
+@@ -521,6 +521,7 @@
+ # documentation page eqp.html works. The C code is duplicated in test1.c
+ # and wrapped in Tcl command [print_explain_query_plan]
+ #
++db close
+ set boilerplate {
+ proc explain_query_plan {db sql} {
+ set stmt [sqlite3_prepare_v2 db $sql -1 DUMMY]
+@@ -556,6 +557,7 @@
+ 0 0 0 COMPOUND SUBQUERIES 1 AND 2 (EXCEPT)
+ }]
+
++sqlite3 db test.db
+ #-------------------------------------------------------------------------
+ # The following tests - eqp-7.* - test that queries that use the OP_Count
+ # optimization return something sensible with EQP.