From 040d74a32618db595a1079768562fcc9f5bd96fc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 14 Jun 2022 23:43:58 +0300 Subject: [PATCH] lib/test-mu-store-query: add aujourd'hui tests We match aujourd'hui now; add a test. Fixes #1150. --- lib/tests/test-mu-store-query.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/tests/test-mu-store-query.cc b/lib/tests/test-mu-store-query.cc index 2134300c..369bce0d 100644 --- a/lib/tests/test-mu-store-query.cc +++ b/lib/tests/test-mu-store-query.cc @@ -107,7 +107,6 @@ List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sqlite-dev-bounces@sqlite.org -Content-Length: 639 Inside sqlite3VdbeExec there is a very big switch statement. In order to increase performance with few modifications to the @@ -117,6 +116,8 @@ http://docs.freebsd.org/info/gcc/gcc.info.Labels_as_Values.html With a properly defined "instructions" array, instead of the switch statement you can use something like: goto * instructions[pOp->opcode]; + +I said: "Aujourd'hui!" )"}, }}; TempDir tdir; @@ -133,7 +134,9 @@ goto * instructions[pOp->opcode]; "date:2008-08-01..2008-09-01", "prio:low", "to:sqlite-dev@sqlite.org", - "list:sqlite-dev.sqlite.org"}) { + "list:sqlite-dev.sqlite.org", + "aujourd'hui", + }) { if (g_test_verbose()) g_message("query: '%s'", expr);