lib/test-mu-store-query: add aujourd'hui tests

We match aujourd'hui now; add a test.

Fixes #1150.
This commit is contained in:
Dirk-Jan C. Binnema 2022-06-14 23:43:58 +03:00
parent ff8e0455dc
commit 040d74a326
1 changed files with 5 additions and 2 deletions

View File

@ -107,7 +107,6 @@ List-Id: <sqlite-dev.sqlite.org>
Content-Type: text/plain; charset="us-ascii" Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit
Sender: sqlite-dev-bounces@sqlite.org Sender: sqlite-dev-bounces@sqlite.org
Content-Length: 639
Inside sqlite3VdbeExec there is a very big switch statement. Inside sqlite3VdbeExec there is a very big switch statement.
In order to increase performance with few modifications to the 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 With a properly defined "instructions" array, instead of the switch
statement you can use something like: statement you can use something like:
goto * instructions[pOp->opcode]; goto * instructions[pOp->opcode];
I said: "Aujourd'hui!"
)"}, )"},
}}; }};
TempDir tdir; TempDir tdir;
@ -133,7 +134,9 @@ goto * instructions[pOp->opcode];
"date:2008-08-01..2008-09-01", "date:2008-08-01..2008-09-01",
"prio:low", "prio:low",
"to:sqlite-dev@sqlite.org", "to:sqlite-dev@sqlite.org",
"list:sqlite-dev.sqlite.org"}) { "list:sqlite-dev.sqlite.org",
"aujourd'hui",
}) {
if (g_test_verbose()) if (g_test_verbose())
g_message("query: '%s'", expr); g_message("query: '%s'", expr);