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 618AD29FD7 for ; Tue, 11 Sep 2018 03:38:55 -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 bby54a0Te2SC for ; Tue, 11 Sep 2018 03:38:54 -0400 (EDT) Received: from smtp62.i.mail.ru (smtp62.i.mail.ru [217.69.128.42]) (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 EC3B326EF7 for ; Tue, 11 Sep 2018 03:38:45 -0400 (EDT) From: Nikita Tatunov Message-Id: <32D1E5EA-EA21-4E4B-B5F5-80B6578BFBED@tarantool.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_C5906CD7-856B-4C72-9D3C-1AA7A1FE35B9" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: [tarantool-patches] Re: [PATCH 2/2] sql: remove GLOB from Tarantool Date: Tue, 11 Sep 2018 10:38:38 +0300 In-Reply-To: References: <4607dc428909e96915e9f0984a7733a0890a3185.1534436836.git.n.tatunov@tarantool.org> <76466086-2a5f-8f12-cbc3-4ddf26e30fd9@tarantool.org> 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: Alex Khatskevich Cc: tarantool-patches@freelists.org, Alexander Turenko --Apple-Mail=_C5906CD7-856B-4C72-9D3C-1AA7A1FE35B9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, thank you for comments. See full diff is at the end of the letter. > On 11 Sep 2018, at 01:06, Alex Khatskevich = wrote: >=20 > 1. See some comments below. > 2. Please, send the full patch diff when done (not just an incremental = diff as you did). > Patch seems ok in overall. >=20 > On 09.09.2018 17:57, Nikita Tatunov wrote: >> Hello, please consider corrected version of the patch. >> Diff with the previous version at the end. >>=20 >>> On 17 Aug 2018, at 11:25, Alex Khatskevich = > = wrote: >>>=20 >>>=20 >>>=20 >>> On 16.08.2018 20:00, N.Tatunov wrote: >>>> GLOB is a legacy extension for LIKE from SQLite. As we want our SQL = to >>>> be close to ANSI SQL & LIKE to depend on collations, we do not want = to >>>> support it. This patch totally removes it from Tarantool along with = any >>>> mentions of it. >>> 1.We delete it because it is not working properly, and instead of = fixing it we >>> want to replace it with more general regexp. Delete other = unnecessary thoughts >>> from this message. >>> 2. Do not use "we", "our" in commit messages. >>=20 >> As discussed above it=E2=80=99s not going to be changed. > Ok. >>=20 >>>> static int >>>> sql_utf8_pattern_compare(const char *pattern, >>>> const char *string, >>>> - const struct compareInfo *pInfo, >>>> - UChar32 matchOther) >>>> + const int *is_like_ci, >>> Pass this parameter by value. >>=20 >> Fixed. >>=20 >>>> + UChar32 match_other) >>>> { >>>> /* Next pattern and input string chars */ >>>> UChar32 c, c2; >>>> - /* "?" or "_" */ >>>> - UChar32 matchOne =3D pInfo->matchOne; >>>> - /* "*" or "%" */ >>>> - UChar32 matchAll =3D pInfo->matchAll; >>>> - /* True if uppercase=3D=3Dlowercase */ >>>> - UChar32 noCase =3D pInfo->noCase; >>>> + /* "_" */ >>>> + UChar32 match_one =3D '_'; >>>> + /* "%" */ >>>> + UChar32 match_all =3D '%'; >>> This variables consumes stack. Can they be moved to defines? >>> If it will break smth, make them const. >>=20 >> moved them to defines. >>=20 >>>>=20 >>>> int >>>> -sqlite3_strlike(const char *zPattern, const char *zStr, unsigned = int esc) >>>> +sql_strlike_ci(const char *zPattern, const char *zStr, unsigned = int esc) >>>> { >>>> - return sql_utf8_pattern_compare(zPattern, zStr, &likeInfoNorm, = esc); >>>> + return sql_utf8_pattern_compare(zPattern, zStr, = &case_insensitive_like, esc); >>> Hardcode `case_insensitive_like` value here. >>=20 >> Done. >>=20 >>>> + /** >>>> + * Limit the length of the LIKE pattern to avoid problems >>>> + * of deep recursion and N*N behavior in >>> I thought that only globe could require N*N time. Check delete the = comment. >>=20 >> The reason is the recursion in sql_utf8_pattern_compare() which is = still >> there. >>=20 >>>>=20 >>>> - "ESCAPE expression must be = a single character", >>>> + "ESCAPE expression must be = a" >>>> + " single character", >>> Do not split error messages at the middle of a sentence. It makes = errors ungreppable. >>> Make it <80 somehow different. >>>=20 >>=20 >> Have already been discussed in this thread. > I suppose that we concluded to try to fit into 80 and split the string = only > in case it is impossible. I don=E2=80=99t think so. Anyways, Alexander could you please give your = thoughts? >>>> - sqlite3_result_error(context, "LIKE or GLOB pattern can = only" >>>> - " contain UTF-8 characters", -1); >>>> + sqlite3_result_error(context, "LIKE pattern can only = contain" >>>> + " UTF-8 characters", -1); >>> Do not split error messages at the middle of a sentence. Make it <80 = somehow different. >>=20 >> Have already been discussed in this thread. > same >>=20 >>>> + int *is_like_ci; >>>> + if (is_case_sensitive) >>>> + is_like_ci =3D (int *)&case_sensitive_like; >>> pass this var by value. >>=20 >> We need (void *) in sqlite3CreateFunc(), i don=E2=80=99t think it=E2=80= =99s relevant to pass >> variable by value. > Yes, sorry. >>=20 >>>> diff --git a/test/sql-tap/alter.test.lua = b/test/sql-tap/alter.test.lua >>>> index cfe2801..773bdeb 100755 >>>> --- a/test/sql-tap/alter.test.lua >>>> +++ b/test/sql-tap/alter.test.lua >>>> @@ -230,9 +230,10 @@ test:do_execsql_test( >>>> test:do_execsql_test( >>>> "alter-5.1", >>>> [[ >>>> + PRAGMA case_sensitive_like =3D true; >>>> CREATE TABLE xyz(x PRIMARY KEY); >>>> ALTER TABLE xyz RENAME TO "xyz1234abc"; >>>> - SELECT "name" FROM "_space" WHERE "name" GLOB 'xyz*'; >>>> + SELECT "name" FROM "_space" WHERE "name" LIKE 'xyz%'; >>> This test become unreasonably complex. >>> Do just "select where name =3D 'xyz1234abc' >>> Or at least delete case_sensitive=E2=80=A6 >>=20 >> Done. >>=20 >>>> ]], { >>>> -- >>>> "xyz1234abc" >>>> @@ -243,7 +244,8 @@ test:do_execsql_test( >>>> "alter-5.2", >>>> [[ >>>> ALTER TABLE "xyz1234abc" RENAME TO xyzabc; >>>> - SELECT "name" FROM "_space" WHERE "name" GLOB 'XYZ*'; >>>> + SELECT "name" FROM "_space" WHERE "name" LIKE 'XYZ%'; >>>> + PRAGMA case_sensitive_like =3D false; >>> This test become unreasonably complex. >>> Do just "select where name =3D =E2=80=98xyz1234abc' >>=20 >> Done. >>=20 >>>> --- NOTE: This test needs refactoring after deletion of GLOB & >>>> --- type restrictions for LIKE. (See #3572) >>>> --- {"LIKE", "like"}, >>>> --- {"GLOB", "glob"}, >>>> + {"LIKE", "like"}, >>>> {"AND", "and"}, >>>> {"OR", "or"}, >>>> {"MATCH", "match"}, >>>> @@ -98,12 +95,9 @@ operations =3D { >>>> {"+", "-"}, >>>> {"<<", ">>", "&", "|"}, >>>> {"<", "<=3D", ">", ">=3D"}, >>>> --- NOTE: This test needs refactoring after deletion of GLOB & >>>> --- type restrictions for LIKE. (See #3572) >>>> -- Another NOTE: MATCH & REGEXP aren't supported in Tarantool & >>>> --- are waiting for their hour, don't confuse them >>>> --- being commented with ticket above. >>>> - {"=3D", "=3D=3D", "!=3D", "<>"}, --"LIKE", "GLOB"}, --"MATCH", = "REGEXP"}, >>>> +-- are waiting for their hour. >>>> + {"=3D", "=3D=3D", "!=3D", "<>", "LIKE"}, --"MATCH", "REGEXP"}, >>>> {"AND"}, >>>> {"OR"}, >>>> } >>>> @@ -128,7 +122,7 @@ end >>>> -- EVIDENCE-OF: R-15514-65163 SQLite understands the following = binary >>>> -- operators, in order from highest to lowest precedence: || * / % = + - >>>> -- << >> & | < <=3D > >=3D =3D =3D=3D !=3D <> IS IS >>>> --- NOT IN LIKE GLOB MATCH REGEXP AND OR >>>> +-- NOT IN LIKE MATCH REGEXP AND OR >>>> -- >>>> -- EVIDENCE-OF: R-38759-38789 Operators IS and IS NOT have the = same >>>> -- precedence as =3D. >>>> @@ -467,18 +461,63 @@ literals =3D { >>>> for _, op in ipairs(oplist) do >>>> for n1, rhs in ipairs(literals) do >>>> for n2, lhs in ipairs(literals) do >>>> - local t =3D test:execsql(string.format(" SELECT = typeof(%s %s %s) ", lhs, op, rhs))[1] >>>> - test:do_test( >>>> - string.format("e_expr-7.%s.%s.%s", opname[op], n1, = n2), >>>> - function() >>>> - --print("\n op "..op.." t "..t) >>>> - return (((op =3D=3D "||") and ((t =3D=3D = "text") or >>>> - (t =3D=3D "null"))) or >>>> - ((op ~=3D "||") and (((t =3D=3D = "integer") or >>>> - (t =3D=3D "real")) or >>>> - (t =3D=3D "null")))) and 1 or = 0 >>>> - end, 1) >>>> + if op ~=3D "LIKE" then >>> 1. Why do not just delete like from `oplist`? >>> 2. We were discussing this place with you and Georgy, and decided = that you do >>> not touch this for loop at all. >>=20 >> Ok. Commented LIKE in `oplist` (it=E2=80=99s still a binary operator = who knows, maybe we will revive it). >>=20 >>>> -local function glob(args) >>>> - return 1 >>>> -end >>>> -box.internal.sql_create_function("GLOB", glob) >>>> -box.internal.sql_create_function("MATCH", glob) >>>> -box.internal.sql_create_function("REGEXP", glob) >>>> +-- NOTE: GLOB is removed from Tarantool, thus it'll be needed to >>>> +-- refactor these calls. They don't work right now since >>>> +-- we don't support MATHC & REGEXP. >>>> +-- local function glob(args) >>>> +-- return 1 >>>> +-- end >>> This test do not test the glob function. Delete this comment. >>=20 >> Done. >>=20 >>>> + >>>> +-- box.internal.sql_create_function("MATCH", glob) >>>> +-- box.internal.sql_create_function("REGEXP", glob) >>> You was lucky that commenting those lines do not break the tests. = (because there is a similar >>> code above) >>> Return it back. >>=20 >> Done. >>=20 >>>> @@ -2274,15 +2312,23 @@ test:do_execsql_test( >>>> -- >>>> }) >>>> --- EVIDENCE-OF: R-52087-12043 The GLOB operator is similar to = LIKE but >>>> --- uses the Unix file globbing syntax for its wildcards. >>>> --- >>>> --- EVIDENCE-OF: R-09813-17279 Also, GLOB is case sensitive, unlike = LIKE. >>>> +-- EVIDENCE-OF: R-52087-12043 LIKE doesn't use Unix file globbing >>>> +-- syntax for its wildcards. >>> Those test was designed especially for the glob function. >>> There are similar tests for like above. >>> You should delete it instead of renaming. >>=20 >> Ok, Deleted. >>=20 >>>> --- EVIDENCE-OF: R-39616-20555 Both GLOB and LIKE may be preceded = by the >>>> +-- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by the >>>> -- NOT keyword to invert the sense of the test. >>>> -- >>>> test:do_execsql_test( >>>> + "e_expr-17.2.0", >>>> + [[ >>>> + SELECT 'abcxyz' NOT LIKE 'ABC%' >>>> + ]], { >>>> + -- >>>> + 1 >>>> + -- >>>> + }) >>>> + >>>> +test:do_execsql_test( >>>> "e_expr-17.2.1", >>>> [[ >>>> - SELECT 'abcxyz' NOT GLOB 'ABC*' >>>> + SELECT 'abcxyz' NOT LIKE 'abc%' >>>> ]], { >>>> -- >>>> - 1 >>>> + 0 >>>> -- >>>> }) >>>> test:do_execsql_test( >>>> "e_expr-17.2.2", >>>> [[ >>>> - SELECT 'abcxyz' NOT GLOB 'abc*' >>>> + PRAGMA case_sensitive_like =3D 0 >>>> ]], { >>>> -- >>>> - 0 >>>> - -- >>>> + >>>> + -- >>>> }) >>>> test:do_execsql_test( >>>> @@ -2405,10 +2461,11 @@ test:do_execsql_test( >>>> -- MUST_WORK_TEST uses access to nullvalue... (sql parameters) and = built in functions >>>> if 0>0 then >>>> db("nullvalue", "null") >>> do not change tests which are not working. >>> There is a chance chat you do it wrong and you do not know about it. >> =20 >> Made it back. >>=20 >>>> diff --git a/test/sql-tap/like3.test.lua = b/test/sql-tap/like3.test.lua >>>> index 505d2fa..0bc71a0 100755 >>>> --- a/test/sql-tap/like3.test.lua >>>> +++ b/test/sql-tap/like3.test.lua >>>> @@ -12,13 +12,13 @@ test:plan(7) >>>> -- May you find forgiveness for yourself and forgive others. >>>> -- May you share freely, never taking more than you give. >>>> -- >>>> = --------------------------------------------------------------------------= >>>> +----------------------------------------------------------------- >>>> -- >>>> --- This file implements regression tests for SQLite library. The >>>> --- focus of this file is testing the LIKE and GLOB operators and >>>> --- in particular the optimizations that occur to help those = operators >>>> --- run faster and that those optimizations work correctly when = there >>>> --- are both strings and blobs being tested. >>>> +-- This file implements regression tests for SQLite library. The >>>> +-- focus of this file is testing the LIKE operator and >>>> +-- in particular the optimizations that occur to help this >>>> +-- operator run faster and that those optimizations work >>>> +-- correctly when there are both strings and blobs being tested. >>>> -- >>>> -- Ticket 05f43be8fdda9fbd948d374319b99b054140bc36 shows that the = following >>>> -- SQL was not working correctly: >>>> @@ -70,10 +70,11 @@ test:do_execsql_test( >>>> test:do_execsql_test( >>>> "like3-2.0", >>>> [[ >>>> + PRAGMA case_sensitive_like =3D 1; >>>> CREATE TABLE t2(a PRIMARY KEY, b TEXT); >>>> INSERT INTO t2 SELECT a, b FROM t1; >>>> CREATE INDEX t2ba ON t2(b,a); >>>> - SELECT a, b FROM t2 WHERE b GLOB 'ab*' ORDER BY +a; >>>> + SELECT a, b FROM t2 WHERE b LIKE 'ab%' ORDER BY +a; >>> Those tests were especially created for glob. Delete it instead of = renaming. >>=20 >> Done. >>=20 >> Diff with the prev version of the patch: >>=20 >> diff --git a/src/box/sql/func.c b/src/box/sql/func.c >> index 177193e94..28b435ae3 100644 >> --- a/src/box/sql/func.c >> +++ b/src/box/sql/func.c >> @@ -631,6 +631,12 @@ static const int case_insensitive_like =3D 1; >> */ >> static const int case_sensitive_like =3D 0; >> =20 >> +/** >> + * Wildcards. >> + */ >> +#define match_one '_' >> +#define match_all '%' >> + >> /** >> * Possible error returns from sql_utf8_pattern_compare(). >> */ >> @@ -672,15 +678,11 @@ static const int case_sensitive_like =3D 0; >> static int >> sql_utf8_pattern_compare(const char *pattern, >> const char *string, >> - const int *is_like_ci, >> + const int is_like_ci, >> UChar32 match_other) >> { >> /* Next pattern and input string chars */ >> UChar32 c, c2; >> - /* "_" */ >> - UChar32 match_one =3D '_'; >> - /* "%" */ >> - UChar32 match_all =3D '%'; >> /* One past the last escaped input char */ >> const char *zEscaped =3D 0; >> const char *pattern_end =3D pattern + strlen(pattern); >> @@ -741,7 +743,7 @@ sql_utf8_pattern_compare(const char *pattern, >> */ >> =20 >> int bMatch; >> - if (*is_like_ci) >> + if (is_like_ci) >> c =3D u_tolower(c); >> while (string < string_end){ >> /** >> @@ -757,7 +759,7 @@ sql_utf8_pattern_compare(const char *pattern, >> c2 =3D Utf8Read(string, string_end); >> if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL) >> return SQL_NOMATCH; >> - if (!(*is_like_ci)) { >> + if (!is_like_ci) { >> if (c2 !=3D c) >> continue; >> } else { >> @@ -786,7 +788,7 @@ sql_utf8_pattern_compare(const char *pattern, >> return SQL_NOMATCH; >> if (c =3D=3D c2) >> continue; >> - if (*is_like_ci) { >> + if (is_like_ci) { >> /** >> * Small optimisation. Reduce number of >> * calls to u_tolower function. SQL >> @@ -814,7 +816,7 @@ sql_utf8_pattern_compare(const char *pattern, >> int >> sql_strlike_cs(const char *zPattern, const char *zStr, unsigned int = esc) >> { >> - return sql_utf8_pattern_compare(zPattern, zStr, = &case_sensitive_like, esc); >> + return sql_utf8_pattern_compare(zPattern, zStr, = case_sensitive_like, esc); >> } >> =20 >> /** >> @@ -824,7 +826,7 @@ sql_strlike_cs(const char *zPattern, const char = *zStr, unsigned int esc) >> int >> sql_strlike_ci(const char *zPattern, const char *zStr, unsigned int = esc) >> { >> - return sql_utf8_pattern_compare(zPattern, zStr, = &case_insensitive_like, esc); >> + return sql_utf8_pattern_compare(zPattern, zStr, = case_insensitive_like, esc); >> } >> =20 >> /** >> @@ -907,7 +909,7 @@ likeFunc(sqlite3_context *context, int argc, = sqlite3_value **argv) >> sqlite3_like_count++; >> #endif >> int res; >> - res =3D sql_utf8_pattern_compare(zB, zA, is_like_ci, escape); >> + res =3D sql_utf8_pattern_compare(zB, zA, *is_like_ci, escape); >> if (res =3D=3D SQL_INVALID_PATTERN) { >> sqlite3_result_error(context, "LIKE pattern can only = contain" >> " UTF-8 characters", -1); >> diff --git a/src/box/sql/whereexpr.c b/src/box/sql/whereexpr.c >> index 947bd5d94..2d9fb6453 100644 >> --- a/src/box/sql/whereexpr.c >> +++ b/src/box/sql/whereexpr.c >> @@ -218,6 +218,12 @@ operatorMask(int op) >> return c; >> } >> =20 >> +/** >> + * Wildcard characters. >> + */ >> +#define match_one '_' >> +#define match_all '%' >> + >> #ifndef SQLITE_OMIT_LIKE_OPTIMIZATION >> /** >> * Check to see if the given expression is a LIKE operator that >> @@ -258,9 +264,6 @@ is_like(Parse *pParse, >> int c; >> /* Number of non-wildcard prefix characters */ >> int cnt; >> - /* Wildcard characters */ >> - char match_all =3D '%'; >> - char match_one =3D '_'; >> /* Database connection */ >> sqlite3 *db =3D pParse->db; >> sqlite3_value *pVal =3D 0; >> diff --git a/test/sql-tap/alter.test.lua = b/test/sql-tap/alter.test.lua >> index 773bdebdb..98338c493 100755 >> --- a/test/sql-tap/alter.test.lua >> +++ b/test/sql-tap/alter.test.lua >> @@ -230,10 +230,9 @@ test:do_execsql_test( >> test:do_execsql_test( >> "alter-5.1", >> [[ >> - PRAGMA case_sensitive_like =3D true; >> CREATE TABLE xyz(x PRIMARY KEY); >> ALTER TABLE xyz RENAME TO "xyz1234abc"; >> - SELECT "name" FROM "_space" WHERE "name" LIKE 'xyz%'; >> + SELECT "name" FROM "_space" WHERE "name" =3D 'xyz1234abc'; >> ]], { >> -- >> "xyz1234abc" >> @@ -244,8 +243,7 @@ test:do_execsql_test( >> "alter-5.2", >> [[ >> ALTER TABLE "xyz1234abc" RENAME TO xyzabc; >> - SELECT "name" FROM "_space" WHERE "name" LIKE 'XYZ%'; >> - PRAGMA case_sensitive_like =3D false; >> + SELECT "name" FROM "_space" WHERE "name" =3D 'XYZABC'; >> ]], { >> -- >> "XYZABC" >> diff --git a/test/sql-tap/e_expr.test.lua = b/test/sql-tap/e_expr.test.lua >> index 162026845..0d69e8535 100755 >> --- a/test/sql-tap/e_expr.test.lua >> +++ b/test/sql-tap/e_expr.test.lua >> @@ -1,6 +1,6 @@ >> #!/usr/bin/env tarantool >> test =3D require("sqltester") >> -test:plan(11521) >> +test:plan(10647) >> =20 >> --!./tcltestrunner.lua >> -- 2010 July 16 >> @@ -77,7 +77,7 @@ local operations =3D { >> {"<>", "ne1"}, >> {"!=3D", "ne2"}, >> {"IS", "is"}, >> - {"LIKE", "like"}, >> +-- {"LIKE", "like"}, >> {"AND", "and"}, >> {"OR", "or"}, >> {"MATCH", "match"}, >> @@ -96,8 +96,9 @@ operations =3D { >> {"<<", ">>", "&", "|"}, >> {"<", "<=3D", ">", ">=3D"}, >> -- Another NOTE: MATCH & REGEXP aren't supported in Tarantool & >> --- are waiting for their hour. >> - {"=3D", "=3D=3D", "!=3D", "<>", "LIKE"}, --"MATCH", "REGEXP"}, >> +-- are waiting for their hour, don't confuse them >> +-- being commented with commenting of "LIKE". >> + {"=3D", "=3D=3D", "!=3D", "<>"}, --"LIKE"}, --"MATCH", = "REGEXP"}, > Delete Like. No one returns here. It=E2=80=99s a table of all of the operators thus I think it still worth = leaving it there. Who knows, it may be that someone will revive tests for LIKE. >> {"AND"}, >> {"OR"}, >> } >> @@ -461,67 +462,21 @@ literals =3D { >> for _, op in ipairs(oplist) do >> for n1, rhs in ipairs(literals) do >> for n2, lhs in ipairs(literals) do >> - if op ~=3D "LIKE" then >> - local t =3D test:execsql(string.format(" SELECT = typeof(%s %s %s) ", lhs, op, rhs))[1] >> - test:do_test( >> - string.format("e_expr-7.%s.%s.%s", opname[op], = n1, n2), >> - function() >> - return (((op =3D=3D "||") and ((t =3D=3D = "text") or >> - (t =3D=3D "null"))) or >> - ((op ~=3D "||") and (((t =3D=3D = "integer") or >> - (t =3D=3D "real")) or >> - (t =3D=3D "null")))) and 1 or 0 >> - end, 1) >> - end >> - end >> - end >> -end >> - >> -local valid_patterns =3D >> - {"'abc'", "'hexadecimal'", "''", 123, -123, 0, >> - 123.4, 0.0, -123.4, "X''", "X'0000'", "NULL"} >> - >> -local invalid_patterns =3D {"X'ABCDEF'"} >> - >> -for n1, rhs in ipairs(valid_patterns) do >> - for n2, lhs in ipairs(literals) do >> - local t =3D test:execsql(string.format(" SELECT typeof(%s = LIKE %s) ", lhs, rhs))[1] >> - test:do_test( >> - string.format("e_expr-7.%s.LIKE.%s", n1, n2), >> - function() >> - return (t =3D=3D "integer" or >> - t =3D=3D "real" or >> - t =3D=3D "null") and 1 or 0 >> - end, 1) >> - end >> -end >> + local t =3D test:execsql(string.format(" SELECT = typeof(%s %s %s) ", lhs, op, rhs))[1] >> + test:do_test( >> + string.format("e_expr-7.%s.%s.%s", opname[op], n1, = n2), >> + function() >> + --print("\n op "..op.." t "..t) >> + return (((op =3D=3D "||") and ((t =3D=3D "text") = or >> + (t =3D=3D "null"))) or >> + ((op ~=3D "||") and (((t =3D=3D = "integer") or >> + (t =3D=3D "real")) or >> + (t =3D=3D "null")))) and 1 or 0 >> + end, 1) >> =20 >> -for n1, rhs in ipairs(invalid_patterns) do >> - for n2, lhs in ipairs(literals) do >> - local t =3D string.format(" SELECT typeof(%s LIKE %s) ", = lhs, rhs) >> - local test_name =3D string.format("e_expr-7.%s.LIKE.%s", n1 = + 12, n2) >> - if n2 ~=3D 13 then >> - test:do_catchsql_test( >> - test_name, >> - t, >> - { >> - -- >> - 1, "LIKE pattern can only contain UTF-8 = characters" >> - -- >> - }) >> - else >> - test:do_catchsql_test( >> - test_name, >> - t, >> - { >> - -- >> - 0, {"null"} >> - -- >> - }) >> end >> end >> end >> - >> = --------------------------------------------------------------------------= - >> -- Test the IS and IS NOT operators. >> -- >> @@ -1343,15 +1298,12 @@ test:execsql [[ >> CREATE TABLE tblname(cname PRIMARY KEY); >> ]] >> =20 >> --- NOTE: GLOB is removed from Tarantool, thus it'll be needed to >> --- refactor these calls. They don't work right now since >> --- we don't support MATHC & REGEXP. >> --- local function glob(args) >> --- return 1 >> --- end >> +local function glob(args) >> + return 1 >> +end >> =20 >> --- box.internal.sql_create_function("MATCH", glob) >> --- box.internal.sql_create_function("REGEXP", glob) >> +box.internal.sql_create_function("MATCH", glob) >> +box.internal.sql_create_function("REGEXP", glob) >> local test_cases12 =3D{ >> {1, 123}, >> {2, 123.4e05}, >> @@ -2312,96 +2264,14 @@ test:do_execsql_test( >> -- >> }) >> =20 >> --- EVIDENCE-OF: R-52087-12043 LIKE doesn't use Unix file globbing >> --- syntax for its wildcards. >> --- >> -test:do_execsql_test( >> - "e_expr-17.1.0", >> - [[ >> - PRAGMA case_sensitive_like =3D 1 >> - ]], { >> - -- >> - >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.1", >> - [[ >> - SELECT 'abcxyz' LIKE 'abc*' >> - ]], { >> - -- >> - 0 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.2", >> - [[ >> - SELECT 'abcxyz' LIKE 'abc%' >> - ]], { >> - -- >> - 1 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.3", >> - [[ >> - SELECT 'abcxyz' LIKE 'abc???' >> - ]], { >> - -- >> - 0 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.4", >> - [[ >> - SELECT 'abcxyz' LIKE 'abc___' >> - ]], { >> - -- >> - 1 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.5", >> - [[ >> - SELECT 'abcxyz' LIKE 'abc%' >> - ]], { >> - -- >> - 1 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.6", >> - [[ >> - SELECT 'ABCxyz' LIKE 'abc%' >> - ]], { >> - -- >> - 0 >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "e_expr-17.1.7", >> - [[ >> - SELECT 'abcxyz' LIKE 'ABC%' >> - ]], { >> - -- >> - 0 >> - -- >> - }) >> - >> -- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by the >> -- NOT keyword to invert the sense of the test. >> -- >> test:do_execsql_test( >> "e_expr-17.2.0", >> [[ >> - SELECT 'abcxyz' NOT LIKE 'ABC%' >> + PRAGMA case_sensitive_like =3D 1; >> + SELECT 'abcxyz' NOT LIKE 'ABC%'; >> ]], { >> -- >> 1 >> @@ -2461,11 +2331,10 @@ test:do_execsql_test( >> -- MUST_WORK_TEST uses access to nullvalue... (sql parameters) and = built in functions >> if 0>0 then >> db("nullvalue", "null") >> - >> test:do_execsql_test( >> "e_expr-17.2.6", >> [[ >> - SELECT 'abcxyz' NOT LIKE NULL >> + SELECT 'abcxyz' NOT GLOB NULL >> ]], { >> -- >> "null" >> @@ -2475,13 +2344,33 @@ if 0>0 then >> test:do_execsql_test( >> "e_expr-17.2.7", >> [[ >> - SELECT NULL NOT LIKE 'ABC%' >> + SELECT 'abcxyz' NOT LIKE NULL >> ]], { >> -- >> "null" >> -- >> }) >> =20 >> + test:do_execsql_test( >> + "e_expr-17.2.8", >> + [[ >> + SELECT NULL NOT GLOB 'abc*' >> + ]], { >> + -- >> + "null" >> + -- >> + }) >> + >> + test:do_execsql_test( >> + "e_expr-17.2.9", >> + [[ >> + SELECT NULL NOT LIKE 'ABC%' >> + ]], { >> + -- >> + "null" >> + -- >> + }) >> + >> db("nullvalue", "") >> end >> =20 >> 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 55943345f..a6d822ccd 100755 >> --- a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua >> +++ b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua >> @@ -185,7 +185,7 @@ local valid_testcases =3D { >> =20 >> -- Valid testcases. >> for i, tested_string in ipairs(valid_testcases) do >> - test_name =3D prefix .. "8." .. tostring(i) >> + local test_name =3D prefix .. "8." .. tostring(i) >> local test_itself =3D "SELECT 'abc' LIKE 'ab" .. tested_string = .. "';" >> test:do_execsql_test(test_name, test_itself, {0}) >> =20 >> diff --git a/test/sql-tap/like3.test.lua = b/test/sql-tap/like3.test.lua >> index 0bc71a09c..8f4f79422 100755 >> --- a/test/sql-tap/like3.test.lua >> +++ b/test/sql-tap/like3.test.lua >> @@ -67,70 +67,6 @@ test:do_execsql_test( >> -- >> }) >> =20 >> -test:do_execsql_test( >> - "like3-2.0", >> - [[ >> - PRAGMA case_sensitive_like =3D 1; >> - CREATE TABLE t2(a PRIMARY KEY, b TEXT); >> - INSERT INTO t2 SELECT a, b FROM t1; >> - CREATE INDEX t2ba ON t2(b,a); >> - SELECT a, b FROM t2 WHERE b LIKE 'ab%' ORDER BY +a; >> - ]], { >> - -- >> - 1, "abc", 4, "abc" >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "like3-2.1", >> - [[ >> - SELECT a, b FROM t2 WHERE +b LIKE 'ab%' ORDER BY +a; >> - ]], { >> - -- >> - 1, "abc", 4, "abc" >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "like3-2.2", >> - [[ >> - SELECT a, b FROM t2 WHERE b>=3Dx'6162' AND b LIKE 'ab%' >> - ]], { >> - -- >> - 4, "abc" >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "like3-2.3", >> - [[ >> - SELECT a, b FROM t2 WHERE +b>=3Dx'6162' AND +b LIKE 'ab%' >> - ]], { >> - -- >> - 4, "abc" >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "like3-2.4", >> - [[ >> - SELECT a, b FROM t2 WHERE b LIKE 'ab%' AND b>=3Dx'6162' >> - ]], { >> - -- >> - 4, "abc" >> - -- >> - }) >> - >> -test:do_execsql_test( >> - "like3-2.5", >> - [[ >> - SELECT a, b FROM t2 WHERE +b LIKE 'ab%' AND +b>=3Dx'6162'; >> - PRAGMA case_sensitive_like =3D 0; >> - ]], { >> - -- >> - 4, "abc" >> - -- >> - }) >> test:execsql([[ >> CREATE TABLE t3(x TEXT PRIMARY KEY COLLATE "unicode_ci"); >> INSERT INTO t3(x) VALUES('aaa'),('abc'),('abd'),('abe'),('acz'); >>=20 >>=20 >> -- >> WBR, Nikita Tatunov. >> n.tatunov@tarantool.org >=20 diff --git a/extra/mkkeywordhash.c b/extra/mkkeywordhash.c index 990c4199f..1fee3a7f2 100644 --- a/extra/mkkeywordhash.c +++ b/extra/mkkeywordhash.c @@ -159,7 +159,6 @@ static Keyword aKeywordTable[] =3D { { "FOR", "TK_FOR", TRIGGER, true = }, { "FOREIGN", "TK_FOREIGN", FKEY, true = }, { "FROM", "TK_FROM", ALWAYS, true = }, - { "GLOB", "TK_LIKE_KW", ALWAYS, false = }, { "GROUP", "TK_GROUP", ALWAYS, true = }, { "HAVING", "TK_HAVING", ALWAYS, true = }, { "IF", "TK_IF", ALWAYS, true = }, diff --git a/src/box/sql/analyze.c b/src/box/sql/analyze.c index 5f73f026e..fc7588c3f 100644 --- a/src/box/sql/analyze.c +++ b/src/box/sql/analyze.c @@ -829,7 +829,7 @@ analyzeOneTable(Parse * pParse, /* Parser = context */ return; } assert(pTab->tnum !=3D 0); - if (sqlite3_strlike("\\_%", pTab->def->name, '\\') =3D=3D 0) { + if (sql_strlike_ci("\\_%", pTab->def->name, '\\') =3D=3D 0) { /* Do not gather statistics on system tables */ return; } @@ -1333,11 +1333,10 @@ analysis_loader(void *data, int argc, char = **argv, char **unused) /* Position ptr at the end of stat string. */ for (; *z =3D=3D ' ' || (*z >=3D '0' && *z <=3D '9'); ++z); while (z[0]) { - if (sqlite3_strglob("unordered*", z) =3D=3D 0) { + if (sql_strlike_cs("unordered%", z, '[') =3D=3D 0) index->def->opts.stat->is_unordered =3D true; - } else if (sqlite3_strglob("noskipscan*", z) =3D=3D 0) { + else if (sql_strlike_cs("noskipscan%", z, '[') =3D=3D 0) index->def->opts.stat->skip_scan_enabled =3D = false; - } while (z[0] !=3D 0 && z[0] !=3D ' ') z++; while (z[0] =3D=3D ' ') diff --git a/src/box/sql/func.c b/src/box/sql/func.c index 66cae17b5..28b435ae3 100644 --- a/src/box/sql/func.c +++ b/src/box/sql/func.c @@ -607,41 +607,38 @@ total_changes(sqlite3_context * context, int = NotUsed, sqlite3_value ** NotUsed2) sqlite3_result_int(context, sqlite3_total_changes(db)); } =20 -/* - * A structure defining how to do GLOB-style comparisons. - */ -struct compareInfo { - u8 matchAll; /* "*" or "%" */ - u8 matchOne; /* "?" or "_" */ - u8 matchSet; /* "[" or 0 */ - u8 noCase; /* true to ignore case differences */ -}; - /** - * Providing there are symbols in string s this - * macro returns UTF-8 code of character and - * promotes pointer to the next symbol in the string. - * Otherwise return code is SQL_END_OF_STRING. + * Providing there are symbols in string s this macro returns + * UTF-8 code of character and promotes pointer to the next + * symbol in the string. If s points to an invalid UTF-8 symbol + * return code is SQL_INVALID_UTF8_SYMBOL. If there're no symbols + * left in string s return code is SQL_END_OF_STRING. */ #define Utf8Read(s, e) ucnv_getNextUChar(pUtf8conv, &(s), (e), = &(status)) =20 #define SQL_END_OF_STRING 0xffff #define SQL_INVALID_UTF8_SYMBOL 0xfffd =20 -static const struct compareInfo globInfo =3D { '*', '?', '[', 0 }; +/** + * If SQLITE_CASE_SENSITIVE_LIKE is not defined, then the LIKE + * operator is not case sensitive. + */ +static const int case_insensitive_like =3D 1; =20 -/* The correct SQL-92 behavior is for the LIKE operator to ignore - * case. Thus 'a' LIKE 'A' would be true. +/** + * If SQLITE_CASE_SENSITIVE_LIKE is defined, then the LIKE + * operator is case sensitive causing 'a' LIKE 'A' to be false. */ -static const struct compareInfo likeInfoNorm =3D { '%', '_', 0, 1 }; +static const int case_sensitive_like =3D 0; =20 -/* If SQLITE_CASE_SENSITIVE_LIKE is defined, then the LIKE operator - * is case sensitive causing 'a' LIKE 'A' to be false +/** + * Wildcards. */ -static const struct compareInfo likeInfoAlt =3D { '%', '_', 0, 0 }; +#define match_one '_' +#define match_all '%' =20 -/* - * Possible error returns from sql_utf8_pattern_compare() +/** + * Possible error returns from sql_utf8_pattern_compare(). */ #define SQL_MATCH 0 #define SQL_NOMATCH 1 @@ -650,138 +647,91 @@ static const struct compareInfo likeInfoAlt =3D { = '%', '_', 0, 0 }; =20 /** * Compare two UTF-8 strings for equality where the first string - * is a GLOB or LIKE expression. - * - * Globbing rules: - * - * '*' Matches any sequence of zero or more characters. - * - * '?' Matches exactly one character. - * - * [...] Matches one character from the enclosed list of - * characters. - * - * [^...] Matches one character not in the enclosed list. - * - * With the [...] and [^...] matching, a ']' character can be - * included in the list by making it the first character after - * '[' or '^'. A range of characters can be specified using '-'. - * Example: "[a-z]" matches any single lower-case letter. - * To match a '-', make it the last character in the list. + * is a LIKE expression. * * Like matching rules: * - * '%' Matches any sequence of zero or more characters. + * '%' Matches any sequence of zero or more + * characters. * * '_' Matches any one character. * - * Ec Where E is the "esc" character and c is any other - * character, including '%', '_', and esc, match - * exactly c. - * - * The comments within this routine usually assume glob matching. + * Ec Where E is the "esc" character and c is any + * other character, including '%', '_', and esc, + * match exactly c. * * This routine is usually quick, but can be N**2 in the worst * case. * * @param pattern String containing comparison pattern. * @param string String being compared. - * @param compareInfo Information about how to compare. - * @param matchOther The escape char (LIKE) or '[' (GLOB). + * @param is_like_ci true if LIKE is case insensitive. + * @param match_other The escape char for LIKE. * * @retval SQL_MATCH: Match. * SQL_NOMATCH: No match. - * SQL_NOWILDCARDMATCH: No match in spite of having * - * or % wildcards. + * SQL_NOWILDCARDMATCH: No match in spite of having % + * wildcard. * SQL_INVALID_PATTERN: Pattern contains invalid * symbol. */ static int sql_utf8_pattern_compare(const char *pattern, const char *string, - const struct compareInfo *pInfo, - UChar32 matchOther) + const int is_like_ci, + UChar32 match_other) { /* Next pattern and input string chars */ UChar32 c, c2; - /* "?" or "_" */ - UChar32 matchOne =3D pInfo->matchOne; - /* "*" or "%" */ - UChar32 matchAll =3D pInfo->matchAll; - /* True if uppercase=3D=3Dlowercase */ - UChar32 noCase =3D pInfo->noCase; /* One past the last escaped input char */ const char *zEscaped =3D 0; - const char * pattern_end =3D pattern + strlen(pattern); - const char * string_end =3D string + strlen(string); + const char *pattern_end =3D pattern + strlen(pattern); + const char *string_end =3D string + strlen(string); UErrorCode status =3D U_ZERO_ERROR; =20 while (pattern < pattern_end) { c =3D Utf8Read(pattern, pattern_end); if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) return SQL_INVALID_PATTERN; - if (c =3D=3D matchAll) { /* Match "*" */ - /* Skip over multiple "*" characters in - * the pattern. If there are also "?" + if (c =3D=3D match_all) { + /** + * Skip over multiple "%" characters in + * the pattern. If there are also "_" * characters, skip those as well, but * consume a single character of the - * input string for each "?" skipped. + * input string for each "_" skipped. */ while ((c =3D Utf8Read(pattern, pattern_end)) !=3D= SQL_END_OF_STRING) { if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) return SQL_INVALID_PATTERN; - if (c !=3D matchAll && c !=3D matchOne) + if (c !=3D match_all && c !=3D = match_one) break; - if (c =3D=3D matchOne && + if (c =3D=3D match_one && (c2 =3D Utf8Read(string, = string_end)) =3D=3D SQL_END_OF_STRING) return SQL_NOWILDCARDMATCH; if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL) return SQL_NOMATCH; } - /* - * "*" at the end of the pattern matches. + /** + * "%" at the end of the pattern matches. */ if (c =3D=3D SQL_END_OF_STRING) { return SQL_MATCH; } - if (c =3D=3D matchOther) { - if (pInfo->matchSet =3D=3D 0) { - c =3D Utf8Read(pattern, = pattern_end); - if (c =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_INVALID_PATTERN; - if (c =3D=3D SQL_END_OF_STRING) - return = SQL_NOWILDCARDMATCH; - } else { - /* "[...]" immediately - * follows the "*". We - * have to do a slow - * recursive search in - * this case, but it is - * an unusual case. - */ - assert(matchOther < 0x80); - while (string < string_end) { - int bMatch =3D - = sql_utf8_pattern_compare( - = &pattern[-1], - string, - pInfo, - = matchOther); - if (bMatch !=3D = SQL_NOMATCH) - return bMatch; - c =3D Utf8Read(string, = string_end); - if (c =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_NOMATCH; - } + if (c =3D=3D match_other) { + c =3D Utf8Read(pattern, pattern_end); + if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) + return SQL_INVALID_PATTERN; + if (c =3D=3D SQL_END_OF_STRING) return SQL_NOWILDCARDMATCH; - } } =20 - /* At this point variable c contains the + /** + * At this point variable c contains the * first character of the pattern string - * past the "*". Search in the input + * past the "%". Search in the input * string for the first matching * character and recursively continue the * match from that point. @@ -793,7 +743,7 @@ sql_utf8_pattern_compare(const char *pattern, */ =20 int bMatch; - if (noCase) + if (is_like_ci) c =3D u_tolower(c); while (string < string_end){ /** @@ -809,7 +759,7 @@ sql_utf8_pattern_compare(const char *pattern, c2 =3D Utf8Read(string, string_end); if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL) return SQL_NOMATCH; - if (!noCase) { + if (!is_like_ci) { if (c2 !=3D c) continue; } else { @@ -818,79 +768,27 @@ sql_utf8_pattern_compare(const char *pattern, } bMatch =3D = sql_utf8_pattern_compare(pattern, = string, - pInfo, - = matchOther); + = is_like_ci, + = match_other); if (bMatch !=3D SQL_NOMATCH) return bMatch; } return SQL_NOWILDCARDMATCH; } - if (c =3D=3D matchOther) { - if (pInfo->matchSet =3D=3D 0) { - c =3D Utf8Read(pattern, pattern_end); - if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) - return SQL_INVALID_PATTERN; - if (c =3D=3D SQL_END_OF_STRING) - return SQL_NOMATCH; - zEscaped =3D pattern; - } else { - UChar32 prior_c =3D 0; - int seen =3D 0; - int invert =3D 0; - c =3D Utf8Read(string, string_end); - if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) - return SQL_NOMATCH; - if (string =3D=3D string_end) - return SQL_NOMATCH; - c2 =3D Utf8Read(pattern, pattern_end); - if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL) - return SQL_INVALID_PATTERN; - if (c2 =3D=3D '^') { - invert =3D 1; - c2 =3D Utf8Read(pattern, = pattern_end); - if (c2 =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_INVALID_PATTERN; - } - if (c2 =3D=3D ']') { - if (c =3D=3D ']') - seen =3D 1; - c2 =3D Utf8Read(pattern, = pattern_end); - if (c2 =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_INVALID_PATTERN; - } - while (c2 !=3D SQL_END_OF_STRING && c2 = !=3D ']') { - if (c2 =3D=3D '-' && pattern[0] = !=3D ']' - && pattern < pattern_end - && prior_c > 0) { - c2 =3D Utf8Read(pattern, = pattern_end); - if (c2 =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_INVALID_PATTERN; - if (c >=3D prior_c && c = <=3D c2) - seen =3D 1; - prior_c =3D 0; - } else { - if (c =3D=3D c2) { - seen =3D 1; - } - prior_c =3D c2; - } - c2 =3D Utf8Read(pattern, = pattern_end); - if (c2 =3D=3D = SQL_INVALID_UTF8_SYMBOL) - return = SQL_INVALID_PATTERN; - } - if (pattern =3D=3D pattern_end || - (seen ^ invert) =3D=3D 0) { - return SQL_NOMATCH; - } - continue; - } + if (c =3D=3D match_other) { + c =3D Utf8Read(pattern, pattern_end); + if (c =3D=3D SQL_INVALID_UTF8_SYMBOL) + return SQL_INVALID_PATTERN; + if (c =3D=3D SQL_END_OF_STRING) + return SQL_NOMATCH; + zEscaped =3D pattern; } c2 =3D Utf8Read(string, string_end); if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL) return SQL_NOMATCH; if (c =3D=3D c2) continue; - if (noCase){ + if (is_like_ci) { /** * Small optimisation. Reduce number of * calls to u_tolower function. SQL @@ -903,7 +801,7 @@ sql_utf8_pattern_compare(const char *pattern, c =3D=3D u_tolower(c2)) continue; } - if (c =3D=3D matchOne && pattern !=3D zEscaped && + if (c =3D=3D match_one && pattern !=3D zEscaped && c2 !=3D SQL_END_OF_STRING) continue; return SQL_NOMATCH; @@ -911,55 +809,52 @@ sql_utf8_pattern_compare(const char *pattern, return string =3D=3D string_end ? SQL_MATCH : SQL_NOMATCH; } =20 -/* - * The sqlite3_strglob() interface. Return 0 on a match (like = strcmp()) and - * non-zero if there is no match. +/** + * Compare two UTF-8 strings for equality using case sensitive + * sql_utf8_pattern_compare. */ int -sqlite3_strglob(const char *zGlobPattern, const char *zString) +sql_strlike_cs(const char *zPattern, const char *zStr, unsigned int = esc) { - return sql_utf8_pattern_compare(zGlobPattern, zString, = &globInfo, '['); + return sql_utf8_pattern_compare(zPattern, zStr, = case_sensitive_like, esc); } =20 -/* - * The sqlite3_strlike() interface. Return 0 on a match and non-zero = for - * a miss - like strcmp(). +/** + * Compare two UTF-8 strings for equality using case insensitive + * sql_utf8_pattern_compare. */ int -sqlite3_strlike(const char *zPattern, const char *zStr, unsigned int = esc) +sql_strlike_ci(const char *zPattern, const char *zStr, unsigned int = esc) { - return sql_utf8_pattern_compare(zPattern, zStr, &likeInfoNorm, = esc); + return sql_utf8_pattern_compare(zPattern, zStr, = case_insensitive_like, esc); } =20 -/* - * Count the number of times that the LIKE operator (or GLOB which is - * just a variation of LIKE) gets called. This is used for testing - * only. +/** + * Count the number of times that the LIKE operator gets called. + * This is used for testing only. */ #ifdef SQLITE_TEST int sqlite3_like_count =3D 0; #endif =20 -/* - * Implementation of the like() SQL function. This function implements - * the build-in LIKE operator. The first argument to the function is = the - * pattern and the second argument is the string. So, the SQL = statements: +/** + * Implementation of the like() SQL function. This function + * implements the built-in LIKE operator. The first argument to + * the function is the pattern and the second argument is the + * string. So, the SQL statements of the following type: * * A LIKE B * - * is implemented as like(B,A). - * - * This same function (with a different compareInfo structure) computes - * the GLOB operator. + * are implemented as like(B,A). */ static void -likeFunc(sqlite3_context * context, int argc, sqlite3_value ** argv) +likeFunc(sqlite3_context *context, int argc, sqlite3_value **argv) { const char *zA, *zB; u32 escape; int nPat; sqlite3 *db =3D sqlite3_context_db_handle(context); - struct compareInfo *pInfo =3D sqlite3_user_data(context); + int *is_like_ci =3D sqlite3_user_data(context); =20 #ifdef SQLITE_LIKE_DOESNT_MATCH_BLOBS if (sqlite3_value_type(argv[0]) =3D=3D SQLITE_BLOB @@ -974,8 +869,9 @@ likeFunc(sqlite3_context * context, int argc, = sqlite3_value ** argv) zB =3D (const char *) sqlite3_value_text(argv[0]); zA =3D (const char *) sqlite3_value_text(argv[1]); =20 - /* Limit the length of the LIKE or GLOB pattern to avoid - * problems of deep recursion and N*N behavior in + /** + * Limit the length of the LIKE pattern to avoid problems + * of deep recursion and N*N behavior in * sql_utf8_pattern_compare(). */ nPat =3D sqlite3_value_bytes(argv[0]); @@ -983,28 +879,29 @@ likeFunc(sqlite3_context * context, int argc, = sqlite3_value ** argv) testcase(nPat =3D=3D = db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] + 1); if (nPat > db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]) { sqlite3_result_error(context, - "LIKE or GLOB pattern too complex", = -1); + "LIKE pattern is too complex", -1); return; } /* Encoding did not change */ assert(zB =3D=3D (const char *) sqlite3_value_text(argv[0])); =20 if (argc =3D=3D 3) { - /* The escape character string must consist of a single = UTF-8 character. - * Otherwise, return an error. + /** + * The escape character string must consist of a + * single UTF-8 character. Otherwise, return an + * error. */ const unsigned char *zEsc =3D = sqlite3_value_text(argv[2]); if (zEsc =3D=3D 0) return; if (sqlite3Utf8CharLen((char *)zEsc, -1) !=3D 1) { sqlite3_result_error(context, - "ESCAPE expression must be = a single character", + "ESCAPE expression must be = a" + " single character", -1); return; } escape =3D sqlite3Utf8Read(&zEsc); - } else { - escape =3D pInfo->matchSet; } if (!zA || !zB) return; @@ -1012,10 +909,10 @@ likeFunc(sqlite3_context * context, int argc, = sqlite3_value ** argv) sqlite3_like_count++; #endif int res; - res =3D sql_utf8_pattern_compare(zB, zA, pInfo, escape); + res =3D sql_utf8_pattern_compare(zB, zA, *is_like_ci, escape); if (res =3D=3D SQL_INVALID_PATTERN) { - sqlite3_result_error(context, "LIKE or GLOB pattern can = only" - " contain UTF-8 characters", -1); + sqlite3_result_error(context, "LIKE pattern can only = contain" + " UTF-8 characters", -1); return; } sqlite3_result_int(context, res =3D=3D SQL_MATCH); @@ -1811,64 +1708,54 @@ setLikeOptFlag(sqlite3 * db, const char *zName, = u8 flagVal) } } =20 -/* - * Register the built-in LIKE and GLOB functions. The caseSensitive - * parameter determines whether or not the LIKE operator is case - * sensitive. GLOB is always case sensitive. +/** + * Register the built-in LIKE function. + * + * @param db database structure. + * @param is_case_sensitive whether like should be case sensitive + * or not. + * + * @retval none. */ void -sqlite3RegisterLikeFunctions(sqlite3 * db, int caseSensitive) +sqlite3RegisterLikeFunctions(sqlite3 *db, int is_case_sensitive) { - struct compareInfo *pInfo; - if (caseSensitive) { - pInfo =3D (struct compareInfo *)&likeInfoAlt; - } else { - pInfo =3D (struct compareInfo *)&likeInfoNorm; - } - sqlite3CreateFunc(db, "LIKE", 2, 0, pInfo, likeFunc, 0, 0, 0); - sqlite3CreateFunc(db, "LIKE", 3, 0, pInfo, likeFunc, 0, 0, 0); - sqlite3CreateFunc(db, "GLOB", 2, 0, (struct compareInfo = *)&globInfo, likeFunc, 0, 0, 0); - setLikeOptFlag(db, "GLOB", SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE); + int *is_like_ci; + if (is_case_sensitive) + is_like_ci =3D (int *)&case_sensitive_like; + else + is_like_ci =3D (int *)&case_insensitive_like; + sqlite3CreateFunc(db, "LIKE", 2, 0, is_like_ci, likeFunc, 0, 0, = 0); + sqlite3CreateFunc(db, "LIKE", 3, 0, is_like_ci, likeFunc, 0, 0, = 0); setLikeOptFlag(db, "LIKE", - caseSensitive ? (SQLITE_FUNC_LIKE | = SQLITE_FUNC_CASE) : - SQLITE_FUNC_LIKE); + is_case_sensitive ? (SQLITE_FUNC_LIKE | + SQLITE_FUNC_CASE) : SQLITE_FUNC_LIKE); } =20 -/* - * pExpr points to an expression which implements a function. If - * it is appropriate to apply the LIKE optimization to that function - * then set aWc[0] through aWc[2] to the wildcard characters and - * return TRUE. If the function is not a LIKE-style function then - * return FALSE. +/** + * Check if the function implements LIKE-style comparison & if it + * is appropriate to apply a LIKE query optimization. + * + * @param db database structure. + * @param pExpr pointer to a function-implementing expression. + * @param is_like_ci true if LIKE is case insensitive. * - * *pIsNocase is set to true if uppercase and lowercase are equivalent = for - * the function (default for LIKE). If the function makes the = distinction - * between uppercase and lowercase (as does GLOB) then *pIsNocase is = set to - * false. + * @retval 0 if it's appropriate to apply optimization. + * 1 if it's not. */ int -sqlite3IsLikeFunction(sqlite3 * db, Expr * pExpr, int *pIsNocase, char = *aWc) +sql_is_like_func(sqlite3 *db, Expr *pExpr, int *is_like_ci) { FuncDef *pDef; - if (pExpr->op !=3D TK_FUNCTION - || !pExpr->x.pList || pExpr->x.pList->nExpr !=3D 2) { + if (pExpr->op !=3D TK_FUNCTION || !pExpr->x.pList || + pExpr->x.pList->nExpr !=3D 2) return 0; - } assert(!ExprHasProperty(pExpr, EP_xIsSelect)); pDef =3D sqlite3FindFunction(db, pExpr->u.zToken, 2, 0); if (NEVER(pDef =3D=3D 0) || (pDef->funcFlags & SQLITE_FUNC_LIKE) = =3D=3D 0) { return 0; } - - /* The memcpy() statement assumes that the wildcard characters = are - * the first three statements in the compareInfo structure. The - * asserts() that follow verify that assumption - */ - memcpy(aWc, pDef->pUserData, 3); - assert((char *)&likeInfoAlt =3D=3D (char = *)&likeInfoAlt.matchAll); - assert(&((char *)&likeInfoAlt)[1] =3D=3D (char = *)&likeInfoAlt.matchOne); - assert(&((char *)&likeInfoAlt)[2] =3D=3D (char = *)&likeInfoAlt.matchSet); - *pIsNocase =3D (pDef->funcFlags & SQLITE_FUNC_CASE) =3D=3D 0; + *is_like_ci =3D (pDef->funcFlags & SQLITE_FUNC_CASE) =3D=3D 0; return 1; } =20 @@ -1962,16 +1849,14 @@ sqlite3RegisterBuiltinFunctions(void) AGGREGATE(group_concat, 2, 0, 0, groupConcatStep, groupConcatFinalize), =20 - LIKEFUNC(glob, 2, &globInfo, - SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), #ifdef SQLITE_CASE_SENSITIVE_LIKE - LIKEFUNC(like, 2, &likeInfoAlt, + LIKEFUNC(like, 2, &case_sensitive_like, SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), - LIKEFUNC(like, 3, &likeInfoAlt, + LIKEFUNC(like, 3, &case_sensitive_like, SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), #else - LIKEFUNC(like, 2, &likeInfoNorm, SQLITE_FUNC_LIKE), - LIKEFUNC(like, 3, &likeInfoNorm, SQLITE_FUNC_LIKE), + LIKEFUNC(like, 2, &case_insensitive_like, = SQLITE_FUNC_LIKE), + LIKEFUNC(like, 3, &case_insensitive_like, = SQLITE_FUNC_LIKE), #endif #ifdef SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION FUNCTION(unknown, -1, 0, 0, unknownFunc), diff --git a/src/box/sql/pragma.c b/src/box/sql/pragma.c index 5fb29c75c..26a602b23 100644 --- a/src/box/sql/pragma.c +++ b/src/box/sql/pragma.c @@ -771,8 +771,10 @@ sqlite3Pragma(Parse * pParse, Token * pId, /* First = part of [schema.]id field */ } #endif =20 - /* Reinstall the LIKE and GLOB functions. The variant = of LIKE * - * used will be case sensitive or not depending on the = RHS. + /** + * Reinstall the LIKE and functions. The variant + * of LIKE * used will be case sensitive or not + * depending on the RHS. */ case PragTyp_CASE_SENSITIVE_LIKE:{ if (zRight) { diff --git a/src/box/sql/sqliteInt.h b/src/box/sql/sqliteInt.h index e7a02dc1d..a805adf22 100644 --- a/src/box/sql/sqliteInt.h +++ b/src/box/sql/sqliteInt.h @@ -565,16 +565,15 @@ char * sqlite3_vsnprintf(int, char *, const char *, va_list); =20 int -sqlite3_strlike(const char *zGlob, const char *zStr, - unsigned int cEsc); +sql_strlike_cs(const char *zLike, const char *zStr, unsigned int cEsc); + +int +sql_strlike_ci(const char *zLike, const char *zStr, unsigned int cEsc); =20 typedef void (*sqlite3_destructor_type) (void *); #define SQLITE_STATIC ((sqlite3_destructor_type)0) #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) =20 -int -sqlite3_strglob(const char *zGlob, const char *zStr); - int sqlite3_prepare(sqlite3 * db, /* Database handle */ const char *zSql, /* SQL statement, UTF-8 encoded = */ @@ -701,9 +700,6 @@ struct on_conflict { enum on_conflict_action optimized_action; }; =20 -void * -sqlite3_user_data(sqlite3_context *); - void sqlite3_randomness(int N, void *P); =20 @@ -2355,7 +2351,7 @@ struct Expr { #define EP_Distinct 0x000010 /* Aggregate function with DISTINCT = keyword */ #define EP_VarSelect 0x000020 /* pSelect is correlated, not constant = */ #define EP_DblQuoted 0x000040 /* token.z was originally in "..." */ -#define EP_InfixFunc 0x000080 /* True for an infix function: LIKE, = GLOB, etc */ +#define EP_InfixFunc 0x000080 /* True for an infix function: LIKE, etc = */ #define EP_Collate 0x000100 /* Tree contains a TK_COLLATE operator = */ #define EP_Generic 0x000200 /* Ignore COLLATE or affinity on this = tree */ #define EP_IntValue 0x000400 /* Integer value contained in u.iValue = */ @@ -4378,7 +4374,7 @@ index_column_count(const Index *); bool index_is_unique_not_null(const Index *); void sqlite3RegisterLikeFunctions(sqlite3 *, int); -int sqlite3IsLikeFunction(sqlite3 *, Expr *, int *, char *); +int sql_is_like_func(sqlite3 *db, Expr *pExpr, int = *is_case_insensitive); void sqlite3SchemaClear(sqlite3 *); Schema *sqlite3SchemaCreate(sqlite3 *); int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *, diff --git a/src/box/sql/sqliteLimit.h b/src/box/sql/sqliteLimit.h index b88c9c6d3..e76353aff 100644 --- a/src/box/sql/sqliteLimit.h +++ b/src/box/sql/sqliteLimit.h @@ -164,8 +164,7 @@ enum { #endif =20 /* - * Maximum length (in bytes) of the pattern in a LIKE or GLOB - * operator. + * Maximum length (in bytes) of the pattern in a LIKE operator. */ #ifndef SQLITE_MAX_LIKE_PATTERN_LENGTH #define SQLITE_MAX_LIKE_PATTERN_LENGTH 50000 diff --git a/src/box/sql/vdbe.c b/src/box/sql/vdbe.c index 0c978142d..3f10f4d68 100644 --- a/src/box/sql/vdbe.c +++ b/src/box/sql/vdbe.c @@ -5521,7 +5521,7 @@ vdbe_return: testcase( nVmStep>0); p->aCounter[SQLITE_STMTSTATUS_VM_STEP] +=3D (int)nVmStep; assert(rc!=3DSQLITE_OK || nExtraDelete=3D=3D0 - || sqlite3_strlike("DELETE%",p->zSql,0)!=3D0 + || sql_strlike_ci("DELETE%", p->zSql, 0) !=3D 0 ); return rc; =20 diff --git a/src/box/sql/wherecode.c b/src/box/sql/wherecode.c index c35c25ac4..f864ea7fa 100644 --- a/src/box/sql/wherecode.c +++ b/src/box/sql/wherecode.c @@ -339,7 +339,7 @@ sqlite3WhereAddScanStatus(Vdbe * v, /* Vdbe = to add scanstatus entry to */ * automatically disabled. In this way, terms get disabled if derived * virtual terms are tested first. For example: * - * x GLOB 'abc*' AND x>=3D'abc' AND x<'acd' + * x LIKE 'abc%' AND x>=3D'abc' AND x<'acd' * \___________/ \______/ \_____/ * parent child1 child2 * diff --git a/src/box/sql/whereexpr.c b/src/box/sql/whereexpr.c index 612868695..2d9fb6453 100644 --- a/src/box/sql/whereexpr.c +++ b/src/box/sql/whereexpr.c @@ -218,38 +218,61 @@ operatorMask(int op) return c; } =20 +/** + * Wildcard characters. + */ +#define match_one '_' +#define match_all '%' + #ifndef SQLITE_OMIT_LIKE_OPTIMIZATION -/* - * Check to see if the given expression is a LIKE or GLOB operator that - * can be optimized using inequality constraints. Return TRUE if it is - * so and false if not. +/** + * Check to see if the given expression is a LIKE operator that + * can be optimized using inequality constraints. * - * In order for the operator to be optimizible, the RHS must be a = string - * literal that does not begin with a wildcard. The LHS must be a = column - * that may only be NULL, a string, or a BLOB, never a number. The - * collating sequence for the column on the LHS must be appropriate for - * the operator. + * In order for the operator to be optimizible, the RHS must be a + * string literal that does not begin with a wildcard. The LHS + * must be a column that may only be NULL, a string, or a BLOB, + * never a number. The collating sequence for the column on the + * LHS must be appropriate for the operator. + * + * @param pParse Parsing and code generating context. + * @param pExpr Test this expression. + * @param ppPrefix Pointer to TK_STRING expression with + * pattern prefix. + * @param pisComplete True if the only wildcard is '%' in the + * last character. + * @param pnoCase True if case insensitive. + * + * @retval True if the given expr is a LIKE operator & is + * optimizable using inequality constraints. + * False if not. */ static int -isLikeOrGlob(Parse * pParse, /* Parsing and code generating context = */ - Expr * pExpr, /* Test this expression */ - Expr ** ppPrefix, /* Pointer to TK_STRING expression with = pattern prefix */ - int *pisComplete, /* True if the only wildcard is % in the = last character */ - int *pnoCase /* True if uppercase is equivalent to = lowercase */ - ) +is_like(Parse *pParse, + Expr *pExpr, + Expr **ppPrefix, + int *pisComplete, + int *pnoCase) { - const char *z =3D 0; /* String on RHS of LIKE operator */ - Expr *pRight, *pLeft; /* Right and left size of LIKE operator = */ - ExprList *pList; /* List of operands to the LIKE operator = */ - int c; /* One character in z[] */ - int cnt; /* Number of non-wildcard prefix = characters */ - char wc[3]; /* Wildcard characters */ - sqlite3 *db =3D pParse->db; /* Database connection */ + /* String on RHS of LIKE operator */ + const char *z =3D 0; + /* Right and left size of LIKE operator */ + Expr *pRight, *pLeft; + /* List of operands to the LIKE operator */ + ExprList *pList; + /* One character in z[] */ + int c; + /* Number of non-wildcard prefix characters */ + int cnt; + /* Database connection */ + sqlite3 *db =3D pParse->db; sqlite3_value *pVal =3D 0; - int op; /* Opcode of pRight */ - int rc; /* Result code to return */ + /* Opcode of pRight */ + int op; + /* Result code to return */ + int rc; =20 - if (!sqlite3IsLikeFunction(db, pExpr, pnoCase, wc)) { + if (!sql_is_like_func(db, pExpr, pnoCase)) { return 0; } pList =3D pExpr->x.pList; @@ -257,8 +280,9 @@ isLikeOrGlob(Parse * pParse, /* Parsing and = code generating context */ /* Value might be numeric */ if (pLeft->op !=3D TK_COLUMN || sqlite3ExprAffinity(pLeft) !=3D AFFINITY_TEXT) { - /* IMP: R-02065-49465 The left-hand side of the LIKE or = GLOB operator must - * be the name of an indexed column with TEXT affinity. + /* IMP: R-02065-49465 The left-hand side of the + * LIKE operator must be the name of an indexed + * column with TEXT affinity. */ return 0; } @@ -281,13 +305,11 @@ isLikeOrGlob(Parse * pParse, /* Parsing and = code generating context */ } if (z) { cnt =3D 0; - while ((c =3D z[cnt]) !=3D 0 && c !=3D wc[0] && c !=3D = wc[1] - && c !=3D wc[2]) { + while ((c =3D z[cnt]) !=3D 0 && c !=3D match_one && c !=3D= match_all) cnt++; - } if (cnt !=3D 0 && 255 !=3D (u8) z[cnt - 1]) { Expr *pPrefix; - *pisComplete =3D c =3D=3D wc[0] && z[cnt + 1] =3D=3D= 0; + *pisComplete =3D c =3D=3D match_all && z[cnt + = 1] =3D=3D 0; pPrefix =3D sqlite3Expr(db, TK_STRING, z); if (pPrefix) pPrefix->u.zToken[cnt] =3D 0; @@ -943,19 +965,32 @@ exprAnalyze(SrcList * pSrc, /* the FROM = clause */ int idxTerm /* Index of the term to be analyzed */ ) { - WhereInfo *pWInfo =3D pWC->pWInfo; /* WHERE clause = processing context */ - WhereTerm *pTerm; /* The term to be analyzed */ - WhereMaskSet *pMaskSet; /* Set of table index masks */ - Expr *pExpr; /* The expression to be analyzed */ - Bitmask prereqLeft; /* Prerequesites of the pExpr->pLeft */ - Bitmask prereqAll; /* Prerequesites of pExpr */ - Bitmask extraRight =3D 0; /* Extra dependencies on LEFT = JOIN */ - Expr *pStr1 =3D 0; /* RHS of LIKE/GLOB operator */ - int isComplete =3D 0; /* RHS of LIKE/GLOB ends with wildcard = */ - int noCase =3D 0; /* uppercase equivalent to = lowercase */ - int op; /* Top-level operator. pExpr->op */ - Parse *pParse =3D pWInfo->pParse; /* Parsing context */ - sqlite3 *db =3D pParse->db; /* Database connection */ + /* WHERE clause processing context */ + WhereInfo *pWInfo =3D pWC->pWInfo; + /* The term to be analyzed */ + WhereTerm *pTerm; + /* Set of table index masks */ + WhereMaskSet *pMaskSet; + /* The expression to be analyzed */ + Expr *pExpr; + /* Prerequesites of the pExpr->pLeft */ + Bitmask prereqLeft; + /* Prerequesites of pExpr */ + Bitmask prereqAll; + /* Extra dependencies on LEFT JOIN */ + Bitmask extraRight =3D 0; + /* RHS of LIKE operator */ + Expr *pStr1 =3D 0; + /* RHS of LIKE ends with wildcard */ + int isComplete =3D 0; + /* uppercase equivalent to lowercase */ + int noCase =3D 0; + /* Top-level operator. pExpr->op */ + int op; + /* Parsing context */ + Parse *pParse =3D pWInfo->pParse; + /* Database connection */ + sqlite3 *db =3D pParse->db; =20 if (db->mallocFailed) { return; @@ -1111,37 +1146,44 @@ exprAnalyze(SrcList * pSrc, /* the FROM = clause */ #endif /* SQLITE_OMIT_OR_OPTIMIZATION */ =20 #ifndef SQLITE_OMIT_LIKE_OPTIMIZATION - /* Add constraints to reduce the search space on a LIKE or GLOB + /** + * Add constraints to reduce the search space on a LIKE * operator. * - * A like pattern of the form "x LIKE 'aBc%'" is changed into = constraints + * A like pattern of the form "x LIKE 'aBc%'" is changed + * into constraints: * * x>=3D'ABC' AND x<'abd' AND x LIKE 'aBc%' * - * The last character of the prefix "abc" is incremented to form = the - * termination condition "abd". If case is not significant (the = default - * for LIKE) then the lower-bound is made all uppercase and the = upper- - * bound is made all lowercase so that the bounds also work when = comparing - * BLOBs. + * The last character of the prefix "abc" is incremented + * to form the termination condition "abd". If case is + * not significant (the default for LIKE) then the + * lower-bound is made all uppercase and the upper-bound + * is made all lowercase so that the bounds also work + * when comparing BLOBs. */ if (pWC->op =3D=3D TK_AND - && isLikeOrGlob(pParse, pExpr, &pStr1, &isComplete, &noCase) - ) { - Expr *pLeft; /* LHS of LIKE/GLOB operator */ - Expr *pStr2; /* Copy of pStr1 - RHS of LIKE/GLOB = operator */ + && is_like(pParse, pExpr, &pStr1, &isComplete, &noCase)) { + /* LHS of LIKE operator */ + Expr *pLeft; + /* Copy of pStr1 - RHS of LIKE operator */ + Expr *pStr2; Expr *pNewExpr1; Expr *pNewExpr2; int idxNew1; int idxNew2; - const char *zCollSeqName; /* Name of collating = sequence */ + /* Name of collating sequence */ + const char *zCollSeqName; const u16 wtFlags =3D TERM_LIKEOPT | TERM_VIRTUAL | = TERM_DYNAMIC; =20 pLeft =3D pExpr->x.pList->a[1].pExpr; pStr2 =3D sqlite3ExprDup(db, pStr1, 0); =20 - /* Convert the lower bound to upper-case and the upper = bound to - * lower-case (upper-case is less than lower-case in = ASCII) so that - * the range constraints also work for BLOBs + /** + * Convert the lower bound to upper-case and the + * upper bound to lower-case (upper-case is less + * than lower-case in ASCII) so that the range + * constraints also work for BLOBs */ if (noCase && !pParse->db->mallocFailed) { int i; diff --git a/test/sql-tap/alter.test.lua b/test/sql-tap/alter.test.lua index cfe280121..98338c493 100755 --- a/test/sql-tap/alter.test.lua +++ b/test/sql-tap/alter.test.lua @@ -232,7 +232,7 @@ test:do_execsql_test( [[ CREATE TABLE xyz(x PRIMARY KEY); ALTER TABLE xyz RENAME TO "xyz1234abc"; - SELECT "name" FROM "_space" WHERE "name" GLOB 'xyz*'; + SELECT "name" FROM "_space" WHERE "name" =3D 'xyz1234abc'; ]], { -- "xyz1234abc" @@ -243,7 +243,7 @@ test:do_execsql_test( "alter-5.2", [[ ALTER TABLE "xyz1234abc" RENAME TO xyzabc; - SELECT "name" FROM "_space" WHERE "name" GLOB 'XYZ*'; + SELECT "name" FROM "_space" WHERE "name" =3D 'XYZABC'; ]], { -- "XYZABC" diff --git a/test/sql-tap/analyze9.test.lua = b/test/sql-tap/analyze9.test.lua index 3b3d52f67..ec3e545d8 100755 --- a/test/sql-tap/analyze9.test.lua +++ b/test/sql-tap/analyze9.test.lua @@ -206,10 +206,10 @@ test:do_execsql_test( INSERT INTO t1 VALUES(81, 1, 'one-i'); INSERT INTO t1 VALUES(91, 1, 'one-j'); INSERT INTO t1 SELECT a+1,2,'two' || substr(c,4) FROM t1; - INSERT INTO t1 SELECT a+2,3,'three'||substr(c,4) FROM t1 WHERE = c GLOB 'one-*'; - INSERT INTO t1 SELECT a+3,4,'four'||substr(c,4) FROM t1 WHERE c = GLOB 'one-*'; - INSERT INTO t1 SELECT a+4,5,'five'||substr(c,4) FROM t1 WHERE c = GLOB 'one-*'; - INSERT INTO t1 SELECT a+5,6,'six'||substr(c,4) FROM t1 WHERE c = GLOB 'one-*';=09 + INSERT INTO t1 SELECT a+2,3,'three'||substr(c,4) FROM t1 WHERE = c LIKE 'one-%'; + INSERT INTO t1 SELECT a+3,4,'four'||substr(c,4) FROM t1 WHERE c = LIKE 'one-%'; + INSERT INTO t1 SELECT a+4,5,'five'||substr(c,4) FROM t1 WHERE c = LIKE 'one-%'; + INSERT INTO t1 SELECT a+5,6,'six'||substr(c,4) FROM t1 WHERE c = LIKE 'one-%';=09 CREATE INDEX t1b ON t1(b); ANALYZE; SELECT c FROM t1 WHERE b=3D3 AND a BETWEEN 30 AND 60; diff --git a/test/sql-tap/e_expr.test.lua b/test/sql-tap/e_expr.test.lua index 9780d2cf9..0d69e8535 100755 --- a/test/sql-tap/e_expr.test.lua +++ b/test/sql-tap/e_expr.test.lua @@ -1,6 +1,6 @@ #!/usr/bin/env tarantool test =3D require("sqltester") -test:plan(10665) +test:plan(10647) =20 --!./tcltestrunner.lua -- 2010 July 16 @@ -77,10 +77,7 @@ local operations =3D { {"<>", "ne1"}, {"!=3D", "ne2"}, {"IS", "is"}, --- NOTE: This test needs refactoring after deletion of GLOB & --- type restrictions for LIKE. (See #3572) -- {"LIKE", "like"}, --- {"GLOB", "glob"}, {"AND", "and"}, {"OR", "or"}, {"MATCH", "match"}, @@ -98,12 +95,10 @@ operations =3D { {"+", "-"}, {"<<", ">>", "&", "|"}, {"<", "<=3D", ">", ">=3D"}, --- NOTE: This test needs refactoring after deletion of GLOB & --- type restrictions for LIKE. (See #3572) -- Another NOTE: MATCH & REGEXP aren't supported in Tarantool & --- are waiting for their hour, don't confuse them --- being commented with ticket above. - {"=3D", "=3D=3D", "!=3D", "<>"}, --"LIKE", "GLOB"}, --"MATCH", = "REGEXP"}, +-- are waiting for their hour, don't confuse them +-- being commented with commenting of "LIKE". + {"=3D", "=3D=3D", "!=3D", "<>"}, --"LIKE"}, --"MATCH", "REGEXP"}, {"AND"}, {"OR"}, } @@ -128,7 +123,7 @@ end -- EVIDENCE-OF: R-15514-65163 SQLite understands the following binary -- operators, in order from highest to lowest precedence: || * / % + - -- << >> & | < <=3D > >=3D =3D =3D=3D !=3D <> IS IS --- NOT IN LIKE GLOB MATCH REGEXP AND OR +-- NOT IN LIKE MATCH REGEXP AND OR -- -- EVIDENCE-OF: R-38759-38789 Operators IS and IS NOT have the same -- precedence as =3D. @@ -482,7 +477,6 @@ for _, op in ipairs(oplist) do end end end - = --------------------------------------------------------------------------= - -- Test the IS and IS NOT operators. -- @@ -1303,11 +1297,11 @@ end test:execsql [[ CREATE TABLE tblname(cname PRIMARY KEY); ]] + local function glob(args) return 1 end =20 -box.internal.sql_create_function("GLOB", glob) box.internal.sql_create_function("MATCH", glob) box.internal.sql_create_function("REGEXP", glob) local test_cases12 =3D{ @@ -1369,47 +1363,43 @@ local test_cases12 =3D{ =20 {47, "EXPR1 LIKE EXPR2"}, {48, "EXPR1 LIKE EXPR2 ESCAPE EXPR"}, - {49, "EXPR1 GLOB EXPR2"}, - {50, "EXPR1 GLOB EXPR2 ESCAPE EXPR"}, - {51, "EXPR1 REGEXP EXPR2"}, - {52, "EXPR1 REGEXP EXPR2 ESCAPE EXPR"}, - {53, "EXPR1 MATCH EXPR2"}, - {54, "EXPR1 MATCH EXPR2 ESCAPE EXPR"}, - {55, "EXPR1 NOT LIKE EXPR2"}, - {56, "EXPR1 NOT LIKE EXPR2 ESCAPE EXPR"}, - {57, "EXPR1 NOT GLOB EXPR2"}, - {58, "EXPR1 NOT GLOB EXPR2 ESCAPE EXPR"}, - {59, "EXPR1 NOT REGEXP EXPR2"}, - {60, "EXPR1 NOT REGEXP EXPR2 ESCAPE EXPR"}, - {61, "EXPR1 NOT MATCH EXPR2"}, - {62, "EXPR1 NOT MATCH EXPR2 ESCAPE EXPR"}, - - {63, "EXPR IS NULL"}, - {64, "EXPR IS NOT NULL"}, - - {65, "EXPR NOT BETWEEN EXPR1 AND EXPR2"}, - {66, "EXPR BETWEEN EXPR1 AND EXPR2"}, - - {67, "EXPR NOT IN (SELECT cname FROM tblname)"}, - {68, "EXPR NOT IN (1)"}, - {69, "EXPR NOT IN (1, 2, 3)"}, - {70, "EXPR NOT IN tblname"}, - {71, "EXPR IN (SELECT cname FROM tblname)"}, - {72, "EXPR IN (1)"}, - {73, "EXPR IN (1, 2, 3)"}, - {74, "EXPR IN tblname"}, - - {75, "EXISTS (SELECT cname FROM tblname)"}, - {76, "NOT EXISTS (SELECT cname FROM tblname)"}, - - {77, "CASE EXPR WHEN EXPR1 THEN EXPR2 ELSE EXPR END"}, - {78, "CASE EXPR WHEN EXPR1 THEN EXPR2 END"}, - {79, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE = EXPR2 END"}, - {80, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 END"}, - {81, "CASE WHEN EXPR1 THEN EXPR2 ELSE EXPR END"}, - {82, "CASE WHEN EXPR1 THEN EXPR2 END"}, - {83, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE EXPR2 = END"}, - {84, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 END"}, + {49, "EXPR1 REGEXP EXPR2"}, + {50, "EXPR1 REGEXP EXPR2 ESCAPE EXPR"}, + {51, "EXPR1 MATCH EXPR2"}, + {52, "EXPR1 MATCH EXPR2 ESCAPE EXPR"}, + {53, "EXPR1 NOT LIKE EXPR2"}, + {54, "EXPR1 NOT LIKE EXPR2 ESCAPE EXPR"}, + {55, "EXPR1 NOT REGEXP EXPR2"}, + {56, "EXPR1 NOT REGEXP EXPR2 ESCAPE EXPR"}, + {57, "EXPR1 NOT MATCH EXPR2"}, + {58, "EXPR1 NOT MATCH EXPR2 ESCAPE EXPR"}, + + {59, "EXPR IS NULL"}, + {60, "EXPR IS NOT NULL"}, + + {61, "EXPR NOT BETWEEN EXPR1 AND EXPR2"}, + {62, "EXPR BETWEEN EXPR1 AND EXPR2"}, + + {63, "EXPR NOT IN (SELECT cname FROM tblname)"}, + {64, "EXPR NOT IN (1)"}, + {65, "EXPR NOT IN (1, 2, 3)"}, + {66, "EXPR NOT IN tblname"}, + {67, "EXPR IN (SELECT cname FROM tblname)"}, + {68, "EXPR IN (1)"}, + {69, "EXPR IN (1, 2, 3)"}, + {70, "EXPR IN tblname"}, + + {71, "EXISTS (SELECT cname FROM tblname)"}, + {72, "NOT EXISTS (SELECT cname FROM tblname)"}, + + {73, "CASE EXPR WHEN EXPR1 THEN EXPR2 ELSE EXPR END"}, + {74, "CASE EXPR WHEN EXPR1 THEN EXPR2 END"}, + {75, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE = EXPR2 END"}, + {76, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 END"}, + {77, "CASE WHEN EXPR1 THEN EXPR2 ELSE EXPR END"}, + {78, "CASE WHEN EXPR1 THEN EXPR2 END"}, + {79, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE EXPR2 = END"}, + {80, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 END"}, } =20 for _, val in ipairs(test_cases12) do @@ -1802,7 +1792,7 @@ test:do_execsql_test( }) =20 = --------------------------------------------------------------------------= - --- Test the statements related to the LIKE and GLOB operators. +-- Test the statements related to the LIKE operator. -- -- EVIDENCE-OF: R-16584-60189 The LIKE operator does a pattern matching -- comparison. @@ -2274,102 +2264,38 @@ test:do_execsql_test( -- }) =20 --- EVIDENCE-OF: R-52087-12043 The GLOB operator is similar to LIKE but --- uses the Unix file globbing syntax for its wildcards. --- --- EVIDENCE-OF: R-09813-17279 Also, GLOB is case sensitive, unlike = LIKE. +-- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by the +-- NOT keyword to invert the sense of the test. -- test:do_execsql_test( - "e_expr-17.1.1", - [[ - SELECT 'abcxyz' GLOB 'abc%' - ]], { - -- - 0 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.2", - [[ - SELECT 'abcxyz' GLOB 'abc*' - ]], { - -- - 1 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.3", - [[ - SELECT 'abcxyz' GLOB 'abc___' - ]], { - -- - 0 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.4", - [[ - SELECT 'abcxyz' GLOB 'abc???' - ]], { - -- - 1 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.5", + "e_expr-17.2.0", [[ - SELECT 'abcxyz' GLOB 'abc*' + PRAGMA case_sensitive_like =3D 1; + SELECT 'abcxyz' NOT LIKE 'ABC%'; ]], { - -- + -- 1 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.6", - [[ - SELECT 'ABCxyz' GLOB 'abc*' - ]], { - -- - 0 - -- - }) - -test:do_execsql_test( - "e_expr-17.1.7", - [[ - SELECT 'abcxyz' GLOB 'ABC*' - ]], { - -- - 0 - -- + -- }) =20 --- EVIDENCE-OF: R-39616-20555 Both GLOB and LIKE may be preceded by the --- NOT keyword to invert the sense of the test. --- test:do_execsql_test( "e_expr-17.2.1", [[ - SELECT 'abcxyz' NOT GLOB 'ABC*' + SELECT 'abcxyz' NOT LIKE 'abc%' ]], { -- - 1 + 0 -- }) =20 test:do_execsql_test( "e_expr-17.2.2", [[ - SELECT 'abcxyz' NOT GLOB 'abc*' + PRAGMA case_sensitive_like =3D 0 ]], { -- - 0 - -- + + -- }) =20 test:do_execsql_test( @@ -2448,62 +2374,6 @@ if 0>0 then db("nullvalue", "") end =20 --- EVIDENCE-OF: R-39414-35489 The infix GLOB operator is implemented by --- calling the function glob(Y,X) and can be modified by overriding = that --- function. - -local globargs =3D {} -local function globfunc(...) - local args =3D {...} - for i, v in ipairs(args) do - table.insert(globargs, v) - end - return 1 -end -box.internal.sql_create_function("GLOB", globfunc, 2) ---db("func", "glob", "-argcount", 2, "globfunc") - -test:do_execsql_test( - "e_expr-17.3.1", - [[ - SELECT 'abc' GLOB 'def' - ]], { - -- - 1 - -- - }) - -test:do_test( - "e_expr-17.3.2", - function() - return globargs - end, { - -- - "def", "abc" - -- - }) - -globargs =3D { } -test:do_execsql_test( - "e_expr-17.3.3", - [[ - SELECT 'X' NOT GLOB 'Y' - ]], { - -- - 0 - -- - }) - -test:do_test( - "e_expr-17.3.4", - function() - return globargs - end, { - -- - "Y", "X" - -- - }) - --sqlite3("db", "test.db") -- EVIDENCE-OF: R-41650-20872 No regexp() user function is defined by -- default and so use of the REGEXP operator will normally result in an 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 addf0e36d..a6d822ccd 100755 --- a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua +++ b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua @@ -142,17 +142,17 @@ for i, tested_string in ipairs(invalid_testcases) = do local test_name =3D prefix .. "2." .. tostring(i) local test_itself =3D "SELECT 'abc' LIKE 'ab" .. tested_string .. = "';" test:do_catchsql_test(test_name, test_itself, - {1, "LIKE or GLOB pattern can only contain = UTF-8 characters"}) + {1, "LIKE pattern can only contain UTF-8 = characters"}) =20 test_name =3D prefix .. "3." .. tostring(i) test_itself =3D "SELECT 'abc' LIKE 'abc" .. tested_string .. "';" test:do_catchsql_test(test_name, test_itself, - {1, "LIKE or GLOB pattern can only contain = UTF-8 characters"}) + {1, "LIKE pattern can only contain UTF-8 = characters"}) =20 test_name =3D prefix .. "4." .. tostring(i) test_itself =3D "SELECT 'abc' LIKE 'ab" .. tested_string .. "c';" test:do_catchsql_test(test_name, test_itself, - {1, "LIKE or GLOB pattern can only contain = UTF-8 characters"}) + {1, "LIKE pattern can only contain UTF-8 = characters"}) =20 -- Just skipping if row value predicand contains invalid character. =20 @@ -185,7 +185,7 @@ local valid_testcases =3D { =20 -- Valid testcases. for i, tested_string in ipairs(valid_testcases) do - test_name =3D prefix .. "8." .. tostring(i) + local test_name =3D prefix .. "8." .. tostring(i) local test_itself =3D "SELECT 'abc' LIKE 'ab" .. tested_string .. = "';" test:do_execsql_test(test_name, test_itself, {0}) =20 diff --git a/test/sql-tap/like2.test.lua b/test/sql-tap/like2.test.lua index abcac39fb..c6c81cb4d 100755 --- a/test/sql-tap/like2.test.lua +++ b/test/sql-tap/like2.test.lua @@ -12,11 +12,11 @@ test:plan(282) -- May you find forgiveness for yourself and forgive others. -- May you share freely, never taking more than you give. -- = --------------------------------------------------------------------------= --- This file implements regression tests for SQLite library. The --- focus of this file is testing the LIKE and GLOB operators and --- in particular the optimizations that occur to help those operators --- run faster. +----------------------------------------------------------------- +-- This file implements regression tests for SQLite library. The +-- focus of this file is testing the LIKE operator and +-- in particular the optimizations that occur to help this +-- operator run faster. -- -- $Id: like2.test,v 1.1 2008/05/26 18:33:41 drh Exp $ -- ["set","testdir",[["file","dirname",["argv0"]]]] diff --git a/test/sql-tap/like3.test.lua b/test/sql-tap/like3.test.lua index 505d2fabb..f5e517121 100755 --- a/test/sql-tap/like3.test.lua +++ b/test/sql-tap/like3.test.lua @@ -1,6 +1,6 @@ #!/usr/bin/env tarantool test =3D require("sqltester") -test:plan(7) +test:plan(1) =20 --!./tcltestrunner.lua -- 2015-03-06 @@ -12,13 +12,13 @@ test:plan(7) -- May you find forgiveness for yourself and forgive others. -- May you share freely, never taking more than you give. -- = --------------------------------------------------------------------------= +----------------------------------------------------------------- -- --- This file implements regression tests for SQLite library. The --- focus of this file is testing the LIKE and GLOB operators and --- in particular the optimizations that occur to help those operators --- run faster and that those optimizations work correctly when there --- are both strings and blobs being tested. +-- This file implements regression tests for SQLite library. The +-- focus of this file is testing the LIKE operator and +-- in particular the optimizations that occur to help this +-- operator run faster and that those optimizations work +-- correctly when there are both strings and blobs being tested. -- -- Ticket 05f43be8fdda9fbd948d374319b99b054140bc36 shows that the = following -- SQL was not working correctly: @@ -67,68 +67,6 @@ test:do_execsql_test( -- }) =20 -test:do_execsql_test( - "like3-2.0", - [[ - CREATE TABLE t2(a PRIMARY KEY, b TEXT); - INSERT INTO t2 SELECT a, b FROM t1; - CREATE INDEX t2ba ON t2(b,a); - SELECT a, b FROM t2 WHERE b GLOB 'ab*' ORDER BY +a; - ]], { - -- - 1, "abc", 4, "abc" - -- - }) - -test:do_execsql_test( - "like3-2.1", - [[ - SELECT a, b FROM t2 WHERE +b GLOB 'ab*' ORDER BY +a; - ]], { - -- - 1, "abc", 4, "abc" - -- - }) - -test:do_execsql_test( - "like3-2.2", - [[ - SELECT a, b FROM t2 WHERE b>=3Dx'6162' AND b GLOB 'ab*' - ]], { - -- - 4, "abc" - -- - }) - -test:do_execsql_test( - "like3-2.3", - [[ - SELECT a, b FROM t2 WHERE +b>=3Dx'6162' AND +b GLOB 'ab*' - ]], { - -- - 4, "abc" - -- - }) - -test:do_execsql_test( - "like3-2.4", - [[ - SELECT a, b FROM t2 WHERE b GLOB 'ab*' AND b>=3Dx'6162' - ]], { - -- - 4, "abc" - -- - }) - -test:do_execsql_test( - "like3-2.5", - [[ - SELECT a, b FROM t2 WHERE +b GLOB 'ab*' AND +b>=3Dx'6162' - ]], { - -- - 4, "abc" - -- - }) test:execsql([[ CREATE TABLE t3(x TEXT PRIMARY KEY COLLATE "unicode_ci"); INSERT INTO t3(x) VALUES('aaa'),('abc'),('abd'),('abe'),('acz'); diff --git a/test/sql-tap/tkt1537.test.lua = b/test/sql-tap/tkt1537.test.lua index caa428409..4b2d78c18 100755 --- a/test/sql-tap/tkt1537.test.lua +++ b/test/sql-tap/tkt1537.test.lua @@ -185,7 +185,7 @@ test:do_execsql_test( test:do_execsql_test( "tkt1537-3.1", [[ - SELECT * FROM t1 LEFT JOIN t2 ON b GLOB 'abc*' WHERE t1.id=3D1; + SELECT * FROM t1 LEFT JOIN t2 ON b LIKE 'abc%' WHERE t1.id=3D1; ]], { -- 1, "", "", "", "" @@ -195,7 +195,7 @@ test:do_execsql_test( test:do_execsql_test( "tkt1537-3.2", [[ - SELECT * FROM t2 LEFT JOIN t1 ON a1 GLOB 'abc*' WHERE t2.id=3D3; + SELECT * FROM t2 LEFT JOIN t1 ON a1 LIKE 'abc%' WHERE t2.id=3D3; ]], { -- 3, 1, "", "", "" diff --git a/test/sql-tap/triggerA.test.lua = b/test/sql-tap/triggerA.test.lua index da1add8e2..530e48830 100755 --- a/test/sql-tap/triggerA.test.lua +++ b/test/sql-tap/triggerA.test.lua @@ -76,7 +76,7 @@ test:do_test( "triggerA-1.3", function() return test:execsql [[ - CREATE VIEW v2 AS SELECT x, y FROM t1 WHERE y GLOB '*e*'; + CREATE VIEW v2 AS SELECT x, y FROM t1 WHERE y LIKE '%e%'; SELECT * FROM v2 ORDER BY 1; ]] end, { diff --git a/test/sql-tap/where3.test.lua b/test/sql-tap/where3.test.lua index 45827373f..96761310c 100755 --- a/test/sql-tap/where3.test.lua +++ b/test/sql-tap/where3.test.lua @@ -404,7 +404,7 @@ if 0 CREATE TABLE t401(p INTEGER PRIMARY KEY, q, r); CREATE TABLE t402(x INTEGER PRIMARY KEY, y, z); EXPLAIN QUERY PLAN - SELECT * FROM t400, t401, t402 WHERE t402.z GLOB 'abc*'; + SELECT * FROM t400, t401, t402 WHERE t402.z LIKE 'abc%'; ]], { -- 0, 0, 2, "SCAN TABLE T402", 0, 1, 0, "SCAN TABLE T400", 0, = 2, 1, "SCAN TABLE T401" @@ -415,7 +415,7 @@ if 0 "where3-4.1", [[ EXPLAIN QUERY PLAN - SELECT * FROM t400, t401, t402 WHERE t401.r GLOB 'abc*'; + SELECT * FROM t400, t401, t402 WHERE t401.r LIKE 'abc%'; ]], { -- 0, 0, 1, "SCAN TABLE T401", 0, 1, 0, "SCAN TABLE T400", 0, = 2, 2, "SCAN TABLE T402" @@ -426,7 +426,7 @@ if 0 "where3-4.2", [[ EXPLAIN QUERY PLAN - SELECT * FROM t400, t401, t402 WHERE t400.c GLOB 'abc*'; + SELECT * FROM t400, t401, t402 WHERE t400.c LIKE 'abc%'; ]], { -- 0, 0, 0, "SCAN TABLE T400", 0, 1, 1, "SCAN TABLE T401", 0, = 2, 2, "SCAN TABLE T402" diff --git a/test/sql-tap/where7.test.lua b/test/sql-tap/where7.test.lua index 6691dd03b..27d25e671 100755 --- a/test/sql-tap/where7.test.lua +++ b/test/sql-tap/where7.test.lua @@ -448,12 +448,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1070 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') ]]) end, { -- @@ -467,12 +467,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1070 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') ]]) end, { -- @@ -487,11 +487,11 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR ((a BETWEEN 33 AND 35) AND a!=3D34) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR b=3D220 OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') ]]) end, { -- @@ -506,11 +506,11 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR ((a BETWEEN 33 AND 35) AND a!=3D34) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR b=3D220 OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') ]]) end, { -- @@ -525,7 +525,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D190 OR ((a BETWEEN 49 AND 51) AND a!=3D50) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR b=3D407 ]]) end, { @@ -541,7 +541,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D190 OR ((a BETWEEN 49 AND 51) AND a!=3D50) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR b=3D407 ]]) end, { @@ -555,7 +555,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*') + WHERE (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D795 OR b=3D1103 OR b=3D583 @@ -571,7 +571,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*') + WHERE (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D795 OR b=3D1103 OR b=3D583 @@ -589,7 +589,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D74 OR a=3D50 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 16 AND 18) AND a!=3D17) OR c=3D21021 OR ((a BETWEEN 82 AND 84) AND a!=3D83) @@ -607,7 +607,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D74 OR a=3D50 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 16 AND 18) AND a!=3D17) OR c=3D21021 OR ((a BETWEEN 82 AND 84) AND a!=3D83) @@ -746,7 +746,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR c=3D11011 OR c=3D20020 OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) @@ -763,7 +763,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR c=3D11011 OR c=3D20020 OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) @@ -781,7 +781,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR b=3D792 OR a=3D97 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) @@ -804,7 +804,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR b=3D792 OR a=3D97 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) @@ -827,11 +827,11 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 50 AND 52) AND a!=3D51) OR c=3D9009 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D539 OR b=3D297 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D957 OR f=3D'xyzabcdef' OR b=3D619 @@ -849,11 +849,11 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 50 AND 52) AND a!=3D51) OR c=3D9009 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D539 OR b=3D297 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D957 OR f=3D'xyzabcdef' OR b=3D619 @@ -931,7 +931,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D938 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -946,7 +946,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D938 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -963,12 +963,12 @@ test:do_test( OR f=3D'zabcdefgh' OR b=3D308 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR ((a BETWEEN 15 AND 17) AND a!=3D16) OR b=3D443 OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR f=3D'uvwxyzabc' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -985,12 +985,12 @@ test:do_test( OR f=3D'zabcdefgh' OR b=3D308 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR ((a BETWEEN 15 AND 17) AND a!=3D16) OR b=3D443 OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR f=3D'uvwxyzabc' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -1037,13 +1037,13 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR a=3D46 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR a=3D73 OR c=3D20020 OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR b=3D267 OR ((a BETWEEN 68 AND 70) AND a!=3D69) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -1058,13 +1058,13 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR a=3D46 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR a=3D73 OR c=3D20020 OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR b=3D267 OR ((a BETWEEN 68 AND 70) AND a!=3D69) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -1078,7 +1078,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 27 AND 29) AND a!=3D28) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -1092,7 +1092,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 27 AND 29) AND a!=3D28) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -1111,9 +1111,9 @@ test:do_test( OR ((a BETWEEN 87 AND 89) AND a!=3D88) OR f=3D'bcdefghij' OR b=3D586 - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR (d>=3D6.0 AND d<7.0 AND d IS NOT NULL) OR a=3D9 ]]) @@ -1134,9 +1134,9 @@ test:do_test( OR ((a BETWEEN 87 AND 89) AND a!=3D88) OR f=3D'bcdefghij' OR b=3D586 - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR (d>=3D6.0 AND d<7.0 AND d IS NOT NULL) OR a=3D9 ]]) @@ -1154,7 +1154,7 @@ test:do_test( WHERE b=3D399 OR c=3D28028 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) ]]) end, { @@ -1171,7 +1171,7 @@ test:do_test( WHERE b=3D399 OR c=3D28028 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) ]]) end, { @@ -1185,15 +1185,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR c=3D14014 OR c=3D33033 OR a=3D89 OR b=3D770 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR a=3D35 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR b=3D253 OR c=3D14014 ]]) @@ -1208,15 +1208,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR c=3D14014 OR c=3D33033 OR a=3D89 OR b=3D770 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR a=3D35 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR b=3D253 OR c=3D14014 ]]) @@ -1231,10 +1231,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D330 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR a=3D16 ]]) end, { @@ -1248,10 +1248,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D330 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR a=3D16 ]]) end, { @@ -1268,7 +1268,7 @@ test:do_test( WHERE c=3D5005 OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) OR ((a BETWEEN 36 AND 38) AND a!=3D37) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -1284,7 +1284,7 @@ test:do_test( WHERE c=3D5005 OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) OR ((a BETWEEN 36 AND 38) AND a!=3D37) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -1298,9 +1298,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D33 ]]) end, { @@ -1315,9 +1315,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D33 ]]) end, { @@ -1361,8 +1361,8 @@ test:do_test( SELECT a FROM t2 WHERE c=3D18018 OR a=3D94 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D1012 OR a=3D3 OR d>1e10 @@ -1382,8 +1382,8 @@ test:do_test( SELECT a FROM t3 WHERE c=3D18018 OR a=3D94 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D1012 OR a=3D3 OR d>1e10 @@ -1405,11 +1405,11 @@ test:do_test( OR c=3D11011 OR b=3D297 OR a=3D63 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR a=3D76 OR b=3D1026 OR a=3D26 - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR c=3D30030 ]]) end, { @@ -1427,11 +1427,11 @@ test:do_test( OR c=3D11011 OR b=3D297 OR a=3D63 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR a=3D76 OR b=3D1026 OR a=3D26 - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR c=3D30030 ]]) end, { @@ -1449,7 +1449,7 @@ test:do_test( OR b=3D1070 OR a=3D59 OR b=3D715 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') ]]) end, { -- @@ -1466,7 +1466,7 @@ test:do_test( OR b=3D1070 OR a=3D59 OR b=3D715 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') ]]) end, { -- @@ -1479,13 +1479,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D1056 OR b=3D1012 OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -1498,13 +1498,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D1056 OR b=3D1012 OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -1518,7 +1518,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'rstuvwxyz' - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) ]]) @@ -1534,7 +1534,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'rstuvwxyz' - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) ]]) @@ -1549,13 +1549,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') OR c=3D12012 OR a=3D18 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') ]]) end, { -- @@ -1568,13 +1568,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') OR c=3D12012 OR a=3D18 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') ]]) end, { -- @@ -1622,7 +1622,7 @@ test:do_test( OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR c=3D33033 OR b=3D11 - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR ((a BETWEEN 7 AND 9) AND a!=3D8) ]]) end, { @@ -1643,7 +1643,7 @@ test:do_test( OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR c=3D33033 OR b=3D11 - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR ((a BETWEEN 7 AND 9) AND a!=3D8) ]]) end, { @@ -1719,7 +1719,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D165 OR b=3D201 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR a=3D32 ]]) end, { @@ -1735,7 +1735,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D165 OR b=3D201 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR a=3D32 ]]) end, { @@ -1749,8 +1749,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') ]]) end, { -- @@ -1763,8 +1763,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') ]]) end, { -- @@ -1785,8 +1785,8 @@ test:do_test( OR a=3D18 OR a=3D34 OR b=3D132 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR c=3D18018 ]]) end, { @@ -1808,8 +1808,8 @@ test:do_test( OR a=3D18 OR a=3D34 OR b=3D132 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR c=3D18018 ]]) end, { @@ -1851,13 +1851,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR b=3D297 OR b=3D113 OR b=3D176 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR (d>=3D75.0 AND d<76.0 AND d IS NOT NULL) OR a=3D67 OR c=3D26026 @@ -1873,13 +1873,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR b=3D297 OR b=3D113 OR b=3D176 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR (d>=3D75.0 AND d<76.0 AND d IS NOT NULL) OR a=3D67 OR c=3D26026 @@ -1940,8 +1940,8 @@ test:do_test( OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D487 OR b=3D619 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -1959,8 +1959,8 @@ test:do_test( OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D487 OR b=3D619 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -1980,7 +1980,7 @@ test:do_test( OR c=3D17017 OR a=3D82 OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR (d>=3D39.0 AND d<40.0 AND d IS NOT NULL) ]]) @@ -2002,7 +2002,7 @@ test:do_test( OR c=3D17017 OR a=3D82 OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR (d>=3D39.0 AND d<40.0 AND d IS NOT NULL) ]]) @@ -2017,7 +2017,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR c=3D22022 ]]) end, { @@ -2031,7 +2031,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR c=3D22022 ]]) end, { @@ -2048,7 +2048,7 @@ test:do_test( WHERE c=3D7007 OR b=3D91 OR b=3D212 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR c=3D28028 OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) ]]) @@ -2066,7 +2066,7 @@ test:do_test( WHERE c=3D7007 OR b=3D91 OR b=3D212 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR c=3D28028 OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) ]]) @@ -2111,9 +2111,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR c=3D4004 OR b=3D322 @@ -2131,9 +2131,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR c=3D4004 OR b=3D322 @@ -2156,8 +2156,8 @@ test:do_test( OR a=3D46 OR b=3D660 OR (d>=3D41.0 AND d<42.0 AND d IS NOT NULL) - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR b=3D355 OR a=3D93 OR b=3D297 @@ -2178,8 +2178,8 @@ test:do_test( OR a=3D46 OR b=3D660 OR (d>=3D41.0 AND d<42.0 AND d IS NOT NULL) - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR b=3D355 OR a=3D93 OR b=3D297 @@ -2197,7 +2197,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D190 OR a=3D62 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -2212,7 +2212,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D190 OR a=3D62 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -2306,7 +2306,7 @@ test:do_test( OR b=3D256 OR a=3D72 OR c>=3D34035 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D674 OR a=3D22 ]]) @@ -2328,7 +2328,7 @@ test:do_test( OR b=3D256 OR a=3D72 OR c>=3D34035 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D674 OR a=3D22 ]]) @@ -2381,9 +2381,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') ]]) end, { -- @@ -2396,9 +2396,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') ]]) end, { -- @@ -2413,7 +2413,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D748 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR b=3D630 ]]) @@ -2430,7 +2430,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D748 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR b=3D630 ]]) @@ -2521,7 +2521,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D979 OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') ]]) end, { -- @@ -2536,7 +2536,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D979 OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') ]]) end, { -- @@ -2555,7 +2555,7 @@ test:do_test( OR b=3D726 OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR ((a BETWEEN 50 AND 52) AND a!=3D51) - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) ]]) end, { @@ -2575,7 +2575,7 @@ test:do_test( OR b=3D726 OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR ((a BETWEEN 50 AND 52) AND a!=3D51) - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) ]]) end, { @@ -2593,10 +2593,10 @@ test:do_test( OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR b=3D924 OR c=3D11011 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D231 OR b=3D872 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -2613,10 +2613,10 @@ test:do_test( OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR b=3D924 OR c=3D11011 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D231 OR b=3D872 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -2631,8 +2631,8 @@ test:do_test( SELECT a FROM t2 WHERE a=3D24 OR b=3D473 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR b=3D509 OR b=3D924 OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) @@ -2650,8 +2650,8 @@ test:do_test( SELECT a FROM t3 WHERE a=3D24 OR b=3D473 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR b=3D509 OR b=3D924 OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) @@ -2668,11 +2668,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (f GLOB '?defg*' AND f GLOB 'cdef*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D363 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR ((a BETWEEN 56 AND 58) AND a!=3D57) ]]) @@ -2688,11 +2688,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (f GLOB '?defg*' AND f GLOB 'cdef*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D363 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR ((a BETWEEN 56 AND 58) AND a!=3D57) ]]) @@ -2711,9 +2711,9 @@ test:do_test( OR e IS NULL OR b=3D495 OR 1000000=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) @@ -2732,9 +2732,9 @@ test:do_test( OR e IS NULL OR b=3D495 OR 1000000=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) @@ -2781,9 +2781,9 @@ test:do_test( SELECT a FROM t2 WHERE c>=3D34035 OR ((a BETWEEN 96 AND 98) AND a!=3D97) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D27.0 AND d<28.0 AND d IS NOT NULL) OR a=3D91 ]]) @@ -2800,9 +2800,9 @@ test:do_test( SELECT a FROM t3 WHERE c>=3D34035 OR ((a BETWEEN 96 AND 98) AND a!=3D97) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D27.0 AND d<28.0 AND d IS NOT NULL) OR a=3D91 ]]) @@ -2817,9 +2817,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D649 OR b=3D231 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -2837,9 +2837,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D649 OR b=3D231 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -2918,11 +2918,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D65 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR c=3D22022 - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR b=3D671 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D91 OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) OR ((a BETWEEN 47 AND 49) AND a!=3D48) @@ -2941,11 +2941,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D65 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR c=3D22022 - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR b=3D671 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D91 OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) OR ((a BETWEEN 47 AND 49) AND a!=3D48) @@ -2995,7 +2995,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR a=3D14 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR b=3D212 @@ -3014,7 +3014,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR a=3D14 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR b=3D212 @@ -3031,11 +3031,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR b=3D168 OR b=3D25 OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -3048,11 +3048,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR b=3D168 OR b=3D25 OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -3098,10 +3098,10 @@ test:do_test( WHERE c=3D31031 OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) OR ((a BETWEEN 87 AND 89) AND a!=3D88) - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D49 OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') ]]) end, { -- @@ -3117,10 +3117,10 @@ test:do_test( WHERE c=3D31031 OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) OR ((a BETWEEN 87 AND 89) AND a!=3D88) - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D49 OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') ]]) end, { -- @@ -3170,7 +3170,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR b=3D1089 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) @@ -3187,7 +3187,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR b=3D1089 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) @@ -3205,8 +3205,8 @@ test:do_test( SELECT a FROM t2 WHERE b=3D399 OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR a=3D10 OR b=3D1026 ]]) @@ -3223,8 +3223,8 @@ test:do_test( SELECT a FROM t3 WHERE b=3D399 OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR a=3D10 OR b=3D1026 ]]) @@ -3239,11 +3239,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'yzabc*') + WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D465 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -3256,11 +3256,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'yzabc*') + WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D465 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -3275,7 +3275,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D25 OR b=3D792 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') ]]) end, { -- @@ -3290,7 +3290,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D25 OR b=3D792 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') ]]) end, { -- @@ -3308,10 +3308,10 @@ test:do_test( OR a=3D13 OR a=3D15 OR ((a BETWEEN 6 AND 8) AND a!=3D7) - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR a=3D27 OR ((a BETWEEN 98 AND 100) AND a!=3D99) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR a=3D32 OR a=3D39 ]]) @@ -3331,10 +3331,10 @@ test:do_test( OR a=3D13 OR a=3D15 OR ((a BETWEEN 6 AND 8) AND a!=3D7) - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR a=3D27 OR ((a BETWEEN 98 AND 100) AND a!=3D99) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR a=3D32 OR a=3D39 ]]) @@ -3350,14 +3350,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'hijklmnop' - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR ((a BETWEEN 77 AND 79) AND a!=3D78) OR b=3D528 OR c=3D30030 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') ]]) end, { -- @@ -3371,14 +3371,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'hijklmnop' - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR ((a BETWEEN 77 AND 79) AND a!=3D78) OR b=3D528 OR c=3D30030 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') ]]) end, { -- @@ -3425,11 +3425,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'pqrst*') + WHERE (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR b=3D748 OR b=3D696 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') ]]) end, { -- @@ -3442,11 +3442,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'pqrst*') + WHERE (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR b=3D748 OR b=3D696 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') ]]) end, { -- @@ -3460,10 +3460,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D87 OR a=3D80 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D784 OR a=3D49 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -3480,10 +3480,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D87 OR a=3D80 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D784 OR a=3D49 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -3500,13 +3500,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 14 AND 16) AND a!=3D15) - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR c=3D1001 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR c=3D33033 ]]) end, { @@ -3521,13 +3521,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 14 AND 16) AND a!=3D15) - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR c=3D1001 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR c=3D33033 ]]) end, { @@ -3611,13 +3611,13 @@ test:do_test( OR b=3D553 OR a=3D64 OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR a=3D62 OR b=3D1081 OR b=3D770 OR b=3D762 OR b=3D803 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') ]]) end, { -- @@ -3634,13 +3634,13 @@ test:do_test( OR b=3D553 OR a=3D64 OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR a=3D62 OR b=3D1081 OR b=3D770 OR b=3D762 OR b=3D803 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') ]]) end, { -- @@ -3653,8 +3653,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'klmno*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR c=3D17017 OR b=3D168 OR ((a BETWEEN 77 AND 79) AND a!=3D78) @@ -3670,8 +3670,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'klmno*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR c=3D17017 OR b=3D168 OR ((a BETWEEN 77 AND 79) AND a!=3D78) @@ -3690,12 +3690,12 @@ test:do_test( WHERE c=3D34034 OR (d>=3D68.0 AND d<69.0 AND d IS NOT NULL) OR a=3D44 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR c=3D31031 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR b=3D619 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) ]]) end, { @@ -3712,12 +3712,12 @@ test:do_test( WHERE c=3D34034 OR (d>=3D68.0 AND d<69.0 AND d IS NOT NULL) OR a=3D44 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR c=3D31031 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR b=3D619 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) ]]) end, { @@ -3738,10 +3738,10 @@ test:do_test( OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR b=3D110 OR f=3D'klmnopqrs' - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR b=3D674 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') ]]) end, { -- @@ -3761,10 +3761,10 @@ test:do_test( OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR b=3D110 OR f=3D'klmnopqrs' - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR b=3D674 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') ]]) end, { -- @@ -3882,7 +3882,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D231 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -3896,7 +3896,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D231 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -4057,7 +4057,7 @@ test:do_test( OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D630 OR c=3D19019 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR a=3D24 OR (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) @@ -4077,7 +4077,7 @@ test:do_test( OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D630 OR c=3D19019 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR a=3D24 OR (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) @@ -4128,11 +4128,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'stuvwxyza' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR ((a BETWEEN 1 AND 3) AND a!=3D2) OR b=3D1037 OR f=3D'zabcdefgh' - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -4146,11 +4146,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'stuvwxyza' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR ((a BETWEEN 1 AND 3) AND a!=3D2) OR b=3D1037 OR f=3D'zabcdefgh' - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -4163,7 +4163,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR ((a BETWEEN 30 AND 32) AND a!=3D31) ]]) @@ -4178,7 +4178,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR ((a BETWEEN 30 AND 32) AND a!=3D31) ]]) @@ -4197,8 +4197,8 @@ test:do_test( OR b=3D190 OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR ((a BETWEEN 70 AND 72) AND a!=3D71) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D704 ]]) end, { @@ -4216,8 +4216,8 @@ test:do_test( OR b=3D190 OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR ((a BETWEEN 70 AND 72) AND a!=3D71) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D704 ]]) end, { @@ -4234,7 +4234,7 @@ test:do_test( WHERE b=3D88 OR f=3D'vwxyzabcd' OR f=3D'fghijklmn' - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') ]]) end, { -- @@ -4250,7 +4250,7 @@ test:do_test( WHERE b=3D88 OR f=3D'vwxyzabcd' OR f=3D'fghijklmn' - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') ]]) end, { -- @@ -4296,7 +4296,7 @@ test:do_test( WHERE ((a BETWEEN 47 AND 49) AND a!=3D48) OR a=3D5 OR b=3D179 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR a=3D69 ]]) end, { @@ -4313,7 +4313,7 @@ test:do_test( WHERE ((a BETWEEN 47 AND 49) AND a!=3D48) OR a=3D5 OR b=3D179 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR a=3D69 ]]) end, { @@ -4328,8 +4328,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D971 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D828 OR a=3D81 OR ((a BETWEEN 23 AND 25) AND a!=3D24) @@ -4350,8 +4350,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D971 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D828 OR a=3D81 OR ((a BETWEEN 23 AND 25) AND a!=3D24) @@ -4399,8 +4399,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'opqrs*') - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (g=3D'lkjihgf' AND f LIKE 'opqrs%') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -4413,8 +4413,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'opqrs*') - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (g=3D'lkjihgf' AND f LIKE 'opqrs%') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -4463,8 +4463,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D396 ]]) end, { @@ -4478,8 +4478,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D396 ]]) end, { @@ -4531,7 +4531,7 @@ test:do_test( OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D396 OR b=3D630 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR c=3D3003 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) ]]) @@ -4552,7 +4552,7 @@ test:do_test( OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D396 OR b=3D630 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR c=3D3003 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) ]]) @@ -4573,8 +4573,8 @@ test:do_test( OR b=3D957 OR b=3D311 OR b=3D143 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) ]]) end, { @@ -4594,8 +4594,8 @@ test:do_test( OR b=3D957 OR b=3D311 OR b=3D143 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) ]]) end, { @@ -4612,7 +4612,7 @@ test:do_test( WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) OR ((a BETWEEN 94 AND 96) AND a!=3D95) OR b=3D451 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -4628,7 +4628,7 @@ test:do_test( WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) OR ((a BETWEEN 94 AND 96) AND a!=3D95) OR b=3D451 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -4645,11 +4645,11 @@ test:do_test( OR b=3D451 OR b=3D363 OR b=3D330 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR ((a BETWEEN 52 AND 54) AND a!=3D53) - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR ((a BETWEEN 81 AND 83) AND a!=3D82) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') ]]) end, { -- @@ -4666,11 +4666,11 @@ test:do_test( OR b=3D451 OR b=3D363 OR b=3D330 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR ((a BETWEEN 52 AND 54) AND a!=3D53) - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR ((a BETWEEN 81 AND 83) AND a!=3D82) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') ]]) end, { -- @@ -4683,9 +4683,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR (d>=3D68.0 AND d<69.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR e IS NULL OR b=3D759 ]]) @@ -4700,9 +4700,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR (d>=3D68.0 AND d<69.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR e IS NULL OR b=3D759 ]]) @@ -4717,9 +4717,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -4732,9 +4732,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -4815,14 +4815,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + WHERE (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR b=3D421 OR b=3D429 OR b=3D498 OR b=3D33 OR b=3D198 OR c=3D14014 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') ]]) end, { -- @@ -4835,14 +4835,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + WHERE (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR b=3D421 OR b=3D429 OR b=3D498 OR b=3D33 OR b=3D198 OR c=3D14014 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') ]]) end, { -- @@ -4858,13 +4858,13 @@ test:do_test( WHERE b=3D47 OR c=3D31031 OR a=3D38 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR b=3D242 OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR b=3D352 OR a=3D49 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -4880,13 +4880,13 @@ test:do_test( WHERE b=3D47 OR c=3D31031 OR a=3D38 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR b=3D242 OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR b=3D352 OR a=3D49 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -4969,9 +4969,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D528 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -4984,9 +4984,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D528 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -5031,7 +5031,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR 1000000=3D50.0 AND d<51.0 AND d IS NOT NULL) OR a=3D24 ]]) @@ -5048,7 +5048,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR 1000000=3D50.0 AND d<51.0 AND d IS NOT NULL) OR a=3D24 ]]) @@ -5071,8 +5071,8 @@ test:do_test( OR a=3D14 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR b=3D440 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') ]]) end, { -- @@ -5093,8 +5093,8 @@ test:do_test( OR a=3D14 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR b=3D440 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') ]]) end, { -- @@ -5226,9 +5226,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D27 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D1045 OR a=3D84 OR f=3D'qrstuvwxy' @@ -5245,9 +5245,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D27 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D1045 OR a=3D84 OR f=3D'qrstuvwxy' @@ -5266,7 +5266,7 @@ test:do_test( WHERE b=3D704 OR b=3D949 OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR c=3D24024 OR b=3D553 OR a=3D18 @@ -5286,7 +5286,7 @@ test:do_test( WHERE b=3D704 OR b=3D949 OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR c=3D24024 OR b=3D553 OR a=3D18 @@ -5303,8 +5303,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*') - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (f LIKE '_cdef%' AND f LIKE 'bcde%') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D902 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR b=3D25 @@ -5323,8 +5323,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*') - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (f LIKE '_cdef%' AND f LIKE 'bcde%') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D902 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR b=3D25 @@ -5405,8 +5405,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + WHERE (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D641 OR ((a BETWEEN 36 AND 38) AND a!=3D37) ]]) @@ -5421,8 +5421,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + WHERE (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D641 OR ((a BETWEEN 36 AND 38) AND a!=3D37) ]]) @@ -5442,9 +5442,9 @@ test:do_test( OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR b=3D11 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D52 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D13 OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) @@ -5464,9 +5464,9 @@ test:do_test( OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR b=3D11 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D52 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D13 OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) @@ -5487,7 +5487,7 @@ test:do_test( OR b=3D1045 OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'uvwxyzabc' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -5506,7 +5506,7 @@ test:do_test( OR b=3D1045 OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'uvwxyzabc' - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -5562,9 +5562,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D91 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) OR b=3D102 @@ -5584,9 +5584,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D91 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) OR b=3D102 @@ -5605,8 +5605,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'vutsrqp' AND f GLOB 'opqrs*') - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'vutsrqp' AND f LIKE 'opqrs%') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D990 OR a=3D52 OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) @@ -5622,8 +5622,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'vutsrqp' AND f GLOB 'opqrs*') - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'vutsrqp' AND f LIKE 'opqrs%') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D990 OR a=3D52 OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) @@ -5683,13 +5683,13 @@ test:do_test( OR b=3D421 OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR c=3D22022 OR b=3D825 OR ((a BETWEEN 17 AND 19) AND a!=3D18) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') ]]) end, { -- @@ -5706,13 +5706,13 @@ test:do_test( OR b=3D421 OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR c=3D22022 OR b=3D825 OR ((a BETWEEN 17 AND 19) AND a!=3D18) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') ]]) end, { -- @@ -5729,7 +5729,7 @@ test:do_test( OR b=3D484 OR b=3D1026 OR a=3D90 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D608 OR a=3D32 ]]) @@ -5748,7 +5748,7 @@ test:do_test( OR b=3D484 OR b=3D1026 OR a=3D90 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D608 OR a=3D32 ]]) @@ -5771,7 +5771,7 @@ test:do_test( OR a=3D55 OR b=3D773 OR b=3D319 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -5792,7 +5792,7 @@ test:do_test( OR a=3D55 OR b=3D773 OR b=3D319 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -5805,7 +5805,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'ijklm*') + WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR f=3D'mnopqrstu' OR a=3D62 ]]) @@ -5820,7 +5820,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'ijklm*') + WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR f=3D'mnopqrstu' OR a=3D62 ]]) @@ -5839,9 +5839,9 @@ test:do_test( OR b=3D1045 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR c=3D13013 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR b=3D124 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -5858,9 +5858,9 @@ test:do_test( OR b=3D1045 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR c=3D13013 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR b=3D124 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -5880,7 +5880,7 @@ test:do_test( OR b=3D421 OR b=3D803 OR c=3D4004 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') ]]) end, { -- @@ -5900,7 +5900,7 @@ test:do_test( OR b=3D421 OR b=3D803 OR c=3D4004 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') ]]) end, { -- @@ -5913,9 +5913,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D99 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -5928,9 +5928,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D99 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -5972,9 +5972,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D795 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR f=3D'jklmnopqr' - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D1056 ]]) @@ -5990,9 +5990,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D795 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR f=3D'jklmnopqr' - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D1056 ]]) @@ -6146,7 +6146,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D23 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D641 OR b=3D352 OR b=3D179 @@ -6166,7 +6166,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D23 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D641 OR b=3D352 OR b=3D179 @@ -6189,7 +6189,7 @@ test:do_test( OR b=3D1078 OR ((a BETWEEN 11 AND 13) AND a!=3D12) OR c=3D12012 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR b=3D319 OR c=3D5005 OR 1000000=3D59.0 AND d<60.0 AND d IS NOT NULL) ]]) end, { @@ -6246,8 +6246,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'cdefghijk' - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL) ]]) end, { @@ -6297,13 +6297,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D891 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR b=3D484 OR a=3D62 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') ]]) end, { -- @@ -6316,13 +6316,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D891 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR b=3D484 OR a=3D62 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') ]]) end, { -- @@ -6336,11 +6336,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D363 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR a=3D39 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) ]]) @@ -6356,11 +6356,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D363 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR a=3D39 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) ]]) @@ -6378,7 +6378,7 @@ test:do_test( WHERE c=3D30030 OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR b=3D850 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -6394,7 +6394,7 @@ test:do_test( WHERE c=3D30030 OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR b=3D850 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -6540,7 +6540,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D333 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR b=3D407 OR a=3D5 @@ -6559,7 +6559,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D333 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR b=3D407 OR a=3D5 @@ -6580,7 +6580,7 @@ test:do_test( WHERE b<0 OR b=3D352 OR b=3D517 - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR b=3D1012 OR ((a BETWEEN 11 AND 13) AND a!=3D12) @@ -6599,7 +6599,7 @@ test:do_test( WHERE b<0 OR b=3D352 OR b=3D517 - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR b=3D1012 OR ((a BETWEEN 11 AND 13) AND a!=3D12) @@ -6615,11 +6615,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c<=3D10 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR a=3D32 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR d<0.0 ]]) end, { @@ -6633,11 +6633,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c<=3D10 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR a=3D32 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR d<0.0 ]]) end, { @@ -6653,9 +6653,9 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D1045 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D26 - OR (g=3D'gfedcba' AND f GLOB 'opqrs*') + OR (g=3D'gfedcba' AND f LIKE 'opqrs%') ]]) end, { -- @@ -6670,9 +6670,9 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D1045 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D26 - OR (g=3D'gfedcba' AND f GLOB 'opqrs*') + OR (g=3D'gfedcba' AND f LIKE 'opqrs%') ]]) end, { -- @@ -6714,7 +6714,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR c=3D32032 OR b=3D289 OR ((a BETWEEN 17 AND 19) AND a!=3D18) @@ -6732,7 +6732,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR c=3D32032 OR b=3D289 OR ((a BETWEEN 17 AND 19) AND a!=3D18) @@ -6752,7 +6752,7 @@ test:do_test( WHERE ((a BETWEEN 15 AND 17) AND a!=3D16) OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR b=3D33 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -6768,7 +6768,7 @@ test:do_test( WHERE ((a BETWEEN 15 AND 17) AND a!=3D16) OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR b=3D33 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -6783,15 +6783,15 @@ test:do_test( SELECT a FROM t2 WHERE b=3D828 OR b=3D341 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D902 OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D242 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') ]]) end, { -- @@ -6806,15 +6806,15 @@ test:do_test( SELECT a FROM t3 WHERE b=3D828 OR b=3D341 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D902 OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D242 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') ]]) end, { -- @@ -6827,7 +6827,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'efghi*') + WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D982 OR b=3D781 OR ((a BETWEEN 66 AND 68) AND a!=3D67) @@ -6845,7 +6845,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'efghi*') + WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D982 OR b=3D781 OR ((a BETWEEN 66 AND 68) AND a!=3D67) @@ -6863,13 +6863,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR a=3D31 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR a=3D76 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D176 ]]) end, { @@ -6883,13 +6883,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR a=3D31 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR a=3D76 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D176 ]]) end, { @@ -6903,11 +6903,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D14 OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR f=3D'zabcdefgh' @@ -6923,11 +6923,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D14 OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR f=3D'zabcdefgh' @@ -6943,7 +6943,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR b=3D286 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D91 @@ -6960,7 +6960,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR b=3D286 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D91 @@ -6977,9 +6977,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'nopqr*') + WHERE (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR c=3D19019 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR b=3D374 ]]) end, { @@ -6993,9 +6993,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'nopqr*') + WHERE (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR c=3D19019 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR b=3D374 ]]) end, { @@ -7010,7 +7010,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE g IS NULL - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') ]]) end, { -- @@ -7024,7 +7024,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE g IS NULL - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') ]]) end, { -- @@ -7067,10 +7067,10 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D564 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D234 OR b=3D641 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) OR a=3D98 @@ -7088,10 +7088,10 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D564 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D234 OR b=3D641 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) OR a=3D98 @@ -7111,12 +7111,12 @@ test:do_test( OR b=3D44 OR b=3D539 OR c=3D11011 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D69 OR b=3D1001 OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) ]]) end, { @@ -7134,12 +7134,12 @@ test:do_test( OR b=3D44 OR b=3D539 OR c=3D11011 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D69 OR b=3D1001 OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) ]]) end, { @@ -7224,7 +7224,7 @@ test:do_test( WHERE c=3D23023 OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) OR a=3D66 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D51 OR a=3D23 OR c=3D4004 @@ -7243,7 +7243,7 @@ test:do_test( WHERE c=3D23023 OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL) OR a=3D66 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D51 OR a=3D23 OR c=3D4004 @@ -7260,7 +7260,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D36 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR a=3D80 ]]) end, { @@ -7275,7 +7275,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D36 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR a=3D80 ]]) end, { @@ -7289,7 +7289,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*') + WHERE (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR a=3D55 OR f=3D'efghijklm' @@ -7310,7 +7310,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*') + WHERE (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR a=3D55 OR f=3D'efghijklm' @@ -7333,11 +7333,11 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) OR b=3D836 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D91 OR b=3D594 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -7352,11 +7352,11 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) OR b=3D836 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D91 OR b=3D594 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -7369,8 +7369,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'yzabc*') - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'tsrqpon' AND f LIKE 'yzabc%') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) OR c=3D6006 OR ((a BETWEEN 50 AND 52) AND a!=3D51) @@ -7389,8 +7389,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'yzabc*') - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'tsrqpon' AND f LIKE 'yzabc%') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) OR c=3D6006 OR ((a BETWEEN 50 AND 52) AND a!=3D51) @@ -7415,10 +7415,10 @@ test:do_test( OR b=3D121 OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 12 AND 14) AND a!=3D13) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR b=3D660 OR b=3D792 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') ]]) end, { -- @@ -7437,10 +7437,10 @@ test:do_test( OR b=3D121 OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 12 AND 14) AND a!=3D13) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR b=3D660 OR b=3D792 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') ]]) end, { -- @@ -7456,10 +7456,10 @@ test:do_test( WHERE b=3D1089 OR b=3D495 OR b=3D157 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR f=3D'wxyzabcde' ]]) @@ -7477,10 +7477,10 @@ test:do_test( WHERE b=3D1089 OR b=3D495 OR b=3D157 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR f=3D'wxyzabcde' ]]) @@ -7497,7 +7497,7 @@ test:do_test( SELECT a FROM t2 WHERE f=3D'bcdefghij' OR ((a BETWEEN 40 AND 42) AND a!=3D41) - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR b=3D157 OR b=3D267 OR c=3D34034 @@ -7515,7 +7515,7 @@ test:do_test( SELECT a FROM t3 WHERE f=3D'bcdefghij' OR ((a BETWEEN 40 AND 42) AND a!=3D41) - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR b=3D157 OR b=3D267 OR c=3D34034 @@ -7534,7 +7534,7 @@ test:do_test( WHERE a=3D19 OR a=3D23 OR c<=3D10 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -7550,7 +7550,7 @@ test:do_test( WHERE a=3D19 OR a=3D23 OR c<=3D10 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -7567,7 +7567,7 @@ test:do_test( OR b=3D792 OR b=3D803 OR b=3D36 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -7584,7 +7584,7 @@ test:do_test( OR b=3D792 OR b=3D803 OR b=3D36 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -7597,11 +7597,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + WHERE (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR ((a BETWEEN 76 AND 78) AND a!=3D77) OR f=3D'jklmnopqr' - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR b=3D891 OR a=3D40 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) @@ -7617,11 +7617,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + WHERE (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR ((a BETWEEN 76 AND 78) AND a!=3D77) OR f=3D'jklmnopqr' - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR b=3D891 OR a=3D40 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) @@ -7644,7 +7644,7 @@ test:do_test( OR d>1e10 OR b=3D429 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR c=3D10010 OR ((a BETWEEN 83 AND 85) AND a!=3D84) ]]) @@ -7666,7 +7666,7 @@ test:do_test( OR d>1e10 OR b=3D429 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR c=3D10010 OR ((a BETWEEN 83 AND 85) AND a!=3D84) ]]) @@ -7681,14 +7681,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'defgh*') + WHERE (g=3D'xwvutsr' AND f LIKE 'defgh%') OR a=3D22 OR a=3D26 OR a=3D81 OR a=3D53 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR c=3D30030 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D82 OR b=3D594 ]]) @@ -7703,14 +7703,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'defgh*') + WHERE (g=3D'xwvutsr' AND f LIKE 'defgh%') OR a=3D22 OR a=3D26 OR a=3D81 OR a=3D53 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR c=3D30030 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D82 OR b=3D594 ]]) @@ -7727,14 +7727,14 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 34 AND 36) AND a!=3D35) OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR a=3D83 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D1092 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR b=3D25 ]]) end, { @@ -7750,14 +7750,14 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 34 AND 36) AND a!=3D35) OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR a=3D83 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D1092 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR b=3D25 ]]) end, { @@ -7773,9 +7773,9 @@ test:do_test( SELECT a FROM t2 WHERE a=3D20 OR b=3D421 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR a=3D50 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) ]]) end, { @@ -7791,9 +7791,9 @@ test:do_test( SELECT a FROM t3 WHERE a=3D20 OR b=3D421 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR a=3D50 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) ]]) end, { @@ -7808,7 +7808,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D960 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -7822,7 +7822,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D960 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -7899,7 +7899,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D957 OR ((a BETWEEN 48 AND 50) AND a!=3D49) ]]) @@ -7914,7 +7914,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D957 OR ((a BETWEEN 48 AND 50) AND a!=3D49) ]]) @@ -7961,7 +7961,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) OR b=3D11 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR ((a BETWEEN 14 AND 16) AND a!=3D15) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR a=3D99 @@ -7979,7 +7979,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) OR b=3D11 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR ((a BETWEEN 14 AND 16) AND a!=3D15) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR a=3D99 @@ -7997,12 +7997,12 @@ test:do_test( SELECT a FROM t2 WHERE f=3D'fghijklmn' OR a=3D16 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR ((a BETWEEN 60 AND 62) AND a!=3D61) OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR ((a BETWEEN 9 AND 11) AND a!=3D10) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D80 ]]) end, { @@ -8018,12 +8018,12 @@ test:do_test( SELECT a FROM t3 WHERE f=3D'fghijklmn' OR a=3D16 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR ((a BETWEEN 60 AND 62) AND a!=3D61) OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR ((a BETWEEN 9 AND 11) AND a!=3D10) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D80 ]]) end, { @@ -8037,10 +8037,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR a=3D44 OR a=3D43 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') OR b=3D25 ]]) end, { @@ -8054,10 +8054,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR a=3D44 OR a=3D43 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') OR b=3D25 ]]) end, { @@ -8134,10 +8134,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'opqrs*') + OR (g=3D'gfedcba' AND f LIKE 'opqrs%') OR b=3D1015 OR c=3D16016 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR f=3D'abcdefghi' OR b=3D605 OR a=3D63 @@ -8154,10 +8154,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'opqrs*') + OR (g=3D'gfedcba' AND f LIKE 'opqrs%') OR b=3D1015 OR c=3D16016 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR f=3D'abcdefghi' OR b=3D605 OR a=3D63 @@ -8173,7 +8173,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'yxwvuts' AND f GLOB 'bcdef*') + WHERE (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR b=3D641 OR b=3D795 @@ -8189,7 +8189,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'yxwvuts' AND f GLOB 'bcdef*') + WHERE (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR b=3D641 OR b=3D795 @@ -8281,7 +8281,7 @@ test:do_test( OR b=3D1089 OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR f IS NULL - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -8302,7 +8302,7 @@ test:do_test( OR b=3D1089 OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR f IS NULL - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -8317,15 +8317,15 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1026 OR b=3D407 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR b=3D564 OR c=3D23023 OR b=3D891 OR c=3D22022 OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -8340,15 +8340,15 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1026 OR b=3D407 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR b=3D564 OR c=3D23023 OR b=3D891 OR c=3D22022 OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -8395,7 +8395,7 @@ test:do_test( OR ((a BETWEEN 79 AND 81) AND a!=3D80) OR c=3D18018 OR b=3D792 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) @@ -8417,7 +8417,7 @@ test:do_test( OR ((a BETWEEN 79 AND 81) AND a!=3D80) OR c=3D18018 OR b=3D792 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) @@ -8437,10 +8437,10 @@ test:do_test( SELECT a FROM t2 WHERE b=3D429 OR (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR b=3D1070 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -8455,10 +8455,10 @@ test:do_test( SELECT a FROM t3 WHERE b=3D429 OR (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR b=3D1070 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -8471,7 +8471,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D572 ]]) end, { @@ -8485,7 +8485,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D572 ]]) end, { @@ -8501,7 +8501,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 62 AND 64) AND a!=3D63) OR f=3D'abcdefghi' - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') ]]) end, { -- @@ -8516,7 +8516,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 62 AND 64) AND a!=3D63) OR f=3D'abcdefghi' - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') ]]) end, { -- @@ -8562,7 +8562,7 @@ test:do_test( OR a=3D1 OR ((a BETWEEN 75 AND 77) AND a!=3D76) OR a=3D75 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) ]]) end, { @@ -8581,7 +8581,7 @@ test:do_test( OR a=3D1 OR ((a BETWEEN 75 AND 77) AND a!=3D76) OR a=3D75 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) ]]) end, { @@ -8595,9 +8595,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D231 OR a=3D87 ]]) @@ -8612,9 +8612,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D231 OR a=3D87 ]]) @@ -8630,8 +8630,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D77 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR c=3D24024 OR c=3D5005 ]]) @@ -8647,8 +8647,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D77 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR c=3D24024 OR c=3D5005 ]]) @@ -8663,13 +8663,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D682 OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) ]]) end, { @@ -8683,13 +8683,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D682 OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) ]]) end, { @@ -8707,7 +8707,7 @@ test:do_test( OR b=3D121 OR c=3D2002 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') ]]) end, { -- @@ -8724,7 +8724,7 @@ test:do_test( OR b=3D121 OR c=3D2002 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') ]]) end, { -- @@ -8740,8 +8740,8 @@ test:do_test( WHERE (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR f=3D'abcdefghi' OR b=3D267 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR a=3D82 OR a=3D54 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) @@ -8761,8 +8761,8 @@ test:do_test( WHERE (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR f=3D'abcdefghi' OR b=3D267 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR a=3D82 OR a=3D54 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) @@ -8815,9 +8815,9 @@ test:do_test( OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR (d>=3D94.0 AND d<95.0 AND d IS NOT NULL) OR 1000000 @@ -8836,9 +8836,9 @@ test:do_test( OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR (d>=3D94.0 AND d<95.0 AND d IS NOT NULL) OR 1000000 @@ -8853,7 +8853,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1001 OR b=3D168 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) ]]) end, { @@ -8869,7 +8869,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1001 OR b=3D168 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) ]]) end, { @@ -8884,8 +8884,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D51 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR b=3D330 ]]) end, { @@ -8900,8 +8900,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D51 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR b=3D330 ]]) end, { @@ -8915,13 +8915,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D704 OR a=3D62 OR f=3D'pqrstuvwx' OR b=3D495 OR c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b<0 OR b=3D597 ]]) @@ -8936,13 +8936,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D704 OR a=3D62 OR f=3D'pqrstuvwx' OR b=3D495 OR c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b<0 OR b=3D597 ]]) @@ -8992,7 +8992,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D14014 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D572 OR c=3D15015 ]]) @@ -9008,7 +9008,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D14014 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D572 OR c=3D15015 ]]) @@ -9023,9 +9023,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D850 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR ((a BETWEEN 15 AND 17) AND a!=3D16) OR b=3D88 OR f=3D'hijklmnop' @@ -9044,9 +9044,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D850 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR ((a BETWEEN 15 AND 17) AND a!=3D16) OR b=3D88 OR f=3D'hijklmnop' @@ -9073,8 +9073,8 @@ test:do_test( OR b=3D374 OR b=3D938 OR b=3D773 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') ]]) end, { -- @@ -9095,8 +9095,8 @@ test:do_test( OR b=3D374 OR b=3D938 OR b=3D773 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') ]]) end, { -- @@ -9109,7 +9109,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D146 ]]) end, { @@ -9123,7 +9123,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D146 ]]) end, { @@ -9171,7 +9171,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D399 OR b=3D1004 OR c=3D16016 @@ -9193,7 +9193,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D399 OR b=3D1004 OR c=3D16016 @@ -9222,8 +9222,8 @@ test:do_test( OR b=3D861 OR (d>=3D90.0 AND d<91.0 AND d IS NOT NULL) OR b=3D949 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') ]]) end, { -- @@ -9243,8 +9243,8 @@ test:do_test( OR b=3D861 OR (d>=3D90.0 AND d<91.0 AND d IS NOT NULL) OR b=3D949 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') ]]) end, { -- @@ -9257,7 +9257,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D83 OR c=3D26026 OR a=3D49 @@ -9276,7 +9276,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D83 OR c=3D26026 OR a=3D49 @@ -9328,7 +9328,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D451 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') ]]) end, { -- @@ -9342,7 +9342,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D451 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') ]]) end, { -- @@ -9356,7 +9356,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D47 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -9370,7 +9370,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D47 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -9384,7 +9384,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1037 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D344 OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) @@ -9401,7 +9401,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1037 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D344 OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) @@ -9419,7 +9419,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D506 OR ((a BETWEEN 20 AND 22) AND a!=3D21) - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D429 OR b=3D275 ]]) @@ -9436,7 +9436,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D506 OR ((a BETWEEN 20 AND 22) AND a!=3D21) - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D429 OR b=3D275 ]]) @@ -9458,7 +9458,7 @@ test:do_test( OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR a=3D60 OR b=3D80 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D616 ]]) end, { @@ -9479,7 +9479,7 @@ test:do_test( OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR a=3D60 OR b=3D80 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D616 ]]) end, { @@ -9521,13 +9521,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D43 OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D586 OR c=3D17017 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR a=3D87 OR b=3D968 ]]) @@ -9542,13 +9542,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D43 OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D586 OR c=3D17017 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR a=3D87 OR b=3D968 ]]) @@ -9597,8 +9597,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + WHERE (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR c>=3D34035 OR b=3D850 OR ((a BETWEEN 32 AND 34) AND a!=3D33) @@ -9620,8 +9620,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + WHERE (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR c>=3D34035 OR b=3D850 OR ((a BETWEEN 32 AND 34) AND a!=3D33) @@ -9705,7 +9705,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'nopqr*') + WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D993 ]]) @@ -9720,7 +9720,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'nopqr*') + WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%') OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D993 ]]) @@ -9739,7 +9739,7 @@ test:do_test( OR a=3D22 OR b=3D289 OR b=3D795 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D242 OR a=3D59 OR b=3D1045 @@ -9760,7 +9760,7 @@ test:do_test( OR a=3D22 OR b=3D289 OR b=3D795 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D242 OR a=3D59 OR b=3D1045 @@ -9778,9 +9778,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D245 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR c=3D3003 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) @@ -9798,9 +9798,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D245 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR c=3D3003 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) @@ -9817,15 +9817,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'jklmn*') + WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D220 OR b=3D443 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR a=3D62 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR b=3D1023 OR a=3D100 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) ]]) end, { @@ -9839,15 +9839,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'jklmn*') + WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D220 OR b=3D443 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR a=3D62 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR b=3D1023 OR a=3D100 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) ]]) end, { @@ -9863,8 +9863,8 @@ test:do_test( SELECT a FROM t2 WHERE c=3D11011 OR f=3D'tuvwxyzab' - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -9879,8 +9879,8 @@ test:do_test( SELECT a FROM t3 WHERE c=3D11011 OR f=3D'tuvwxyzab' - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -10005,15 +10005,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D443 OR b=3D33 OR b=3D762 OR b=3D575 OR c=3D16016 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR b=3D1092 ]]) end, { @@ -10027,15 +10027,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D443 OR b=3D33 OR b=3D762 OR b=3D575 OR c=3D16016 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR b=3D1092 ]]) end, { @@ -10051,14 +10051,14 @@ test:do_test( SELECT a FROM t2 WHERE b=3D806 OR b=3D872 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR f=3D'uvwxyzabc' OR b=3D748 OR b=3D586 OR ((a BETWEEN 15 AND 17) AND a!=3D16) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D891 ]]) end, { @@ -10074,14 +10074,14 @@ test:do_test( SELECT a FROM t3 WHERE b=3D806 OR b=3D872 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR f=3D'uvwxyzabc' OR b=3D748 OR b=3D586 OR ((a BETWEEN 15 AND 17) AND a!=3D16) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR ((a BETWEEN 32 AND 34) AND a!=3D33) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D891 ]]) end, { @@ -10097,8 +10097,8 @@ test:do_test( SELECT a FROM t2 WHERE b=3D693 OR f=3D'fghijklmn' - OR (g=3D'rqponml' AND f GLOB 'hijkl*') - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D96 ]]) @@ -10115,8 +10115,8 @@ test:do_test( SELECT a FROM t3 WHERE b=3D693 OR f=3D'fghijklmn' - OR (g=3D'rqponml' AND f GLOB 'hijkl*') - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D96 ]]) @@ -10131,7 +10131,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D451 OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR ((a BETWEEN 97 AND 99) AND a!=3D98) @@ -10148,7 +10148,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D451 OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR ((a BETWEEN 97 AND 99) AND a!=3D98) @@ -10165,16 +10165,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'bcdef*') + WHERE (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR a=3D75 OR b=3D960 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR b=3D616 OR b=3D330 OR ((a BETWEEN 16 AND 18) AND a!=3D17) OR a=3D26 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -10187,16 +10187,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'bcdef*') + WHERE (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR a=3D75 OR b=3D960 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR b=3D616 OR b=3D330 OR ((a BETWEEN 16 AND 18) AND a!=3D17) OR a=3D26 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -10210,7 +10210,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D762 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -10224,7 +10224,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D762 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -10310,7 +10310,7 @@ test:do_test( OR b=3D176 OR ((a BETWEEN 34 AND 36) AND a!=3D35) OR b=3D220 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR a=3D4 ]]) end, { @@ -10329,7 +10329,7 @@ test:do_test( OR b=3D176 OR ((a BETWEEN 34 AND 36) AND a!=3D35) OR b=3D220 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR a=3D4 ]]) end, { @@ -10344,7 +10344,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D29 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D979 OR b=3D275 OR ((a BETWEEN 56 AND 58) AND a!=3D57) @@ -10364,7 +10364,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D29 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D979 OR b=3D275 OR ((a BETWEEN 56 AND 58) AND a!=3D57) @@ -10384,11 +10384,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR f=3D'fghijklmn' - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR a=3D74 OR ((a BETWEEN 7 AND 9) AND a!=3D8) @@ -10405,11 +10405,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR f=3D'fghijklmn' - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR a=3D74 OR ((a BETWEEN 7 AND 9) AND a!=3D8) @@ -10426,10 +10426,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 80 AND 82) AND a!=3D81) - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR ((a BETWEEN 49 AND 51) AND a!=3D50) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') ]]) end, { -- @@ -10443,10 +10443,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 80 AND 82) AND a!=3D81) - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR ((a BETWEEN 49 AND 51) AND a!=3D50) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') ]]) end, { -- @@ -10495,11 +10495,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR c=3D23023 OR b=3D377 OR b=3D858 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -10512,11 +10512,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR c=3D23023 OR b=3D377 OR b=3D858 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -10532,13 +10532,13 @@ test:do_test( WHERE (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR b=3D322 OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'pqrst*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'fedcbaz' AND f LIKE 'pqrst%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR b=3D432 OR b=3D55 OR a=3D53 OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D25 ]]) end, { @@ -10555,13 +10555,13 @@ test:do_test( WHERE (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR b=3D322 OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'pqrst*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'fedcbaz' AND f LIKE 'pqrst%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR b=3D432 OR b=3D55 OR a=3D53 OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D25 ]]) end, { @@ -10576,7 +10576,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D484 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D616 OR c=3D5005 OR ((a BETWEEN 27 AND 29) AND a!=3D28) @@ -10593,7 +10593,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D484 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D616 OR c=3D5005 OR ((a BETWEEN 27 AND 29) AND a!=3D28) @@ -10610,11 +10610,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D916 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D1048 OR c=3D6006 OR b=3D762 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) OR b=3D751 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) @@ -10631,11 +10631,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D916 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D1048 OR c=3D6006 OR b=3D762 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) OR b=3D751 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) @@ -10656,7 +10656,7 @@ test:do_test( OR b=3D275 OR b=3D396 OR c=3D4004 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR b=3D319 OR ((a BETWEEN 83 AND 85) AND a!=3D84) OR a=3D3 @@ -10678,7 +10678,7 @@ test:do_test( OR b=3D275 OR b=3D396 OR c=3D4004 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR b=3D319 OR ((a BETWEEN 83 AND 85) AND a!=3D84) OR a=3D3 @@ -10695,16 +10695,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'lmnop*') + WHERE (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR b=3D718 OR f=3D'vwxyzabcd' OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR ((a BETWEEN 66 AND 68) AND a!=3D67) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) ]]) end, { @@ -10718,16 +10718,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'lmnop*') + WHERE (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR b=3D718 OR f=3D'vwxyzabcd' OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR ((a BETWEEN 66 AND 68) AND a!=3D67) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) ]]) end, { @@ -10920,9 +10920,9 @@ test:do_test( OR b=3D231 OR b=3D212 OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR c=3D30030 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') ]]) end, { -- @@ -10940,9 +10940,9 @@ test:do_test( OR b=3D231 OR b=3D212 OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR c=3D30030 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') ]]) end, { -- @@ -10996,8 +10996,8 @@ test:do_test( OR f=3D'vwxyzabcd' OR b=3D762 OR a=3D60 - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') ]]) end, { -- @@ -11015,8 +11015,8 @@ test:do_test( OR f=3D'vwxyzabcd' OR b=3D762 OR a=3D60 - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') ]]) end, { -- @@ -11029,14 +11029,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'ghijk*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR a=3D3 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D498 OR a=3D100 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR a=3D69 ]]) end, { @@ -11050,14 +11050,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'ghijk*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR a=3D3 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D498 OR a=3D100 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR a=3D69 ]]) end, { @@ -11071,12 +11071,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D300 OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR b=3D58 OR ((a BETWEEN 55 AND 57) AND a!=3D56) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D286 OR b=3D234 OR ((a BETWEEN 43 AND 45) AND a!=3D44) @@ -11094,12 +11094,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D300 OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR b=3D58 OR ((a BETWEEN 55 AND 57) AND a!=3D56) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D286 OR b=3D234 OR ((a BETWEEN 43 AND 45) AND a!=3D44) @@ -11121,12 +11121,12 @@ test:do_test( OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR b=3D594 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) ]]) end, { @@ -11144,12 +11144,12 @@ test:do_test( OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR b=3D594 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) ]]) end, { @@ -11164,8 +11164,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D949 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') ]]) end, { -- @@ -11179,8 +11179,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D949 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') ]]) end, { -- @@ -11195,13 +11195,13 @@ test:do_test( SELECT a FROM t2 WHERE b=3D960 OR a=3D44 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR a=3D39 OR b=3D828 OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR d<0.0 OR b=3D770 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR b=3D594 OR ((a BETWEEN 89 AND 91) AND a!=3D90) ]]) @@ -11218,13 +11218,13 @@ test:do_test( SELECT a FROM t3 WHERE b=3D960 OR a=3D44 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR a=3D39 OR b=3D828 OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR d<0.0 OR b=3D770 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR b=3D594 OR ((a BETWEEN 89 AND 91) AND a!=3D90) ]]) @@ -11278,7 +11278,7 @@ test:do_test( WHERE b=3D1081 OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D1004 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) OR b=3D660 OR b=3D957 @@ -11298,7 +11298,7 @@ test:do_test( WHERE b=3D1081 OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D1004 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) OR b=3D660 OR b=3D957 @@ -11320,9 +11320,9 @@ test:do_test( OR f=3D'yzabcdefg' OR b=3D880 OR a=3D63 - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') ]]) end, { -- @@ -11340,9 +11340,9 @@ test:do_test( OR f=3D'yzabcdefg' OR b=3D880 OR a=3D63 - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') ]]) end, { -- @@ -11357,12 +11357,12 @@ test:do_test( SELECT a FROM t2 WHERE a=3D69 OR b=3D1103 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'wxyzabcde' - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR f=3D'pqrstuvwx' - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR a=3D59 OR b=3D946 ]]) @@ -11379,12 +11379,12 @@ test:do_test( SELECT a FROM t3 WHERE a=3D69 OR b=3D1103 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'wxyzabcde' - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR f=3D'pqrstuvwx' - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR a=3D59 OR b=3D946 ]]) @@ -11400,7 +11400,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR a=3D68 OR ((a BETWEEN 14 AND 16) AND a!=3D15) ]]) @@ -11416,7 +11416,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR a=3D68 OR ((a BETWEEN 14 AND 16) AND a!=3D15) ]]) @@ -11432,7 +11432,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') ]]) end, { -- @@ -11446,7 +11446,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') ]]) end, { -- @@ -11526,12 +11526,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR c=3D14014 OR b=3D990 - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR c=3D14014 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D740 OR c=3D3003 ]]) @@ -11547,12 +11547,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR c=3D14014 OR b=3D990 - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR c=3D14014 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D740 OR c=3D3003 ]]) @@ -11640,7 +11640,7 @@ test:do_test( OR a=3D4 OR b=3D311 OR ((a BETWEEN 97 AND 99) AND a!=3D98) - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D396 ]]) end, { @@ -11663,7 +11663,7 @@ test:do_test( OR a=3D4 OR b=3D311 OR ((a BETWEEN 97 AND 99) AND a!=3D98) - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D396 ]]) end, { @@ -11679,7 +11679,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D82 OR b=3D333 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR b=3D99 OR a=3D63 OR a=3D35 @@ -11698,7 +11698,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D82 OR b=3D333 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR b=3D99 OR a=3D63 OR a=3D35 @@ -11803,9 +11803,9 @@ test:do_test( OR f=3D'hijklmnop' OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR b=3D817 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) ]]) @@ -11824,9 +11824,9 @@ test:do_test( OR f=3D'hijklmnop' OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR b=3D817 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) ]]) @@ -11841,12 +11841,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D311 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR a=3D48 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR c=3D32032 OR f=3D'opqrstuvw' OR b=3D300 @@ -11864,12 +11864,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D311 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR a=3D48 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR c=3D32032 OR f=3D'opqrstuvw' OR b=3D300 @@ -11889,7 +11889,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) OR b=3D1070 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR a=3D22 @@ -11912,7 +11912,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) OR b=3D1070 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR a=3D22 @@ -11934,7 +11934,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR a=3D21 OR b=3D1026 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -11952,7 +11952,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR a=3D21 OR b=3D1026 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -11975,7 +11975,7 @@ test:do_test( OR a=3D29 OR c=3D15015 OR a=3D87 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -11994,7 +11994,7 @@ test:do_test( OR a=3D29 OR c=3D15015 OR a=3D87 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -12042,7 +12042,7 @@ test:do_test( OR a=3D91 OR b=3D1015 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR ((a BETWEEN 91 AND 93) AND a!=3D92) ]]) end, { @@ -12061,7 +12061,7 @@ test:do_test( OR a=3D91 OR b=3D1015 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR ((a BETWEEN 91 AND 93) AND a!=3D92) ]]) end, { @@ -12076,12 +12076,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D7 - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D1015 OR b=3D839 - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR b=3D410 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR a=3D71 ]]) end, { @@ -12096,12 +12096,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D7 - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D1015 OR b=3D839 - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR b=3D410 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR a=3D71 ]]) end, { @@ -12118,12 +12118,12 @@ test:do_test( WHERE b=3D880 OR b=3D982 OR a=3D52 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR a=3D24 OR ((a BETWEEN 47 AND 49) AND a!=3D48) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -12139,12 +12139,12 @@ test:do_test( WHERE b=3D880 OR b=3D982 OR a=3D52 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR a=3D24 OR ((a BETWEEN 47 AND 49) AND a!=3D48) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') ]]) end, { -- @@ -12158,9 +12158,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -12174,9 +12174,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -12192,7 +12192,7 @@ test:do_test( WHERE f=3D'abcdefghi' OR a=3D5 OR b=3D124 - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D432 OR 1000000=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR ((a BETWEEN 63 AND 65) AND a!=3D64) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR f=3D'uvwxyzabc' ]]) end, { @@ -12293,7 +12293,7 @@ test:do_test( OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR ((a BETWEEN 63 AND 65) AND a!=3D64) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR f=3D'uvwxyzabc' ]]) end, { @@ -12308,16 +12308,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 57 AND 59) AND a!=3D58) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D564 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR b=3D77 - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D968 OR b=3D847 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -12331,16 +12331,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 57 AND 59) AND a!=3D58) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D564 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR b=3D77 - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D968 OR b=3D847 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') ]]) end, { -- @@ -12421,7 +12421,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR b=3D693 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D968 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR b=3D132 @@ -12441,7 +12441,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR b=3D693 - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR b=3D968 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR b=3D132 @@ -12496,11 +12496,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D190 - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D924 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D759 - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') ]]) end, { -- @@ -12514,11 +12514,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D190 - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D924 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D759 - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') ]]) end, { -- @@ -12576,12 +12576,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR c=3D17017 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'srqponm' AND f GLOB 'ghijk*') - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) ]]) @@ -12597,12 +12597,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR c=3D17017 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'srqponm' AND f GLOB 'ghijk*') - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) ]]) @@ -12662,9 +12662,9 @@ test:do_test( OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR b=3D300 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR a=3D41 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D135 OR b=3D605 ]]) @@ -12684,9 +12684,9 @@ test:do_test( OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR b=3D300 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR a=3D41 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D135 OR b=3D605 ]]) @@ -12701,16 +12701,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D762 OR b=3D484 OR b=3D190 OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D1023 ]]) end, { @@ -12724,16 +12724,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D762 OR b=3D484 OR b=3D190 OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D1023 ]]) end, { @@ -12747,7 +12747,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR a=3D34 OR f=3D'rstuvwxyz' OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) @@ -12764,7 +12764,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR a=3D34 OR f=3D'rstuvwxyz' OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) @@ -12783,7 +12783,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) OR b=3D1004 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR g IS NULL ]]) end, { @@ -12799,7 +12799,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) OR b=3D1004 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR g IS NULL ]]) end, { @@ -12822,8 +12822,8 @@ test:do_test( OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR a=3D44 OR a=3D23 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -12845,8 +12845,8 @@ test:do_test( OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR a=3D44 OR a=3D23 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -12864,8 +12864,8 @@ test:do_test( OR a=3D11 OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D13 OR a=3D15 OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) @@ -12887,8 +12887,8 @@ test:do_test( OR a=3D11 OR ((a BETWEEN 12 AND 14) AND a!=3D13) OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D13 OR a=3D15 OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) @@ -13019,16 +13019,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'klmno*') + WHERE (g=3D'gfedcba' AND f LIKE 'klmno%') OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR a=3D48 OR b=3D113 OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D880 OR ((a BETWEEN 85 AND 87) AND a!=3D86) OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -13041,16 +13041,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'klmno*') + WHERE (g=3D'gfedcba' AND f LIKE 'klmno%') OR ((a BETWEEN 9 AND 11) AND a!=3D10) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR a=3D48 OR b=3D113 OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR b=3D880 OR ((a BETWEEN 85 AND 87) AND a!=3D86) OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -13065,10 +13065,10 @@ test:do_test( SELECT a FROM t2 WHERE b=3D517 OR b=3D187 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR b=3D1092 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -13083,10 +13083,10 @@ test:do_test( SELECT a FROM t3 WHERE b=3D517 OR b=3D187 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR b=3D1092 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -13259,7 +13259,7 @@ test:do_test( OR a=3D30 OR c=3D3003 OR (d>=3D88.0 AND d<89.0 AND d IS NOT NULL) - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR b=3D564 OR b=3D55 OR a=3D38 @@ -13281,7 +13281,7 @@ test:do_test( OR a=3D30 OR c=3D3003 OR (d>=3D88.0 AND d<89.0 AND d IS NOT NULL) - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR b=3D564 OR b=3D55 OR a=3D38 @@ -13328,7 +13328,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D792 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') ]]) end, { -- @@ -13342,7 +13342,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D792 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') ]]) end, { -- @@ -13357,9 +13357,9 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR c=3D21021 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR f=3D'zabcdefgh' - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D781 OR a=3D64 OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) @@ -13377,9 +13377,9 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR c=3D21021 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR f=3D'zabcdefgh' - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR b=3D781 OR a=3D64 OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) @@ -13395,12 +13395,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'pqrst*') + WHERE (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR (d>=3D90.0 AND d<91.0 AND d IS NOT NULL) OR a=3D34 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR b=3D319 OR b=3D330 OR ((a BETWEEN 28 AND 30) AND a!=3D29) @@ -13416,12 +13416,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'pqrst*') + WHERE (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR (d>=3D90.0 AND d<91.0 AND d IS NOT NULL) OR a=3D34 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR b=3D319 OR b=3D330 OR ((a BETWEEN 28 AND 30) AND a!=3D29) @@ -13437,8 +13437,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D45 OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) ]]) @@ -13453,8 +13453,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D45 OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) ]]) @@ -13470,7 +13470,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D165 OR b=3D836 ]]) @@ -13486,7 +13486,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D165 OR b=3D836 ]]) @@ -13503,7 +13503,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1034 OR f=3D'vwxyzabcd' - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) ]]) end, { @@ -13519,7 +13519,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1034 OR f=3D'vwxyzabcd' - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) ]]) end, { @@ -13575,12 +13575,12 @@ test:do_test( SELECT a FROM t2 WHERE a=3D37 OR b=3D88 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR c=3D23023 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) OR a=3D56 OR ((a BETWEEN 13 AND 15) AND a!=3D14) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR f=3D'ijklmnopq' OR ((a BETWEEN 85 AND 87) AND a!=3D86) ]]) @@ -13597,12 +13597,12 @@ test:do_test( SELECT a FROM t3 WHERE a=3D37 OR b=3D88 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR c=3D23023 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) OR a=3D56 OR ((a BETWEEN 13 AND 15) AND a!=3D14) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR f=3D'ijklmnopq' OR ((a BETWEEN 85 AND 87) AND a!=3D86) ]]) @@ -13620,7 +13620,7 @@ test:do_test( WHERE (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR a=3D74 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 42 AND 44) AND a!=3D43) ]]) end, { @@ -13637,7 +13637,7 @@ test:do_test( WHERE (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR a=3D74 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 42 AND 44) AND a!=3D43) ]]) end, { @@ -13747,13 +13747,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'vwxyz*') + WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR b=3D212 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D20 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D627 ]]) end, { @@ -13767,13 +13767,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'vwxyz*') + WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR b=3D212 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D20 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D627 ]]) end, { @@ -13787,7 +13787,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*') + WHERE (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR b=3D157 OR b=3D1026 @@ -13803,7 +13803,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*') + WHERE (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR b=3D157 OR b=3D1026 @@ -13823,10 +13823,10 @@ test:do_test( OR a=3D16 OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR f=3D'zabcdefgh' - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -13843,10 +13843,10 @@ test:do_test( OR a=3D16 OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR f=3D'zabcdefgh' - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -13895,11 +13895,11 @@ test:do_test( SELECT a FROM t2 WHERE f IS NULL OR a=3D37 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR ((a BETWEEN 55 AND 57) AND a!=3D56) OR b=3D168 OR b=3D22 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D506 ]]) end, { @@ -13915,11 +13915,11 @@ test:do_test( SELECT a FROM t3 WHERE f IS NULL OR a=3D37 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR ((a BETWEEN 55 AND 57) AND a!=3D56) OR b=3D168 OR b=3D22 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D506 ]]) end, { @@ -13935,11 +13935,11 @@ test:do_test( SELECT a FROM t2 WHERE a=3D29 OR ((a BETWEEN 26 AND 28) AND a!=3D27) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D209 - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') OR b=3D146 ]]) end, { @@ -13955,11 +13955,11 @@ test:do_test( SELECT a FROM t3 WHERE a=3D29 OR ((a BETWEEN 26 AND 28) AND a!=3D27) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D209 - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') OR b=3D146 ]]) end, { @@ -14017,7 +14017,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR b=3D113 OR ((a BETWEEN 40 AND 42) AND a!=3D41) @@ -14035,7 +14035,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR b=3D113 OR ((a BETWEEN 40 AND 42) AND a!=3D41) @@ -14081,7 +14081,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'rqponml' AND f GLOB 'ijklm*') + WHERE (g=3D'rqponml' AND f LIKE 'ijklm%') OR a=3D99 OR a=3D100 OR b=3D429 @@ -14104,7 +14104,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'rqponml' AND f GLOB 'ijklm*') + WHERE (g=3D'rqponml' AND f LIKE 'ijklm%') OR a=3D99 OR a=3D100 OR b=3D429 @@ -14164,9 +14164,9 @@ test:do_test( OR c=3D6006 OR a=3D18 OR c=3D24024 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR c=3D19019 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) OR ((a BETWEEN 44 AND 46) AND a!=3D45) @@ -14187,9 +14187,9 @@ test:do_test( OR c=3D6006 OR a=3D18 OR c=3D24024 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR c=3D19019 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) OR ((a BETWEEN 44 AND 46) AND a!=3D45) @@ -14243,7 +14243,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D99 OR ((a BETWEEN 85 AND 87) AND a!=3D86) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -14258,7 +14258,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D99 OR ((a BETWEEN 85 AND 87) AND a!=3D86) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -14271,7 +14271,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*') + WHERE (f LIKE '_hijk%' AND f LIKE 'ghij%') OR ((a BETWEEN 79 AND 81) AND a!=3D80) OR b=3D715 OR ((a BETWEEN 23 AND 25) AND a!=3D24) @@ -14287,7 +14287,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*') + WHERE (f LIKE '_hijk%' AND f LIKE 'ghij%') OR ((a BETWEEN 79 AND 81) AND a!=3D80) OR b=3D715 OR ((a BETWEEN 23 AND 25) AND a!=3D24) @@ -14304,7 +14304,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR a=3D46 OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) ]]) @@ -14320,7 +14320,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR a=3D46 OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) ]]) @@ -14335,7 +14335,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'defgh*') + WHERE (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 97 AND 99) AND a!=3D98) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR b=3D1056 @@ -14352,7 +14352,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'defgh*') + WHERE (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 97 AND 99) AND a!=3D98) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR b=3D1056 @@ -14453,7 +14453,7 @@ test:do_test( OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR b=3D242 OR ((a BETWEEN 32 AND 34) AND a!=3D33) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D300 OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) @@ -14476,7 +14476,7 @@ test:do_test( OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR b=3D242 OR ((a BETWEEN 32 AND 34) AND a!=3D33) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D300 OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) @@ -14502,7 +14502,7 @@ test:do_test( OR b=3D1048 OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR c=3D19019 ]]) end, { @@ -14525,7 +14525,7 @@ test:do_test( OR b=3D1048 OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR c=3D19019 ]]) end, { @@ -14608,10 +14608,10 @@ test:do_test( OR a=3D58 OR b=3D333 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D572 OR ((a BETWEEN 50 AND 52) AND a!=3D51) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') ]]) end, { -- @@ -14631,10 +14631,10 @@ test:do_test( OR a=3D58 OR b=3D333 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D572 OR ((a BETWEEN 50 AND 52) AND a!=3D51) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') ]]) end, { -- @@ -14649,7 +14649,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1034 OR f=3D'lmnopqrst' - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') ]]) end, { -- @@ -14664,7 +14664,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1034 OR f=3D'lmnopqrst' - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') ]]) end, { -- @@ -14679,7 +14679,7 @@ test:do_test( SELECT a FROM t2 WHERE c=3D15015 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D58 OR b=3D674 OR b=3D979 @@ -14697,7 +14697,7 @@ test:do_test( SELECT a FROM t3 WHERE c=3D15015 OR (d>=3D87.0 AND d<88.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D58 OR b=3D674 OR b=3D979 @@ -14747,9 +14747,9 @@ test:do_test( OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) OR b=3D630 OR a=3D19 - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR f=3D'wxyzabcde' - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D377 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) OR a=3D77 @@ -14770,9 +14770,9 @@ test:do_test( OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) OR b=3D630 OR a=3D19 - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR f=3D'wxyzabcde' - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D377 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) OR a=3D77 @@ -14818,14 +14818,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D64 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') OR c=3D14014 OR b=3D586 OR c=3D27027 OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -14839,14 +14839,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D64 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') OR c=3D14014 OR b=3D586 OR c=3D27027 OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -14903,11 +14903,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR a=3D23 OR b=3D737 OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) @@ -14926,11 +14926,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR a=3D23 OR b=3D737 OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) @@ -14983,10 +14983,10 @@ test:do_test( SELECT a FROM t2 WHERE a=3D18 OR b=3D1059 - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D795 ]]) end, { @@ -15002,10 +15002,10 @@ test:do_test( SELECT a FROM t3 WHERE a=3D18 OR b=3D1059 - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D795 ]]) end, { @@ -15019,7 +15019,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?mnop*' AND f GLOB 'lmno*') + WHERE (f LIKE '_mnop%' AND f LIKE 'lmno%') OR a=3D93 OR a=3D11 OR f=3D'nopqrstuv' @@ -15039,7 +15039,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?mnop*' AND f GLOB 'lmno*') + WHERE (f LIKE '_mnop%' AND f LIKE 'lmno%') OR a=3D93 OR a=3D11 OR f=3D'nopqrstuv' @@ -15062,8 +15062,8 @@ test:do_test( WHERE b=3D685 OR a=3D33 OR ((a BETWEEN 40 AND 42) AND a!=3D41) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR b=3D715 @@ -15085,8 +15085,8 @@ test:do_test( WHERE b=3D685 OR a=3D33 OR ((a BETWEEN 40 AND 42) AND a!=3D41) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR b=3D715 @@ -15107,7 +15107,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D89 OR b=3D1037 - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') ]]) end, { -- @@ -15122,7 +15122,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D89 OR b=3D1037 - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') ]]) end, { -- @@ -15179,9 +15179,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D726 OR ((a BETWEEN 73 AND 75) AND a!=3D74) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) @@ -15201,9 +15201,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D726 OR ((a BETWEEN 73 AND 75) AND a!=3D74) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) @@ -15223,7 +15223,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D924 OR f=3D'lmnopqrst' OR b=3D1048 @@ -15239,7 +15239,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D924 OR f=3D'lmnopqrst' OR b=3D1048 @@ -15256,7 +15256,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D198 OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) OR ((a BETWEEN 12 AND 14) AND a!=3D13) @@ -15276,7 +15276,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D198 OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) OR ((a BETWEEN 12 AND 14) AND a!=3D13) @@ -15341,7 +15341,7 @@ test:do_test( OR b=3D630 OR a=3D55 OR c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) ]]) end, { @@ -15359,7 +15359,7 @@ test:do_test( OR b=3D630 OR a=3D55 OR c=3D26026 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) ]]) end, { @@ -15375,12 +15375,12 @@ test:do_test( SELECT a FROM t2 WHERE f=3D'uvwxyzabc' OR f=3D'xyzabcdef' - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D69 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') ]]) end, { -- @@ -15395,12 +15395,12 @@ test:do_test( SELECT a FROM t3 WHERE f=3D'uvwxyzabc' OR f=3D'xyzabcdef' - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR (d>=3D70.0 AND d<71.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D69 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') ]]) end, { -- @@ -15417,7 +15417,7 @@ test:do_test( OR b=3D454 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR b=3D179 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'qrstuvwxy' ]]) end, { @@ -15435,7 +15435,7 @@ test:do_test( OR b=3D454 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR b=3D179 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'qrstuvwxy' ]]) end, { @@ -15452,7 +15452,7 @@ test:do_test( WHERE ((a BETWEEN 6 AND 8) AND a!=3D7) OR b=3D619 OR a=3D20 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D946 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR a=3D64 @@ -15474,7 +15474,7 @@ test:do_test( WHERE ((a BETWEEN 6 AND 8) AND a!=3D7) OR b=3D619 OR a=3D20 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D946 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) OR a=3D64 @@ -15527,8 +15527,8 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR a=3D32 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR c=3D32032 ]]) end, { @@ -15544,8 +15544,8 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR a=3D32 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR c=3D32032 ]]) end, { @@ -15654,7 +15654,7 @@ test:do_test( WHERE (d>=3D32.0 AND d<33.0 AND d IS NOT NULL) OR a=3D27 OR ((a BETWEEN 55 AND 57) AND a!=3D56) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -15670,7 +15670,7 @@ test:do_test( WHERE (d>=3D32.0 AND d<33.0 AND d IS NOT NULL) OR a=3D27 OR ((a BETWEEN 55 AND 57) AND a!=3D56) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -15720,7 +15720,7 @@ test:do_test( OR b=3D561 OR b=3D352 OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR a=3D95 ]]) end, { @@ -15743,7 +15743,7 @@ test:do_test( OR b=3D561 OR b=3D352 OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR a=3D95 ]]) end, { @@ -15761,7 +15761,7 @@ test:do_test( OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR f=3D'ghijklmno' OR b=3D619 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D476 OR a=3D83 @@ -15782,7 +15782,7 @@ test:do_test( OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR f=3D'ghijklmno' OR b=3D619 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D476 OR a=3D83 @@ -15868,8 +15868,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1059 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D47 OR b=3D660 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -15887,8 +15887,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1059 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D47 OR b=3D660 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -15936,13 +15936,13 @@ test:do_test( WHERE b=3D597 OR f=3D'lmnopqrst' OR a=3D24 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR b=3D1023 OR a=3D53 OR a=3D78 OR f=3D'efghijklm' - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) ]]) end, { @@ -15959,13 +15959,13 @@ test:do_test( WHERE b=3D597 OR f=3D'lmnopqrst' OR a=3D24 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR b=3D1023 OR a=3D53 OR a=3D78 OR f=3D'efghijklm' - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) ]]) end, { @@ -16012,11 +16012,11 @@ test:do_test( WHERE f=3D'tuvwxyzab' OR b=3D388 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR b=3D957 OR b=3D663 OR b=3D847 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -16032,11 +16032,11 @@ test:do_test( WHERE f=3D'tuvwxyzab' OR b=3D388 OR ((a BETWEEN 84 AND 86) AND a!=3D85) - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR b=3D957 OR b=3D663 OR b=3D847 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -16051,7 +16051,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR a=3D56 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -16066,7 +16066,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR a=3D56 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') ]]) end, { -- @@ -16082,7 +16082,7 @@ test:do_test( WHERE c>=3D34035 OR b=3D168 OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -16098,7 +16098,7 @@ test:do_test( WHERE c>=3D34035 OR b=3D168 OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') ]]) end, { -- @@ -16144,9 +16144,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR f=3D'rstuvwxyz' - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') ]]) end, { -- @@ -16160,9 +16160,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR f=3D'rstuvwxyz' - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') ]]) end, { -- @@ -16246,7 +16246,7 @@ test:do_test( WHERE b=3D113 OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D113 - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) OR c=3D6006 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) @@ -16267,7 +16267,7 @@ test:do_test( WHERE b=3D113 OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR b=3D113 - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) OR c=3D6006 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) @@ -16285,7 +16285,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR c=3D22022 OR ((a BETWEEN 79 AND 81) AND a!=3D80) @@ -16303,7 +16303,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR c=3D22022 OR ((a BETWEEN 79 AND 81) AND a!=3D80) @@ -16322,7 +16322,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D47 OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR a=3D92 @@ -16331,7 +16331,7 @@ test:do_test( OR c=3D7007 OR a=3D93 OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') ]]) end, { -- @@ -16345,7 +16345,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D47 OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR a=3D92 @@ -16354,7 +16354,7 @@ test:do_test( OR c=3D7007 OR a=3D93 OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') ]]) end, { -- @@ -16367,11 +16367,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR a=3D13 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR c=3D29029 OR b=3D311 OR b=3D366 @@ -16389,11 +16389,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR a=3D13 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR c=3D29029 OR b=3D311 OR b=3D366 @@ -16453,12 +16453,12 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D41 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR b=3D913 ]]) end, { @@ -16474,12 +16474,12 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D41 - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR b=3D913 ]]) end, { @@ -16593,12 +16593,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D102 OR b=3D212 OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) OR b=3D487 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') ]]) end, { -- @@ -16611,12 +16611,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D102 OR b=3D212 OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) OR b=3D487 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') ]]) end, { -- @@ -16661,7 +16661,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D872 OR ((a BETWEEN 58 AND 60) AND a!=3D59) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D957 OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR a=3D67 @@ -16680,7 +16680,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D872 OR ((a BETWEEN 58 AND 60) AND a!=3D59) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D957 OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR a=3D67 @@ -16700,12 +16700,12 @@ test:do_test( WHERE b=3D66 OR b=3D102 OR b=3D396 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR ((a BETWEEN 7 AND 9) AND a!=3D8) OR b=3D759 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR f=3D'ghijklmno' - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) ]]) @@ -16723,12 +16723,12 @@ test:do_test( WHERE b=3D66 OR b=3D102 OR b=3D396 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR ((a BETWEEN 7 AND 9) AND a!=3D8) OR b=3D759 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR f=3D'ghijklmno' - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR ((a BETWEEN 90 AND 92) AND a!=3D91) OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) ]]) @@ -16744,8 +16744,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR a=3D72 OR b=3D1100 OR b=3D102 @@ -16763,8 +16763,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR a=3D72 OR b=3D1100 OR b=3D102 @@ -16878,7 +16878,7 @@ test:do_test( WHERE b=3D47 OR a=3D91 OR d>1e10 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') ]]) end, { -- @@ -16894,7 +16894,7 @@ test:do_test( WHERE b=3D47 OR a=3D91 OR d>1e10 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') ]]) end, { -- @@ -16975,13 +16975,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D619 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR c=3D11011 OR b=3D550 OR b=3D1059 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -16998,13 +16998,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D619 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR c=3D11011 OR b=3D550 OR b=3D1059 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -17021,16 +17021,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'edcbazy' AND f GLOB 'vwxyz*') + WHERE (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR a=3D78 OR a=3D27 OR b=3D792 OR b=3D946 OR c=3D22022 OR a=3D23 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D388 ]]) end, { @@ -17044,16 +17044,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'edcbazy' AND f GLOB 'vwxyz*') + WHERE (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR ((a BETWEEN 59 AND 61) AND a!=3D60) - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR a=3D78 OR a=3D27 OR b=3D792 OR b=3D946 OR c=3D22022 OR a=3D23 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D388 ]]) end, { @@ -17070,8 +17070,8 @@ test:do_test( WHERE c=3D32032 OR f IS NULL OR ((a BETWEEN 37 AND 39) AND a!=3D38) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR b=3D825 ]]) end, { @@ -17088,8 +17088,8 @@ test:do_test( WHERE c=3D32032 OR f IS NULL OR ((a BETWEEN 37 AND 39) AND a!=3D38) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR b=3D825 ]]) end, { @@ -17104,7 +17104,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D1078 @@ -17126,7 +17126,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D1078 @@ -17147,11 +17147,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'ijklm*') + WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR c=3D25025 OR b=3D550 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -17164,11 +17164,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'ijklm*') + WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR c=3D25025 OR b=3D550 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') ]]) end, { -- @@ -17183,7 +17183,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D432 OR f=3D'opqrstuvw' - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') ]]) end, { -- @@ -17198,7 +17198,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D432 OR f=3D'opqrstuvw' - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') ]]) end, { -- @@ -17213,7 +17213,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 14 AND 16) AND a!=3D15) OR b=3D847 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR b=3D583 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) @@ -17234,7 +17234,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 14 AND 16) AND a!=3D15) OR b=3D847 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR b=3D583 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) @@ -17299,7 +17299,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D586 OR d<0.0 OR c=3D9009 @@ -17315,7 +17315,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D586 OR d<0.0 OR c=3D9009 @@ -17378,7 +17378,7 @@ test:do_test( WHERE ((a BETWEEN 44 AND 46) AND a!=3D45) OR a=3D53 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D594 OR b=3D80 OR ((a BETWEEN 18 AND 20) AND a!=3D19) @@ -17399,7 +17399,7 @@ test:do_test( WHERE ((a BETWEEN 44 AND 46) AND a!=3D45) OR a=3D53 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D594 OR b=3D80 OR ((a BETWEEN 18 AND 20) AND a!=3D19) @@ -17482,9 +17482,9 @@ test:do_test( WHERE a=3D59 OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR f=3D'wxyzabcde' - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') OR a=3D70 OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR ((a BETWEEN 14 AND 16) AND a!=3D15) @@ -17503,9 +17503,9 @@ test:do_test( WHERE a=3D59 OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR f=3D'wxyzabcde' - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') OR a=3D70 OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR ((a BETWEEN 14 AND 16) AND a!=3D15) @@ -17522,7 +17522,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D69 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') ]]) end, { -- @@ -17536,7 +17536,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D69 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') ]]) end, { -- @@ -17552,8 +17552,8 @@ test:do_test( WHERE a=3D41 OR a=3D43 OR a=3D92 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') ]]) end, { -- @@ -17569,8 +17569,8 @@ test:do_test( WHERE a=3D41 OR a=3D43 OR a=3D92 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') ]]) end, { -- @@ -17617,7 +17617,7 @@ test:do_test( SELECT a FROM t2 WHERE f=3D'fghijklmn' OR f=3D'fghijklmn' - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR b=3D465 OR b=3D586 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) @@ -17639,7 +17639,7 @@ test:do_test( SELECT a FROM t3 WHERE f=3D'fghijklmn' OR f=3D'fghijklmn' - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR b=3D465 OR b=3D586 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) @@ -17660,10 +17660,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D814 OR a=3D20 OR 1000000=3D34.0 AND d<35.0 AND d IS NOT NULL) - OR (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D814 OR a=3D20 OR 1000000=3D65.0 AND d<66.0 AND d IS NOT NULL) OR c<=3D10 OR a=3D92 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR b=3D1026 ]]) @@ -17723,14 +17723,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) OR c=3D1001 OR b=3D484 OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) OR c<=3D10 OR a=3D92 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR b=3D1026 ]]) @@ -17746,13 +17746,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D54 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR b=3D993 OR c=3D22022 OR a=3D68 OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR a=3D62 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D1015 ]]) end, { @@ -17767,13 +17767,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D54 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR b=3D993 OR c=3D22022 OR a=3D68 OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR a=3D62 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') OR b=3D1015 ]]) end, { @@ -17789,7 +17789,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D319 OR a=3D50 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -17808,7 +17808,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D319 OR a=3D50 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -17889,14 +17889,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR b=3D407 OR b=3D454 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) OR b=3D627 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -17909,14 +17909,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR b=3D407 OR b=3D454 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) OR b=3D627 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -17933,7 +17933,7 @@ test:do_test( OR c=3D34034 OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR a=3D67 ]]) end, { @@ -17951,7 +17951,7 @@ test:do_test( OR c=3D34034 OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR a=3D67 ]]) end, { @@ -17970,7 +17970,7 @@ test:do_test( OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') ]]) end, { -- @@ -17988,7 +17988,7 @@ test:do_test( OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') ]]) end, { -- @@ -18006,12 +18006,12 @@ test:do_test( OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) OR b=3D201 OR a=3D99 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR ((a BETWEEN 36 AND 38) AND a!=3D37) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR b=3D946 OR b=3D993 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') ]]) end, { -- @@ -18029,12 +18029,12 @@ test:do_test( OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) OR b=3D201 OR a=3D99 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR ((a BETWEEN 36 AND 38) AND a!=3D37) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR b=3D946 OR b=3D993 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') ]]) end, { -- @@ -18048,7 +18048,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D806 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR b=3D916 OR b<0 @@ -18070,7 +18070,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D806 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR b=3D916 OR b<0 @@ -18093,11 +18093,11 @@ test:do_test( SELECT a FROM t2 WHERE b=3D836 OR d>1e10 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR f=3D'pqrstuvwx' OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR f=3D'abcdefghi' - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR a=3D33 OR ((a BETWEEN 19 AND 21) AND a!=3D20) OR ((a BETWEEN 88 AND 90) AND a!=3D89) @@ -18116,11 +18116,11 @@ test:do_test( SELECT a FROM t3 WHERE b=3D836 OR d>1e10 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR f=3D'pqrstuvwx' OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR f=3D'abcdefghi' - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR a=3D33 OR ((a BETWEEN 19 AND 21) AND a!=3D20) OR ((a BETWEEN 88 AND 90) AND a!=3D89) @@ -18140,10 +18140,10 @@ test:do_test( WHERE a=3D48 OR a=3D92 OR a=3D1 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR b=3D905 OR ((a BETWEEN 51 AND 53) AND a!=3D52) ]]) @@ -18161,10 +18161,10 @@ test:do_test( WHERE a=3D48 OR a=3D92 OR a=3D1 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR b=3D905 OR ((a BETWEEN 51 AND 53) AND a!=3D52) ]]) @@ -18215,12 +18215,12 @@ test:do_test( SELECT a FROM t2 WHERE b=3D740 OR b=3D564 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D11 OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR b=3D322 OR (d>=3D6.0 AND d<7.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR b=3D902 OR c>=3D34035 ]]) @@ -18237,12 +18237,12 @@ test:do_test( SELECT a FROM t3 WHERE b=3D740 OR b=3D564 - OR (g=3D'onmlkji' AND f GLOB 'zabcd*') + OR (g=3D'onmlkji' AND f LIKE 'zabcd%') OR a=3D11 OR ((a BETWEEN 44 AND 46) AND a!=3D45) OR b=3D322 OR (d>=3D6.0 AND d<7.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR b=3D902 OR c>=3D34035 ]]) @@ -18264,7 +18264,7 @@ test:do_test( OR a=3D48 OR b=3D927 OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR f=3D'abcdefghi' OR b=3D91 OR b=3D55 @@ -18287,7 +18287,7 @@ test:do_test( OR a=3D48 OR b=3D927 OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') OR f=3D'abcdefghi' OR b=3D91 OR b=3D55 @@ -18303,7 +18303,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'srqponm' AND f GLOB 'efghi*') + WHERE (g=3D'srqponm' AND f LIKE 'efghi%') OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR a=3D20 OR b=3D11 @@ -18319,7 +18319,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'srqponm' AND f GLOB 'efghi*') + WHERE (g=3D'srqponm' AND f LIKE 'efghi%') OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR a=3D20 OR b=3D11 @@ -18338,7 +18338,7 @@ test:do_test( WHERE (d>=3D27.0 AND d<28.0 AND d IS NOT NULL) OR b=3D55 OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR a=3D50 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) @@ -18358,7 +18358,7 @@ test:do_test( WHERE (d>=3D27.0 AND d<28.0 AND d IS NOT NULL) OR b=3D55 OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR a=3D50 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) @@ -18375,8 +18375,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') ]]) end, { -- @@ -18389,8 +18389,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'rqponml' AND f GLOB 'ijklm*') - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (g=3D'rqponml' AND f LIKE 'ijklm%') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') ]]) end, { -- @@ -18405,7 +18405,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D704 OR b=3D924 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR b=3D113 ]]) end, { @@ -18421,7 +18421,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D704 OR b=3D924 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR b=3D113 ]]) end, { @@ -18503,11 +18503,11 @@ test:do_test( OR b=3D726 OR f=3D'abcdefghi' OR b=3D179 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D539 OR b=3D66 OR ((a BETWEEN 86 AND 88) AND a!=3D87) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -18524,11 +18524,11 @@ test:do_test( OR b=3D726 OR f=3D'abcdefghi' OR b=3D179 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D539 OR b=3D66 OR ((a BETWEEN 86 AND 88) AND a!=3D87) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -18573,11 +18573,11 @@ test:do_test( OR b=3D682 OR b=3D443 OR b=3D836 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) OR b=3D110 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') ]]) end, { -- @@ -18594,11 +18594,11 @@ test:do_test( OR b=3D682 OR b=3D443 OR b=3D836 - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR ((a BETWEEN 51 AND 53) AND a!=3D52) OR b=3D110 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') ]]) end, { -- @@ -18611,15 +18611,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*') + WHERE (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D462 OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR a=3D22 OR b=3D594 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') ]]) end, { -- @@ -18632,15 +18632,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*') + WHERE (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D462 OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR a=3D22 OR b=3D594 - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') ]]) end, { -- @@ -18653,11 +18653,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR f=3D'vwxyzabcd' - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR a=3D37 OR a=3D50 ]]) @@ -18672,11 +18672,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR f=3D'vwxyzabcd' - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR a=3D37 OR a=3D50 ]]) @@ -18693,10 +18693,10 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 83 AND 85) AND a!=3D84) OR b=3D784 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR b=3D825 OR a=3D80 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR b=3D531 OR a=3D100 @@ -18714,10 +18714,10 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 83 AND 85) AND a!=3D84) OR b=3D784 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR b=3D825 OR a=3D80 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR b=3D531 OR a=3D100 @@ -18733,7 +18733,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D220 OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) ]]) @@ -18748,7 +18748,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR b=3D220 OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) ]]) @@ -18797,9 +18797,9 @@ test:do_test( OR b=3D894 OR c=3D28028 OR b=3D905 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR b=3D1037 ]]) end, { @@ -18817,9 +18817,9 @@ test:do_test( OR b=3D894 OR c=3D28028 OR b=3D905 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR b=3D1037 ]]) end, { @@ -18863,9 +18863,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D861 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -18878,9 +18878,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'mnopq*') + WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D861 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -18894,13 +18894,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D704 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR b=3D25 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D487 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 77 AND 79) AND a!=3D78) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) @@ -18917,13 +18917,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D704 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR b=3D25 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D487 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 77 AND 79) AND a!=3D78) OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) @@ -18940,16 +18940,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D19 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D674 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D355 OR ((a BETWEEN 72 AND 74) AND a!=3D73) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c=3D28028 OR b=3D649 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') ]]) end, { -- @@ -18963,16 +18963,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D19 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D674 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D355 OR ((a BETWEEN 72 AND 74) AND a!=3D73) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c=3D28028 OR b=3D649 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') ]]) end, { -- @@ -19020,7 +19020,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D135 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) end, { @@ -19035,7 +19035,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D135 - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) end, { @@ -19049,8 +19049,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -19063,8 +19063,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'ijklm*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -19077,7 +19077,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'wxyza*') + WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%') OR f=3D'ghijklmno' ]]) end, { @@ -19091,7 +19091,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'wxyza*') + WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%') OR f=3D'ghijklmno' ]]) end, { @@ -19187,7 +19187,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*') + WHERE (f LIKE '_lmno%' AND f LIKE 'klmn%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR b=3D99 OR a=3D54 @@ -19203,7 +19203,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*') + WHERE (f LIKE '_lmno%' AND f LIKE 'klmn%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR b=3D99 OR a=3D54 @@ -19220,7 +19220,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D300 - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') OR b=3D319 OR f=3D'fghijklmn' OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) @@ -19238,7 +19238,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D300 - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') OR b=3D319 OR f=3D'fghijklmn' OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) @@ -19263,7 +19263,7 @@ test:do_test( OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR b=3D748 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -19284,7 +19284,7 @@ test:do_test( OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR b=3D748 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -19333,10 +19333,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'wxyza*') + WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) OR b=3D110 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR c=3D26026 OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) OR b=3D850 @@ -19353,10 +19353,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'wxyza*') + WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) OR b=3D110 - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR c=3D26026 OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) OR b=3D850 @@ -19375,9 +19375,9 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) OR ((a BETWEEN 1 AND 3) AND a!=3D2) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') OR b=3D135 OR a=3D28 OR ((a BETWEEN 1 AND 3) AND a!=3D2) @@ -19396,9 +19396,9 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 74 AND 76) AND a!=3D75) OR ((a BETWEEN 1 AND 3) AND a!=3D2) - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'mlkjihg' AND f GLOB 'klmno*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'mlkjihg' AND f LIKE 'klmno%') OR b=3D135 OR a=3D28 OR ((a BETWEEN 1 AND 3) AND a!=3D2) @@ -19485,9 +19485,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR a=3D52 ]]) end, { @@ -19501,9 +19501,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR a=3D52 ]]) end, { @@ -19517,7 +19517,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'abcde*') + WHERE (g=3D'ihgfedc' AND f LIKE 'abcde%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR a=3D86 OR c=3D33033 @@ -19535,7 +19535,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'abcde*') + WHERE (g=3D'ihgfedc' AND f LIKE 'abcde%') OR ((a BETWEEN 2 AND 4) AND a!=3D3) OR a=3D86 OR c=3D33033 @@ -19557,7 +19557,7 @@ test:do_test( OR b=3D517 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR f=3D'defghijkl' OR b=3D707 OR c>=3D34035 @@ -19580,7 +19580,7 @@ test:do_test( OR b=3D517 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR ((a BETWEEN 67 AND 69) AND a!=3D68) - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR f=3D'defghijkl' OR b=3D707 OR c>=3D34035 @@ -19602,7 +19602,7 @@ test:do_test( WHERE (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR b=3D209 OR b=3D399 - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -19618,7 +19618,7 @@ test:do_test( WHERE (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR b=3D209 OR b=3D399 - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -19632,11 +19632,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D597 OR a=3D95 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D432 OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) ]]) @@ -19652,11 +19652,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D597 OR a=3D95 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D432 OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) ]]) @@ -19680,7 +19680,7 @@ test:do_test( OR c=3D21021 OR b=3D330 OR b=3D231 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') ]]) end, { -- @@ -19702,7 +19702,7 @@ test:do_test( OR c=3D21021 OR b=3D330 OR b=3D231 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') ]]) end, { -- @@ -19715,7 +19715,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'fghij*') + WHERE (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR f IS NULL ]]) @@ -19730,7 +19730,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'fghij*') + WHERE (g=3D'hgfedcb' AND f LIKE 'fghij%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR f IS NULL ]]) @@ -19746,9 +19746,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 99 AND 101) AND a!=3D100) - OR (g=3D'fedcbaz' AND f GLOB 'pqrst*') + OR (g=3D'fedcbaz' AND f LIKE 'pqrst%') OR 1000000 @@ -19796,7 +19796,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D165 OR a=3D69 - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') ]]) end, { -- @@ -19809,13 +19809,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'defgh*') - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D784 OR b=3D583 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D814 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D619 OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) ]]) @@ -19830,13 +19830,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'defgh*') - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D784 OR b=3D583 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D814 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D619 OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) ]]) @@ -19853,7 +19853,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D86 OR b=3D484 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR b=3D418 OR b=3D509 OR a=3D42 @@ -19876,7 +19876,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D86 OR b=3D484 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR b=3D418 OR b=3D509 OR a=3D42 @@ -20007,7 +20007,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') OR c=3D5005 OR ((a BETWEEN 50 AND 52) AND a!=3D51) OR a=3D93 @@ -20015,7 +20015,7 @@ test:do_test( OR b=3D619 OR b=3D234 OR b=3D55 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) ]]) end, { @@ -20029,7 +20029,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') OR c=3D5005 OR ((a BETWEEN 50 AND 52) AND a!=3D51) OR a=3D93 @@ -20037,7 +20037,7 @@ test:do_test( OR b=3D619 OR b=3D234 OR b=3D55 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) ]]) end, { @@ -20053,11 +20053,11 @@ test:do_test( SELECT a FROM t2 WHERE b=3D355 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D806 OR b=3D462 OR b=3D531 - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR f=3D'mnopqrstu' ]]) end, { @@ -20073,11 +20073,11 @@ test:do_test( SELECT a FROM t3 WHERE b=3D355 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D806 OR b=3D462 OR b=3D531 - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR f=3D'mnopqrstu' ]]) end, { @@ -20093,9 +20093,9 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 60 AND 62) AND a!=3D61) OR f=3D'pqrstuvwx' - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D495 - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR a=3D75 ]]) end, { @@ -20111,9 +20111,9 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 60 AND 62) AND a!=3D61) OR f=3D'pqrstuvwx' - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') OR b=3D495 - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR a=3D75 ]]) end, { @@ -20127,8 +20127,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D748 OR b=3D913 OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) @@ -20145,8 +20145,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D748 OR b=3D913 OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) @@ -20167,7 +20167,7 @@ test:do_test( OR b=3D902 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR b=3D168 - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR a=3D50 OR f=3D'uvwxyzabc' OR b=3D836 @@ -20189,7 +20189,7 @@ test:do_test( OR b=3D902 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR b=3D168 - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR a=3D50 OR f=3D'uvwxyzabc' OR b=3D836 @@ -20243,13 +20243,13 @@ test:do_test( SELECT a FROM t2 WHERE b=3D814 OR c=3D30030 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR a=3D16 OR b=3D1048 OR b=3D113 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR b=3D729 OR a=3D54 ]]) @@ -20266,13 +20266,13 @@ test:do_test( SELECT a FROM t3 WHERE b=3D814 OR c=3D30030 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR a=3D16 OR b=3D1048 OR b=3D113 OR (d>=3D61.0 AND d<62.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR b=3D729 OR a=3D54 ]]) @@ -20288,15 +20288,15 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D399 - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D814 OR c=3D22022 OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR a=3D1 OR b=3D311 OR b=3D121 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D198 ]]) end, { @@ -20311,15 +20311,15 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D399 - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D814 OR c=3D22022 OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR a=3D1 OR b=3D311 OR b=3D121 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D198 ]]) end, { @@ -20403,7 +20403,7 @@ test:do_test( OR a=3D22 OR b=3D594 OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -20424,7 +20424,7 @@ test:do_test( OR a=3D22 OR b=3D594 OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') ]]) end, { -- @@ -20443,7 +20443,7 @@ test:do_test( OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'mnopqrstu' OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR b=3D902 @@ -20465,7 +20465,7 @@ test:do_test( OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR f=3D'mnopqrstu' OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR b=3D902 @@ -20481,8 +20481,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'onmlkji' AND f GLOB 'zabcd*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D13 ]]) end, { @@ -20496,8 +20496,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'onmlkji' AND f GLOB 'zabcd*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR a=3D13 ]]) end, { @@ -20511,11 +20511,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D410 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D418 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) end, { @@ -20529,11 +20529,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'edcbazy' AND f GLOB 'wxyza*') + WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%') OR b=3D410 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D418 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) ]]) end, { @@ -20552,8 +20552,8 @@ test:do_test( OR a=3D56 OR a=3D46 OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D41.0 AND d<42.0 AND d IS NOT NULL) ]]) end, { @@ -20572,8 +20572,8 @@ test:do_test( OR a=3D56 OR a=3D46 OR (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D41.0 AND d<42.0 AND d IS NOT NULL) ]]) end, { @@ -20633,7 +20633,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D539 OR b=3D418 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D759 ]]) end, { @@ -20649,7 +20649,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D539 OR b=3D418 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR b=3D759 ]]) end, { @@ -20664,8 +20664,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1001 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR c=3D34034 OR a=3D84 ]]) @@ -20681,8 +20681,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1001 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR c=3D34034 OR a=3D84 ]]) @@ -20702,7 +20702,7 @@ test:do_test( OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR b=3D322 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR c=3D34034 @@ -20724,7 +20724,7 @@ test:do_test( OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR b=3D322 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR c=3D34034 @@ -20742,12 +20742,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D13013 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D47 OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D828 ]]) end, { @@ -20762,12 +20762,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D13013 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D47 OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D828 ]]) end, { @@ -20783,7 +20783,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D451 OR b=3D836 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') ]]) end, { -- @@ -20798,7 +20798,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D451 OR b=3D836 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') ]]) end, { -- @@ -20848,7 +20848,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'tuvwxyzab' - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') ]]) end, { -- @@ -20862,7 +20862,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'tuvwxyzab' - OR (g=3D'nmlkjih' AND f GLOB 'efghi*') + OR (g=3D'nmlkjih' AND f LIKE 'efghi%') ]]) end, { -- @@ -20881,7 +20881,7 @@ test:do_test( OR d<0.0 OR b=3D982 OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR ((a BETWEEN 97 AND 99) AND a!=3D98) OR e IS NULL OR c=3D32032 @@ -20904,7 +20904,7 @@ test:do_test( OR d<0.0 OR b=3D982 OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR ((a BETWEEN 97 AND 99) AND a!=3D98) OR e IS NULL OR c=3D32032 @@ -20922,9 +20922,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D62 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -20938,9 +20938,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D62 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -20994,8 +20994,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D44 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') ]]) end, { -- @@ -21009,8 +21009,8 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D44 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') ]]) end, { -- @@ -21026,7 +21026,7 @@ test:do_test( WHERE b=3D883 OR b=3D311 OR b=3D880 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR a=3D88 OR b=3D154 @@ -21048,7 +21048,7 @@ test:do_test( WHERE b=3D883 OR b=3D311 OR b=3D880 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR a=3D88 OR b=3D154 @@ -21067,12 +21067,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'onmlkji' AND f GLOB 'xyzab*') + WHERE (g=3D'onmlkji' AND f LIKE 'xyzab%') OR a=3D10 OR b=3D190 OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR b=3D385 OR a=3D82 @@ -21090,12 +21090,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'onmlkji' AND f GLOB 'xyzab*') + WHERE (g=3D'onmlkji' AND f LIKE 'xyzab%') OR a=3D10 OR b=3D190 OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 67 AND 69) AND a!=3D68) OR b=3D385 OR a=3D82 @@ -21151,7 +21151,7 @@ test:do_test( OR a=3D49 OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR c=3D33033 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR g IS NULL OR b=3D220 @@ -21174,7 +21174,7 @@ test:do_test( OR a=3D49 OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR c=3D33033 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL) OR g IS NULL OR b=3D220 @@ -21191,7 +21191,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D212 OR b=3D418 OR ((a BETWEEN 31 AND 33) AND a!=3D32) @@ -21207,7 +21207,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D212 OR b=3D418 OR ((a BETWEEN 31 AND 33) AND a!=3D32) @@ -21283,8 +21283,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'jklmn*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -21297,8 +21297,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'jklmn*') - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -21356,7 +21356,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D18018 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR b=3D410 OR b=3D858 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) @@ -21373,7 +21373,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D18018 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR b=3D410 OR b=3D858 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) @@ -21389,7 +21389,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D781 ]]) end, { @@ -21403,7 +21403,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D781 ]]) end, { @@ -21420,10 +21420,10 @@ test:do_test( WHERE b=3D1070 OR ((a BETWEEN 50 AND 52) AND a!=3D51) OR a=3D54 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR a=3D9 OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) ]]) end, { @@ -21440,10 +21440,10 @@ test:do_test( WHERE b=3D1070 OR ((a BETWEEN 50 AND 52) AND a!=3D51) OR a=3D54 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR a=3D9 OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) ]]) end, { @@ -21460,8 +21460,8 @@ test:do_test( WHERE a=3D55 OR a=3D62 OR a=3D63 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR ((a BETWEEN 99 AND 101) AND a!=3D100) ]]) end, { @@ -21478,8 +21478,8 @@ test:do_test( WHERE a=3D55 OR a=3D62 OR a=3D63 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR ((a BETWEEN 99 AND 101) AND a!=3D100) ]]) end, { @@ -21527,9 +21527,9 @@ test:do_test( SELECT a FROM t2 WHERE b=3D553 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D583 OR a=3D56 ]]) @@ -21546,9 +21546,9 @@ test:do_test( SELECT a FROM t3 WHERE b=3D553 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D583 OR a=3D56 ]]) @@ -21565,7 +21565,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D83 OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR a=3D1 OR ((a BETWEEN 17 AND 19) AND a!=3D18) OR ((a BETWEEN 49 AND 51) AND a!=3D50) @@ -21584,7 +21584,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D83 OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR a=3D1 OR ((a BETWEEN 17 AND 19) AND a!=3D18) OR ((a BETWEEN 49 AND 51) AND a!=3D50) @@ -21635,7 +21635,7 @@ test:do_test( OR a=3D92 OR a=3D63 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -21652,7 +21652,7 @@ test:do_test( OR a=3D92 OR a=3D63 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -21668,7 +21668,7 @@ test:do_test( WHERE b=3D440 OR f=3D'vwxyzabcd' OR b=3D190 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR b=3D88 OR b=3D58 @@ -21687,7 +21687,7 @@ test:do_test( WHERE b=3D440 OR f=3D'vwxyzabcd' OR b=3D190 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) OR b=3D88 OR b=3D58 @@ -21707,7 +21707,7 @@ test:do_test( OR c=3D24024 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR b=3D1001 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR d>1e10 OR b=3D531 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) @@ -21728,7 +21728,7 @@ test:do_test( OR c=3D24024 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) OR b=3D1001 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR d>1e10 OR b=3D531 OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) @@ -21774,7 +21774,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR ((a BETWEEN 91 AND 93) AND a!=3D92) @@ -21795,7 +21795,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR ((a BETWEEN 91 AND 93) AND a!=3D92) @@ -21820,8 +21820,8 @@ test:do_test( OR b=3D806 OR b=3D605 OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') ]]) end, { -- @@ -21839,8 +21839,8 @@ test:do_test( OR b=3D806 OR b=3D605 OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') ]]) end, { -- @@ -21856,9 +21856,9 @@ test:do_test( WHERE ((a BETWEEN 84 AND 86) AND a!=3D85) OR b=3D572 OR c=3D10010 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D29 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') ]]) end, { -- @@ -21874,9 +21874,9 @@ test:do_test( WHERE ((a BETWEEN 84 AND 86) AND a!=3D85) OR b=3D572 OR c=3D10010 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D29 - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') ]]) end, { -- @@ -21962,9 +21962,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D5005 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR b=3D143 OR a=3D68 OR a=3D77 @@ -21982,9 +21982,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D5005 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR b=3D143 OR a=3D68 OR a=3D77 @@ -22002,10 +22002,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR ((a BETWEEN 76 AND 78) AND a!=3D77) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D99 OR ((a BETWEEN 12 AND 14) AND a!=3D13) ]]) @@ -22021,10 +22021,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'ghijk*') + OR (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR ((a BETWEEN 76 AND 78) AND a!=3D77) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D99 OR ((a BETWEEN 12 AND 14) AND a!=3D13) ]]) @@ -22039,12 +22039,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'opqrs*') + WHERE (g=3D'qponmlk' AND f LIKE 'opqrs%') OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR b=3D971 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -22057,12 +22057,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'opqrs*') + WHERE (g=3D'qponmlk' AND f LIKE 'opqrs%') OR ((a BETWEEN 88 AND 90) AND a!=3D89) OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR b=3D971 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -22075,12 +22075,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*') + WHERE (f LIKE '_lmno%' AND f LIKE 'klmn%') OR b=3D806 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D1015 OR ((a BETWEEN 68 AND 70) AND a!=3D69) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -22093,12 +22093,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*') + WHERE (f LIKE '_lmno%' AND f LIKE 'klmn%') OR b=3D806 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR b=3D1015 OR ((a BETWEEN 68 AND 70) AND a!=3D69) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') ]]) end, { -- @@ -22119,7 +22119,7 @@ test:do_test( OR a=3D26 OR b=3D1048 OR b=3D561 - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 55 AND 57) AND a!=3D56) OR a=3D56 ]]) @@ -22142,7 +22142,7 @@ test:do_test( OR a=3D26 OR b=3D1048 OR b=3D561 - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 55 AND 57) AND a!=3D56) OR a=3D56 ]]) @@ -22165,7 +22165,7 @@ test:do_test( OR b=3D113 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) OR b=3D385 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -22186,7 +22186,7 @@ test:do_test( OR b=3D113 OR (d>=3D16.0 AND d<17.0 AND d IS NOT NULL) OR b=3D385 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -22204,7 +22204,7 @@ test:do_test( OR b=3D674 OR b=3D825 OR b=3D704 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR a=3D76 @@ -22227,7 +22227,7 @@ test:do_test( OR b=3D674 OR b=3D825 OR b=3D704 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR a=3D76 @@ -22246,7 +22246,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D869 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') ]]) end, { -- @@ -22260,7 +22260,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D869 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') ]]) end, { -- @@ -22303,12 +22303,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'rqponml' AND f GLOB 'hijkl*') - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'rqponml' AND f LIKE 'hijkl%') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D8 OR a=3D72 OR ((a BETWEEN 95 AND 97) AND a!=3D96) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -22321,12 +22321,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'rqponml' AND f GLOB 'hijkl*') - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'rqponml' AND f LIKE 'hijkl%') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D8 OR a=3D72 OR ((a BETWEEN 95 AND 97) AND a!=3D96) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -22342,7 +22342,7 @@ test:do_test( WHERE a=3D20 OR ((a BETWEEN 74 AND 76) AND a!=3D75) OR b=3D341 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D814 OR b=3D1026 OR a=3D14 @@ -22364,7 +22364,7 @@ test:do_test( WHERE a=3D20 OR ((a BETWEEN 74 AND 76) AND a!=3D75) OR b=3D341 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D814 OR b=3D1026 OR a=3D14 @@ -22387,8 +22387,8 @@ test:do_test( OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR b=3D839 OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR c=3D7007 ]]) end, { @@ -22406,8 +22406,8 @@ test:do_test( OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR b=3D839 OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR c=3D7007 ]]) end, { @@ -22421,7 +22421,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR a=3D21 OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) @@ -22443,7 +22443,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR a=3D21 OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) @@ -22469,11 +22469,11 @@ test:do_test( OR f=3D'bcdefghij' OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D762 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -22490,11 +22490,11 @@ test:do_test( OR f=3D'bcdefghij' OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D762 OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -22574,7 +22574,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D1067 OR b=3D231 @@ -22595,7 +22595,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D1067 OR b=3D231 @@ -22620,7 +22620,7 @@ test:do_test( OR b=3D396 OR b=3D1059 OR a=3D69 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D440 OR b=3D825 ]]) @@ -22640,7 +22640,7 @@ test:do_test( OR b=3D396 OR b=3D1059 OR a=3D69 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR b=3D440 OR b=3D825 ]]) @@ -22658,7 +22658,7 @@ test:do_test( WHERE (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) OR b=3D308 OR c<=3D10 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR f=3D'ghijklmno' OR b=3D289 OR a=3D5 @@ -22680,7 +22680,7 @@ test:do_test( WHERE (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) OR b=3D308 OR c<=3D10 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR f=3D'ghijklmno' OR b=3D289 OR a=3D5 @@ -22703,9 +22703,9 @@ test:do_test( OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR b=3D993 OR ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D663 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D869 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR b=3D121 @@ -22725,9 +22725,9 @@ test:do_test( OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR b=3D993 OR ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR b=3D663 - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D869 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR b=3D121 @@ -22743,9 +22743,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D770 ]]) end, { @@ -22759,9 +22759,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D770 ]]) end, { @@ -22776,10 +22776,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 80 AND 82) AND a!=3D81) - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -22793,10 +22793,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 80 AND 82) AND a!=3D81) - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -22855,16 +22855,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'onmlkji' AND f GLOB 'zabcd*') + WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%') OR b=3D1092 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR a=3D77 OR a=3D63 OR b=3D762 OR b=3D894 OR b=3D685 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') ]]) end, { -- @@ -22877,16 +22877,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'onmlkji' AND f GLOB 'zabcd*') + WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%') OR b=3D1092 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR a=3D77 OR a=3D63 OR b=3D762 OR b=3D894 OR b=3D685 - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') ]]) end, { -- @@ -22899,7 +22899,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'klmno*') + WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%') OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR b=3D231 ]]) @@ -22914,7 +22914,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'klmno*') + WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%') OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR b=3D231 ]]) @@ -22930,7 +22930,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D828 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) ]]) end, { @@ -22945,7 +22945,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D828 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) ]]) end, { @@ -22959,13 +22959,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*') + WHERE (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D520 OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR a=3D21 ]]) end, { @@ -22979,13 +22979,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*') + WHERE (f LIKE '_opqr%' AND f LIKE 'nopq%') OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D520 OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR a=3D21 ]]) end, { @@ -23000,7 +23000,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D553 - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR b=3D1034 OR b=3D418 OR a=3D57 @@ -23019,7 +23019,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D553 - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR b=3D1034 OR b=3D418 OR a=3D57 @@ -23038,9 +23038,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D43 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D418 - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR b=3D594 OR a=3D21 @@ -23060,9 +23060,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D43 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') OR b=3D418 - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR b=3D594 OR a=3D21 @@ -23082,7 +23082,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D671 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) ]]) end, { @@ -23097,7 +23097,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D671 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) ]]) end, { @@ -23148,7 +23148,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D806 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR b=3D275 @@ -23166,7 +23166,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D806 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR b=3D275 @@ -23184,12 +23184,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D24024 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D429 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR b=3D110 OR a=3D39 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') ]]) end, { -- @@ -23203,12 +23203,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D24024 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D429 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR b=3D110 OR a=3D39 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') ]]) end, { -- @@ -23287,7 +23287,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D509 OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D718 OR a=3D4 OR ((a BETWEEN 56 AND 58) AND a!=3D57) @@ -23307,7 +23307,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D509 OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (g=3D'vutsrqp' AND f GLOB 'nopqr*') + OR (g=3D'vutsrqp' AND f LIKE 'nopqr%') OR b=3D718 OR a=3D4 OR ((a BETWEEN 56 AND 58) AND a!=3D57) @@ -23325,7 +23325,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D1026 OR a=3D93 OR c=3D18018 @@ -23341,7 +23341,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D1026 OR a=3D93 OR c=3D18018 @@ -23422,11 +23422,11 @@ test:do_test( WHERE b=3D990 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR b=3D531 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR f=3D'qrstuvwxy' ]]) end, { @@ -23443,11 +23443,11 @@ test:do_test( WHERE b=3D990 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR b=3D531 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR f=3D'qrstuvwxy' ]]) end, { @@ -23462,9 +23462,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D60 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR b=3D627 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR b=3D883 @@ -23484,9 +23484,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D60 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR b=3D627 - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR b=3D883 @@ -23572,13 +23572,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D28 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D69 OR ((a BETWEEN 85 AND 87) AND a!=3D86) OR b=3D781 OR a=3D64 OR b=3D91 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR a=3D16 OR b=3D278 OR a=3D26 @@ -23595,13 +23595,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D28 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D69 OR ((a BETWEEN 85 AND 87) AND a!=3D86) OR b=3D781 OR a=3D64 OR b=3D91 - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR a=3D16 OR b=3D278 OR a=3D26 @@ -23710,7 +23710,7 @@ test:do_test( WHERE f=3D'yzabcdefg' OR ((a BETWEEN 48 AND 50) AND a!=3D49) OR a=3D100 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR a=3D62 OR a=3D67 OR b=3D605 @@ -23733,7 +23733,7 @@ test:do_test( WHERE f=3D'yzabcdefg' OR ((a BETWEEN 48 AND 50) AND a!=3D49) OR a=3D100 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR a=3D62 OR a=3D67 OR b=3D605 @@ -23787,9 +23787,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') OR b=3D751 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR a=3D67 OR b=3D102 @@ -23805,9 +23805,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*') + WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%') OR b=3D751 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR a=3D67 OR b=3D102 @@ -23862,14 +23862,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D2002 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D33 OR b=3D817 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) ]]) end, { @@ -23884,14 +23884,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D2002 - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR ((a BETWEEN 41 AND 43) AND a!=3D42) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D33 OR b=3D817 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) ]]) end, { @@ -23905,8 +23905,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + WHERE (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR a=3D80 OR a=3D53 OR a=3D62 @@ -23926,8 +23926,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + WHERE (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR a=3D80 OR a=3D53 OR a=3D62 @@ -23951,7 +23951,7 @@ test:do_test( OR b=3D652 OR a=3D72 OR b=3D209 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR a=3D38 OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR d>1e10 @@ -23971,7 +23971,7 @@ test:do_test( OR b=3D652 OR a=3D72 OR b=3D209 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR a=3D38 OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR d>1e10 @@ -24016,11 +24016,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D179 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR b=3D509 OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR f=3D'bcdefghij' ]]) end, { @@ -24035,11 +24035,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D179 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR b=3D509 OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR (d>=3D49.0 AND d<50.0 AND d IS NOT NULL) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR f=3D'bcdefghij' ]]) end, { @@ -24149,13 +24149,13 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR b=3D421 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D704 OR a=3D90 OR a=3D78 OR 1000000=3D80.0 AND d<81.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) ]]) end, { @@ -24171,13 +24171,13 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR b=3D421 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D704 OR a=3D90 OR a=3D78 OR 1000000=3D80.0 AND d<81.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) ]]) end, { @@ -24191,7 +24191,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'pqrst*') + WHERE (g=3D'fedcbaz' AND f LIKE 'pqrst%') OR ((a BETWEEN 93 AND 95) AND a!=3D94) ]]) end, { @@ -24205,7 +24205,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'pqrst*') + WHERE (g=3D'fedcbaz' AND f LIKE 'pqrst%') OR ((a BETWEEN 93 AND 95) AND a!=3D94) ]]) end, { @@ -24226,7 +24226,7 @@ test:do_test( OR ((a BETWEEN 25 AND 27) AND a!=3D26) OR e IS NULL OR a=3D48 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -24246,7 +24246,7 @@ test:do_test( OR ((a BETWEEN 25 AND 27) AND a!=3D26) OR e IS NULL OR a=3D48 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -24292,7 +24292,7 @@ test:do_test( WHERE b=3D275 OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) OR f=3D'ijklmnopq' ]]) @@ -24310,7 +24310,7 @@ test:do_test( WHERE b=3D275 OR ((a BETWEEN 57 AND 59) AND a!=3D58) OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) OR f=3D'ijklmnopq' ]]) @@ -24360,7 +24360,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'zabcdefgh' - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR a=3D54 OR b=3D770 OR ((a BETWEEN 96 AND 98) AND a!=3D97) @@ -24380,7 +24380,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'zabcdefgh' - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR a=3D54 OR b=3D770 OR ((a BETWEEN 96 AND 98) AND a!=3D97) @@ -24446,7 +24446,7 @@ test:do_test( WHERE b=3D223 OR a=3D14 OR ((a BETWEEN 74 AND 76) AND a!=3D75) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR b=3D539 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -24467,7 +24467,7 @@ test:do_test( WHERE b=3D223 OR a=3D14 OR ((a BETWEEN 74 AND 76) AND a!=3D75) - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR b=3D539 OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -24486,7 +24486,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D99 - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D73 OR a=3D56 OR b=3D253 @@ -24504,7 +24504,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D99 - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D73 OR a=3D56 OR b=3D253 @@ -24524,8 +24524,8 @@ test:do_test( WHERE b=3D927 OR b=3D300 OR b=3D223 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D154 OR b=3D759 ]]) @@ -24543,8 +24543,8 @@ test:do_test( WHERE b=3D927 OR b=3D300 OR b=3D223 - OR (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D154 OR b=3D759 ]]) @@ -24562,7 +24562,7 @@ test:do_test( WHERE b=3D242 OR b=3D905 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR a=3D24 OR ((a BETWEEN 67 AND 69) AND a!=3D68) @@ -24584,7 +24584,7 @@ test:do_test( WHERE b=3D242 OR b=3D905 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'ijklm*') + OR (g=3D'hgfedcb' AND f LIKE 'ijklm%') OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR a=3D24 OR ((a BETWEEN 67 AND 69) AND a!=3D68) @@ -24606,10 +24606,10 @@ test:do_test( WHERE b=3D190 OR a=3D72 OR b=3D377 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) OR b=3D476 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') ]]) end, { -- @@ -24625,10 +24625,10 @@ test:do_test( WHERE b=3D190 OR a=3D72 OR b=3D377 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) OR b=3D476 - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') ]]) end, { -- @@ -24644,12 +24644,12 @@ test:do_test( WHERE b=3D245 OR b=3D638 OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR f=3D'opqrstuvw' OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR b=3D817 OR a=3D85 - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') ]]) end, { -- @@ -24665,12 +24665,12 @@ test:do_test( WHERE b=3D245 OR b=3D638 OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR f=3D'opqrstuvw' OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR b=3D817 OR a=3D85 - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') ]]) end, { -- @@ -24749,9 +24749,9 @@ test:do_test( OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) OR c<=3D10 OR ((a BETWEEN 75 AND 77) AND a!=3D76) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D553 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR b=3D1045 ]]) end, { @@ -24769,9 +24769,9 @@ test:do_test( OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) OR c<=3D10 OR ((a BETWEEN 75 AND 77) AND a!=3D76) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D553 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR b=3D1045 ]]) end, { @@ -24788,12 +24788,12 @@ test:do_test( WHERE b=3D440 OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR ((a BETWEEN 44 AND 46) AND a!=3D45) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D89 OR c=3D18018 OR b=3D154 OR b=3D506 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR a=3D78 OR b=3D751 ]]) @@ -24811,12 +24811,12 @@ test:do_test( WHERE b=3D440 OR ((a BETWEEN 3 AND 5) AND a!=3D4) OR ((a BETWEEN 44 AND 46) AND a!=3D45) - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D89 OR c=3D18018 OR b=3D154 OR b=3D506 - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR a=3D78 OR b=3D751 ]]) @@ -24832,13 +24832,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D407 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR b=3D209 OR b=3D814 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR a=3D44 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) OR b=3D1092 ]]) @@ -24854,13 +24854,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D407 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR b=3D209 OR b=3D814 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR a=3D44 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) OR b=3D1092 ]]) @@ -25002,10 +25002,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D27 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR b=3D121 OR ((a BETWEEN 7 AND 9) AND a!=3D8) - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D67 OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR c=3D1001 @@ -25024,10 +25024,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D27 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR b=3D121 OR ((a BETWEEN 7 AND 9) AND a!=3D8) - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D67 OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR c=3D1001 @@ -25046,7 +25046,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D99 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) @@ -25063,7 +25063,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D99 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D98.0 AND d<99.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) @@ -25083,9 +25083,9 @@ test:do_test( OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR b=3D355 OR b=3D814 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR a=3D81 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D542 OR b=3D795 ]]) @@ -25104,9 +25104,9 @@ test:do_test( OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR b=3D355 OR b=3D814 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR a=3D81 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D542 OR b=3D795 ]]) @@ -25124,10 +25124,10 @@ test:do_test( WHERE (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR b=3D363 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D619 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR a=3D73 ]]) end, { @@ -25144,10 +25144,10 @@ test:do_test( WHERE (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR b=3D363 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR ((a BETWEEN 64 AND 66) AND a!=3D65) OR b=3D619 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') OR a=3D73 ]]) end, { @@ -25163,9 +25163,9 @@ test:do_test( SELECT a FROM t2 WHERE b=3D935 OR a=3D42 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D330 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -25180,9 +25180,9 @@ test:do_test( SELECT a FROM t3 WHERE b=3D935 OR a=3D42 - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D330 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -25201,7 +25201,7 @@ test:do_test( OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) OR a=3D64 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR a=3D89 ]]) end, { @@ -25221,7 +25221,7 @@ test:do_test( OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) OR a=3D64 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR a=3D89 ]]) end, { @@ -25240,9 +25240,9 @@ test:do_test( OR b=3D663 OR c=3D17017 OR b=3D561 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D495 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR b=3D352 OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) @@ -25262,9 +25262,9 @@ test:do_test( OR b=3D663 OR c=3D17017 OR b=3D561 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR b=3D495 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR b=3D352 OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) @@ -25280,7 +25280,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR f=3D'klmnopqrs' OR f=3D'lmnopqrst' ]]) @@ -25296,7 +25296,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D100.0 AND d<101.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') OR f=3D'klmnopqrs' OR f=3D'lmnopqrst' ]]) @@ -25342,16 +25342,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D36 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR b=3D682 OR ((a BETWEEN 53 AND 55) AND a!=3D54) OR b=3D91 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR c=3D12012 OR b=3D267 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -25365,16 +25365,16 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D36 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 18 AND 20) AND a!=3D19) OR b=3D682 OR ((a BETWEEN 53 AND 55) AND a!=3D54) OR b=3D91 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR c=3D12012 OR b=3D267 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') ]]) end, { -- @@ -25390,12 +25390,12 @@ test:do_test( WHERE b=3D594 OR f=3D'hijklmnop' OR ((a BETWEEN 65 AND 67) AND a!=3D66) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D707 OR b=3D363 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D157 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') ]]) end, { -- @@ -25411,12 +25411,12 @@ test:do_test( WHERE b=3D594 OR f=3D'hijklmnop' OR ((a BETWEEN 65 AND 67) AND a!=3D66) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D707 OR b=3D363 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D157 - OR (g=3D'tsrqpon' AND f GLOB 'yzabc*') + OR (g=3D'tsrqpon' AND f LIKE 'yzabc%') ]]) end, { -- @@ -25473,7 +25473,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'defgh*') + WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D674 OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR c=3D3003 @@ -25492,7 +25492,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'defgh*') + WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%') OR b=3D674 OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR c=3D3003 @@ -25554,7 +25554,7 @@ test:do_test( OR b=3D707 OR f=3D'vwxyzabcd' OR b=3D286 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D693 OR ((a BETWEEN 6 AND 8) AND a!=3D7) ]]) @@ -25576,7 +25576,7 @@ test:do_test( OR b=3D707 OR f=3D'vwxyzabcd' OR b=3D286 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D693 OR ((a BETWEEN 6 AND 8) AND a!=3D7) ]]) @@ -25596,8 +25596,8 @@ test:do_test( OR a=3D52 OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) OR d<0.0 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D168 OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'uvwxyzabc' @@ -25619,8 +25619,8 @@ test:do_test( OR a=3D52 OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) OR d<0.0 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D168 OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'uvwxyzabc' @@ -25638,12 +25638,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 4 AND 6) AND a!=3D5) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR f=3D'rstuvwxyz' - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D14 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) ]]) @@ -25659,12 +25659,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 4 AND 6) AND a!=3D5) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR f=3D'rstuvwxyz' - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR a=3D14 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) ]]) @@ -25681,9 +25681,9 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 13 AND 15) AND a!=3D14) OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR f=3D'mnopqrstu' - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR a=3D38 OR c=3D26026 @@ -25701,9 +25701,9 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 13 AND 15) AND a!=3D14) OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR f=3D'mnopqrstu' - OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*') + OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR a=3D38 OR c=3D26026 @@ -25719,11 +25719,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D7 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) ]]) end, { @@ -25737,11 +25737,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D7 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) ]]) end, { @@ -25759,8 +25759,8 @@ test:do_test( OR b=3D938 OR b=3D484 OR b=3D652 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR f=3D'opqrstuvw' ]]) end, { @@ -25778,8 +25778,8 @@ test:do_test( OR b=3D938 OR b=3D484 OR b=3D652 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR f=3D'opqrstuvw' ]]) end, { @@ -25835,12 +25835,12 @@ test:do_test( SELECT a FROM t2 WHERE a=3D25 OR ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR b=3D443 OR b=3D564 - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D531 OR b=3D1081 OR a=3D96 @@ -25858,12 +25858,12 @@ test:do_test( SELECT a FROM t3 WHERE a=3D25 OR ((a BETWEEN 43 AND 45) AND a!=3D44) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) OR b=3D443 OR b=3D564 - OR (g=3D'kjihgfe' AND f GLOB 'rstuv*') + OR (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D531 OR b=3D1081 OR a=3D96 @@ -25880,7 +25880,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D36 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') ]]) end, { -- @@ -25894,7 +25894,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D36 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') ]]) end, { -- @@ -25907,7 +25907,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'stuvw*') + WHERE (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR b=3D531 OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) @@ -25923,7 +25923,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'stuvw*') + WHERE (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR b=3D531 OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) @@ -25975,8 +25975,8 @@ test:do_test( OR b=3D718 OR a=3D18 OR a=3D3 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR c=3D28028 ]]) end, { @@ -25998,8 +25998,8 @@ test:do_test( OR b=3D718 OR a=3D18 OR a=3D3 - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR c=3D28028 ]]) end, { @@ -26062,7 +26062,7 @@ test:do_test( OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) ]]) end, { @@ -26081,7 +26081,7 @@ test:do_test( OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL) OR ((a BETWEEN 30 AND 32) AND a!=3D31) OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) ]]) end, { @@ -26095,7 +26095,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D883 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR b=3D938 @@ -26115,7 +26115,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'ijklm*') + WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D883 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR b=3D938 @@ -26167,7 +26167,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'abcde*') + WHERE (g=3D'tsrqpon' AND f LIKE 'abcde%') OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR ((a BETWEEN 74 AND 76) AND a!=3D75) @@ -26185,7 +26185,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'abcde*') + WHERE (g=3D'tsrqpon' AND f LIKE 'abcde%') OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR ((a BETWEEN 74 AND 76) AND a!=3D75) @@ -26271,12 +26271,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') - OR (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR f=3D'lmnopqrst' OR ((a BETWEEN 11 AND 13) AND a!=3D12) OR b=3D872 @@ -26294,12 +26294,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*') - OR (g=3D'srqponm' AND f GLOB 'efghi*') - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') - OR (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + WHERE (f LIKE '_abcd%' AND f LIKE 'zabc%') + OR (g=3D'srqponm' AND f LIKE 'efghi%') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR f=3D'lmnopqrst' OR ((a BETWEEN 11 AND 13) AND a!=3D12) OR b=3D872 @@ -26319,14 +26319,14 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D20 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR b=3D1004 OR b=3D77 OR b=3D927 OR a=3D99 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -26341,14 +26341,14 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 71 AND 73) AND a!=3D72) OR a=3D20 - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR b=3D1004 OR b=3D77 OR b=3D927 OR a=3D99 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -26394,7 +26394,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D572 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -26408,7 +26408,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D572 - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -26424,8 +26424,8 @@ test:do_test( WHERE (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 54 AND 56) AND a!=3D55) OR f=3D'lmnopqrst' - OR (f GLOB '?lmno*' AND f GLOB 'klmn*') - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (f LIKE '_lmno%' AND f LIKE 'klmn%') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR a=3D23 OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) ]]) @@ -26443,8 +26443,8 @@ test:do_test( WHERE (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 54 AND 56) AND a!=3D55) OR f=3D'lmnopqrst' - OR (f GLOB '?lmno*' AND f GLOB 'klmn*') - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (f LIKE '_lmno%' AND f LIKE 'klmn%') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR a=3D23 OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) ]]) @@ -26463,13 +26463,13 @@ test:do_test( OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D605 OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR b=3D759 - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR a=3D40 OR f=3D'ghijklmno' - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') ]]) end, { -- @@ -26486,13 +26486,13 @@ test:do_test( OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D605 OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') OR b=3D759 - OR (f GLOB '?zabc*' AND f GLOB 'yzab*') + OR (f LIKE '_zabc%' AND f LIKE 'yzab%') OR ((a BETWEEN 38 AND 40) AND a!=3D39) OR a=3D40 OR f=3D'ghijklmno' - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') ]]) end, { -- @@ -26601,7 +26601,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'efghi*') + WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%') OR a=3D34 OR ((a BETWEEN 6 AND 8) AND a!=3D7) OR (d>=3D75.0 AND d<76.0 AND d IS NOT NULL) @@ -26619,7 +26619,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'efghi*') + WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%') OR a=3D34 OR ((a BETWEEN 6 AND 8) AND a!=3D7) OR (d>=3D75.0 AND d<76.0 AND d IS NOT NULL) @@ -26637,16 +26637,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR a=3D52 OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'ghijklmno' - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D319 OR a=3D34 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR f=3D'hijklmnop' ]]) end, { @@ -26660,16 +26660,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR a=3D52 OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D24.0 AND d<25.0 AND d IS NOT NULL) OR f=3D'ghijklmno' - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D319 OR a=3D34 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR f=3D'hijklmnop' ]]) end, { @@ -26683,7 +26683,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR a=3D47 @@ -26699,7 +26699,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'pqrst*') + WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%') OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR a=3D47 @@ -26781,11 +26781,11 @@ test:do_test( SELECT a FROM t2 WHERE c=3D31031 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D256 OR ((a BETWEEN 77 AND 79) AND a!=3D78) - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D715 OR b=3D212 OR b=3D99 @@ -26804,11 +26804,11 @@ test:do_test( SELECT a FROM t3 WHERE c=3D31031 OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR ((a BETWEEN 66 AND 68) AND a!=3D67) OR b=3D256 OR ((a BETWEEN 77 AND 79) AND a!=3D78) - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D715 OR b=3D212 OR b=3D99 @@ -26899,7 +26899,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) ]]) end, { @@ -26913,7 +26913,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR ((a BETWEEN 62 AND 64) AND a!=3D63) ]]) end, { @@ -26929,11 +26929,11 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 43 AND 45) AND a!=3D44) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR a=3D43 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) OR b=3D729 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') ]]) end, { -- @@ -26948,11 +26948,11 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 43 AND 45) AND a!=3D44) OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR a=3D43 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) OR b=3D729 - OR (g=3D'vutsrqp' AND f GLOB 'opqrs*') + OR (g=3D'vutsrqp' AND f LIKE 'opqrs%') ]]) end, { -- @@ -26972,7 +26972,7 @@ test:do_test( OR c=3D8008 OR f=3D'opqrstuvw' OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -26992,7 +26992,7 @@ test:do_test( OR c=3D8008 OR f=3D'opqrstuvw' OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') ]]) end, { -- @@ -27008,9 +27008,9 @@ test:do_test( WHERE ((a BETWEEN 40 AND 42) AND a!=3D41) OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR c<=3D10 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR a=3D35 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D1089 OR a=3D73 OR b=3D737 @@ -27031,9 +27031,9 @@ test:do_test( WHERE ((a BETWEEN 40 AND 42) AND a!=3D41) OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL) OR c<=3D10 - OR (g=3D'srqponm' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR a=3D35 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D1089 OR a=3D73 OR b=3D737 @@ -27053,7 +27053,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 0 AND 2) AND a!=3D1) OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D762 OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR a=3D80 @@ -27071,7 +27071,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 0 AND 2) AND a!=3D1) OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D762 OR ((a BETWEEN 39 AND 41) AND a!=3D40) OR a=3D80 @@ -27092,10 +27092,10 @@ test:do_test( OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR b=3D979 OR a=3D36 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR a=3D55 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') ]]) end, { -- @@ -27113,10 +27113,10 @@ test:do_test( OR ((a BETWEEN 80 AND 82) AND a!=3D81) OR b=3D979 OR a=3D36 - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) OR a=3D55 - OR (g=3D'fedcbaz' AND f GLOB 'rstuv*') + OR (g=3D'fedcbaz' AND f LIKE 'rstuv%') ]]) end, { -- @@ -27131,8 +27131,8 @@ test:do_test( SELECT a FROM t2 WHERE a=3D75 OR a=3D61 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -27147,8 +27147,8 @@ test:do_test( SELECT a FROM t3 WHERE a=3D75 OR a=3D61 - OR (g=3D'onmlkji' AND f GLOB 'abcde*') - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') ]]) end, { -- @@ -27162,7 +27162,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1004 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR a=3D56 ]]) @@ -27178,7 +27178,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1004 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR a=3D56 ]]) @@ -27194,13 +27194,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D93 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR a=3D83 OR b=3D828 OR b=3D454 OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D924 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') OR a=3D50 OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) ]]) @@ -27216,13 +27216,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D93 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR a=3D83 OR b=3D828 OR b=3D454 OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D924 - OR (g=3D'lkjihgf' AND f GLOB 'opqrs*') + OR (g=3D'lkjihgf' AND f LIKE 'opqrs%') OR a=3D50 OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) ]]) @@ -27269,7 +27269,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D55 OR a=3D65 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -27284,7 +27284,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D55 OR a=3D65 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -27300,7 +27300,7 @@ test:do_test( WHERE ((a BETWEEN 72 AND 74) AND a!=3D73) OR b=3D605 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR f=3D'ijklmnopq' OR ((a BETWEEN 86 AND 88) AND a!=3D87) @@ -27322,7 +27322,7 @@ test:do_test( WHERE ((a BETWEEN 72 AND 74) AND a!=3D73) OR b=3D605 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR f=3D'ijklmnopq' OR ((a BETWEEN 86 AND 88) AND a!=3D87) @@ -27342,7 +27342,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D476 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR b=3D982 OR a=3D43 OR b=3D355 @@ -27359,7 +27359,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D476 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR b=3D982 OR a=3D43 OR b=3D355 @@ -27377,8 +27377,8 @@ test:do_test( SELECT a FROM t2 WHERE a=3D85 OR b=3D718 - OR (g=3D'fedcbaz' AND f GLOB 'pqrst*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (g=3D'fedcbaz' AND f LIKE 'pqrst%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) ]]) end, { @@ -27394,8 +27394,8 @@ test:do_test( SELECT a FROM t3 WHERE a=3D85 OR b=3D718 - OR (g=3D'fedcbaz' AND f GLOB 'pqrst*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (g=3D'fedcbaz' AND f LIKE 'pqrst%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) ]]) end, { @@ -27515,12 +27515,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D465 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D37 OR b=3D1056 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR b=3D1023 ]]) @@ -27535,12 +27535,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*') + WHERE (f LIKE '_rstu%' AND f LIKE 'qrst%') OR b=3D465 OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D37 OR b=3D1056 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR b=3D1023 ]]) @@ -27557,7 +27557,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D76 OR a=3D8 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D495 OR b=3D663 OR a=3D98 @@ -27576,7 +27576,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D76 OR a=3D8 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') OR b=3D495 OR b=3D663 OR a=3D98 @@ -27595,7 +27595,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1081 OR b=3D542 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D828 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) @@ -27615,7 +27615,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1081 OR b=3D542 - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D828 OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL) @@ -27745,9 +27745,9 @@ test:do_test( SELECT a FROM t2 WHERE b=3D880 OR b=3D696 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR b=3D308 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) ]]) end, { @@ -27763,9 +27763,9 @@ test:do_test( SELECT a FROM t3 WHERE b=3D880 OR b=3D696 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR b=3D308 - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR ((a BETWEEN 96 AND 98) AND a!=3D97) ]]) end, { @@ -27779,7 +27779,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR a=3D24 OR f IS NULL OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) @@ -27798,7 +27798,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR a=3D24 OR f IS NULL OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) @@ -27819,7 +27819,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D94 OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D792 OR a=3D77 OR a=3D26 @@ -27839,7 +27839,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D94 OR (d>=3D74.0 AND d<75.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D792 OR a=3D77 OR a=3D26 @@ -27935,11 +27935,11 @@ test:do_test( OR c=3D19019 OR a=3D42 OR b=3D938 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -27958,11 +27958,11 @@ test:do_test( OR c=3D19019 OR a=3D42 OR b=3D938 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') ]]) end, { -- @@ -27977,7 +27977,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D179 OR a=3D50 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') ]]) end, { -- @@ -27992,7 +27992,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D179 OR a=3D50 - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') ]]) end, { -- @@ -28005,12 +28005,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'vutsrqp' AND f GLOB 'rstuv*') + WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR f=3D'xyzabcdef' OR ((a BETWEEN 49 AND 51) AND a!=3D50) OR b=3D575 OR b=3D385 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D46 OR b=3D220 @@ -28027,12 +28027,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'vutsrqp' AND f GLOB 'rstuv*') + WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR f=3D'xyzabcdef' OR ((a BETWEEN 49 AND 51) AND a!=3D50) OR b=3D575 OR b=3D385 - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR ((a BETWEEN 63 AND 65) AND a!=3D64) OR a=3D46 OR b=3D220 @@ -28055,7 +28055,7 @@ test:do_test( OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) OR c=3D31031 OR b=3D869 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D245 OR a=3D92 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) @@ -28078,7 +28078,7 @@ test:do_test( OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) OR c=3D31031 OR b=3D869 - OR (g=3D'jihgfed' AND f GLOB 'zabcd*') + OR (g=3D'jihgfed' AND f LIKE 'zabcd%') OR b=3D245 OR a=3D92 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) @@ -28099,8 +28099,8 @@ test:do_test( OR c=3D28028 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR ((a BETWEEN 17 AND 19) AND a!=3D18) OR c=3D9009 OR a=3D17 @@ -28121,8 +28121,8 @@ test:do_test( OR c=3D28028 OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') - OR (g=3D'mlkjihg' AND f GLOB 'jklmn*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') + OR (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR ((a BETWEEN 17 AND 19) AND a!=3D18) OR c=3D9009 OR a=3D17 @@ -28141,7 +28141,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) OR b=3D762 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR f=3D'tuvwxyzab' OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 31 AND 33) AND a!=3D32) @@ -28161,7 +28161,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) OR b=3D762 - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR f=3D'tuvwxyzab' OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) OR ((a BETWEEN 31 AND 33) AND a!=3D32) @@ -28219,7 +28219,7 @@ test:do_test( OR a=3D14 OR c=3D16016 OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR f=3D'jklmnopqr' OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) @@ -28240,7 +28240,7 @@ test:do_test( OR a=3D14 OR c=3D16016 OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR f=3D'jklmnopqr' OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) @@ -28258,12 +28258,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D949 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR c<=3D10 OR a=3D14 OR b=3D608 - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) OR b=3D121 OR b=3D333 @@ -28281,12 +28281,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D949 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') OR c<=3D10 OR a=3D14 OR b=3D608 - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) OR b=3D121 OR b=3D333 @@ -28303,7 +28303,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D355 OR b=3D627 OR b=3D1001 @@ -28321,7 +28321,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'rstuv*') + WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%') OR b=3D355 OR b=3D627 OR b=3D1001 @@ -28339,7 +28339,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) ]]) end, { @@ -28353,7 +28353,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'efghi*') + WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%') OR (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) ]]) end, { @@ -28370,11 +28370,11 @@ test:do_test( WHERE b=3D685 OR a=3D14 OR b=3D990 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR f=3D'efghijklm' OR c=3D1001 OR b=3D784 - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) ]]) end, { @@ -28391,11 +28391,11 @@ test:do_test( WHERE b=3D685 OR a=3D14 OR b=3D990 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR f=3D'efghijklm' OR c=3D1001 OR b=3D784 - OR (g=3D'srqponm' AND f GLOB 'ghijk*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) ]]) end, { @@ -28410,7 +28410,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D54 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR c=3D26026 OR ((a BETWEEN 97 AND 99) AND a!=3D98) ]]) @@ -28426,7 +28426,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D54 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR c=3D26026 OR ((a BETWEEN 97 AND 99) AND a!=3D98) ]]) @@ -28441,13 +28441,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'ghijk*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR c=3D24024 OR a=3D98 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR a=3D5 OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR f=3D'pqrstuvwx' OR f=3D'bcdefghij' OR b=3D1001 @@ -28464,13 +28464,13 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'ghijk*') + WHERE (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR c=3D24024 OR a=3D98 - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR a=3D5 OR ((a BETWEEN 31 AND 33) AND a!=3D32) - OR (g=3D'rqponml' AND f GLOB 'klmno*') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR f=3D'pqrstuvwx' OR f=3D'bcdefghij' OR b=3D1001 @@ -28488,11 +28488,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D781 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR f=3D'lmnopqrst' OR a=3D39 OR a=3D100 @@ -28510,11 +28510,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D781 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR f=3D'lmnopqrst' OR a=3D39 OR a=3D100 @@ -28533,11 +28533,11 @@ test:do_test( SELECT a FROM t2 WHERE c=3D4004 OR b=3D718 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D50 OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR b=3D363 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR b=3D1023 ]]) end, { @@ -28553,11 +28553,11 @@ test:do_test( SELECT a FROM t3 WHERE c=3D4004 OR b=3D718 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR a=3D50 OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) OR b=3D363 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') OR b=3D1023 ]]) end, { @@ -28576,8 +28576,8 @@ test:do_test( OR b=3D473 OR ((a BETWEEN 43 AND 45) AND a!=3D44) OR b=3D586 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -28595,8 +28595,8 @@ test:do_test( OR b=3D473 OR ((a BETWEEN 43 AND 45) AND a!=3D44) OR b=3D586 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') - OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') + OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%') ]]) end, { -- @@ -28609,7 +28609,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?ijkl*' AND f GLOB 'hijk*') + WHERE (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) ]]) @@ -28624,7 +28624,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?ijkl*' AND f GLOB 'hijk*') + WHERE (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL) ]]) @@ -28639,11 +28639,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 76 AND 78) AND a!=3D77) OR a=3D47 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) OR f=3D'lmnopqrst' ]]) @@ -28658,11 +28658,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR ((a BETWEEN 76 AND 78) AND a!=3D77) OR a=3D47 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') - OR (g=3D'lkjihgf' AND f GLOB 'lmnop*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') + OR (g=3D'lkjihgf' AND f LIKE 'lmnop%') OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) OR f=3D'lmnopqrst' ]]) @@ -28680,7 +28680,7 @@ test:do_test( WHERE c>=3D34035 OR a=3D29 OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR f=3D'abcdefghi' OR b=3D993 OR ((a BETWEEN 52 AND 54) AND a!=3D53) @@ -28700,7 +28700,7 @@ test:do_test( WHERE c>=3D34035 OR a=3D29 OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*') + OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%') OR f=3D'abcdefghi' OR b=3D993 OR ((a BETWEEN 52 AND 54) AND a!=3D53) @@ -28878,7 +28878,7 @@ test:do_test( WHERE ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D1045 OR c=3D27027 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') ]]) end, { -- @@ -28894,7 +28894,7 @@ test:do_test( WHERE ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D1045 OR c=3D27027 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') ]]) end, { -- @@ -28910,7 +28910,7 @@ test:do_test( WHERE a=3D87 OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D487 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -28926,7 +28926,7 @@ test:do_test( WHERE a=3D87 OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL) OR b=3D487 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') ]]) end, { -- @@ -29018,10 +29018,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D220 - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D363 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR ((a BETWEEN 10 AND 12) AND a!=3D11) ]]) @@ -29037,10 +29037,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D220 - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D363 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'defgh*') + OR (g=3D'nmlkjih' AND f LIKE 'defgh%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR ((a BETWEEN 10 AND 12) AND a!=3D11) ]]) @@ -29096,8 +29096,8 @@ test:do_test( WHERE b=3D1059 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR b=3D960 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D894 OR c=3D2002 ]]) @@ -29115,8 +29115,8 @@ test:do_test( WHERE b=3D1059 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR b=3D960 - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR b=3D894 OR c=3D2002 ]]) @@ -29132,7 +29132,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D14 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') ]]) end, { -- @@ -29146,7 +29146,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D14 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') ]]) end, { -- @@ -29160,7 +29160,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D806 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR b=3D795 OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR ((a BETWEEN 21 AND 23) AND a!=3D22) @@ -29180,7 +29180,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D806 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') OR b=3D795 OR ((a BETWEEN 99 AND 101) AND a!=3D100) OR ((a BETWEEN 21 AND 23) AND a!=3D22) @@ -29200,7 +29200,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D726 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR f=3D'abcdefghi' OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -29218,7 +29218,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D726 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR f=3D'abcdefghi' OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL) @@ -29238,7 +29238,7 @@ test:do_test( WHERE a=3D59 OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR b=3D1081 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') ]]) end, { -- @@ -29254,7 +29254,7 @@ test:do_test( WHERE a=3D59 OR ((a BETWEEN 5 AND 7) AND a!=3D6) OR b=3D1081 - OR (g=3D'fedcbaz' AND f GLOB 'stuvw*') + OR (g=3D'fedcbaz' AND f LIKE 'stuvw%') ]]) end, { -- @@ -29267,15 +29267,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'nopqr*') + WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%') OR b=3D1037 OR b=3D132 OR c=3D1001 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D32 ]]) end, { @@ -29289,15 +29289,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'nopqr*') + WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%') OR b=3D1037 OR b=3D132 OR c=3D1001 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR (d>=3D58.0 AND d<59.0 AND d IS NOT NULL) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D32 ]]) end, { @@ -29355,7 +29355,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D1001 OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR a=3D83 @@ -29371,7 +29371,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D1001 OR ((a BETWEEN 23 AND 25) AND a!=3D24) OR a=3D83 @@ -29389,13 +29389,13 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D36 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR ((a BETWEEN 46 AND 48) AND a!=3D47) OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR ((a BETWEEN 26 AND 28) AND a!=3D27) ]]) @@ -29412,13 +29412,13 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D36 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR ((a BETWEEN 46 AND 48) AND a!=3D47) OR ((a BETWEEN 31 AND 33) AND a!=3D32) OR (d>=3D91.0 AND d<92.0 AND d IS NOT NULL) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR ((a BETWEEN 26 AND 28) AND a!=3D27) ]]) @@ -29434,7 +29434,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D69 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR a=3D98 OR b=3D300 @@ -29456,7 +29456,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D69 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR ((a BETWEEN 58 AND 60) AND a!=3D59) OR a=3D98 OR b=3D300 @@ -29480,8 +29480,8 @@ test:do_test( WHERE ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR ((a BETWEEN 94 AND 96) AND a!=3D95) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR b=3D619 OR c=3D6006 @@ -29503,8 +29503,8 @@ test:do_test( WHERE ((a BETWEEN 68 AND 70) AND a!=3D69) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) OR ((a BETWEEN 94 AND 96) AND a!=3D95) - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 22 AND 24) AND a!=3D23) OR b=3D619 OR c=3D6006 @@ -29525,7 +29525,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 9 AND 11) AND a!=3D10) OR a=3D55 - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') ]]) end, { -- @@ -29540,7 +29540,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 9 AND 11) AND a!=3D10) OR a=3D55 - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') ]]) end, { -- @@ -29558,7 +29558,7 @@ test:do_test( OR b=3D201 OR a=3D7 OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR b=3D957 ]]) end, { @@ -29577,7 +29577,7 @@ test:do_test( OR b=3D201 OR a=3D7 OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL) - OR (g=3D'yxwvuts' AND f GLOB 'cdefg*') + OR (g=3D'yxwvuts' AND f LIKE 'cdefg%') OR b=3D957 ]]) end, { @@ -29593,10 +29593,10 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 90 AND 92) AND a!=3D91) OR a=3D74 - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR a=3D89 ]]) end, { @@ -29612,10 +29612,10 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 90 AND 92) AND a!=3D91) OR a=3D74 - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') OR ((a BETWEEN 95 AND 97) AND a!=3D96) - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') - OR (f GLOB '?tuvw*' AND f GLOB 'stuv*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') + OR (f LIKE '_tuvw%' AND f LIKE 'stuv%') OR a=3D89 ]]) end, { @@ -29636,7 +29636,7 @@ test:do_test( OR b=3D495 OR b=3D564 OR b=3D289 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') ]]) end, { -- @@ -29656,7 +29656,7 @@ test:do_test( OR b=3D495 OR b=3D564 OR b=3D289 - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') ]]) end, { -- @@ -29669,7 +29669,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D69 OR a=3D12 OR b=3D718 @@ -29686,7 +29686,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D69 OR a=3D12 OR b=3D718 @@ -29703,7 +29703,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR f=3D'klmnopqrs' OR b=3D674 OR a=3D96 @@ -29712,7 +29712,7 @@ test:do_test( OR b=3D707 OR f=3D'cdefghijk' OR a=3D91 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -29725,7 +29725,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'zabcd*') + WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR f=3D'klmnopqrs' OR b=3D674 OR a=3D96 @@ -29734,7 +29734,7 @@ test:do_test( OR b=3D707 OR f=3D'cdefghijk' OR a=3D91 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -29747,12 +29747,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D564 OR b=3D784 OR b=3D418 OR b=3D275 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR a=3D58 OR c=3D11011 OR b=3D660 @@ -29768,12 +29768,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D564 OR b=3D784 OR b=3D418 OR b=3D275 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') OR a=3D58 OR c=3D11011 OR b=3D660 @@ -29794,7 +29794,7 @@ test:do_test( OR b=3D1004 OR ((a BETWEEN 28 AND 30) AND a!=3D29) OR ((a BETWEEN 57 AND 59) AND a!=3D58) - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR f=3D'pqrstuvwx' ]]) end, { @@ -29813,7 +29813,7 @@ test:do_test( OR b=3D1004 OR ((a BETWEEN 28 AND 30) AND a!=3D29) OR ((a BETWEEN 57 AND 59) AND a!=3D58) - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR f=3D'pqrstuvwx' ]]) end, { @@ -29886,7 +29886,7 @@ test:do_test( WHERE a=3D19 OR a=3D29 OR b=3D476 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D91 ]]) end, { @@ -29903,7 +29903,7 @@ test:do_test( WHERE a=3D19 OR a=3D29 OR b=3D476 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D91 ]]) end, { @@ -29954,8 +29954,8 @@ test:do_test( OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D44 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D707 OR b=3D322 ]]) @@ -29975,8 +29975,8 @@ test:do_test( OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR ((a BETWEEN 32 AND 34) AND a!=3D33) OR b=3D44 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR b=3D707 OR b=3D322 ]]) @@ -29991,8 +29991,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR f=3D'jklmnopqr' ]]) @@ -30007,8 +30007,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?efgh*' AND f GLOB 'defg*') - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (f LIKE '_efgh%' AND f LIKE 'defg%') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR (d>=3D89.0 AND d<90.0 AND d IS NOT NULL) OR f=3D'jklmnopqr' ]]) @@ -30024,14 +30024,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D946 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D47 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR b=3D80 OR ((a BETWEEN 60 AND 62) AND a!=3D61) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -30045,14 +30045,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D946 - OR (g=3D'ihgfedc' AND f GLOB 'abcde*') + OR (g=3D'ihgfedc' AND f LIKE 'abcde%') OR a=3D47 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR (d>=3D93.0 AND d<94.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') OR b=3D80 OR ((a BETWEEN 60 AND 62) AND a!=3D61) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') ]]) end, { -- @@ -30069,10 +30069,10 @@ test:do_test( OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR b=3D1015 OR a=3D57 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR ((a BETWEEN 47 AND 49) AND a!=3D48) OR ((a BETWEEN 98 AND 100) AND a!=3D99) - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR b=3D165 ]]) @@ -30091,10 +30091,10 @@ test:do_test( OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) OR b=3D1015 OR a=3D57 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR ((a BETWEEN 47 AND 49) AND a!=3D48) OR ((a BETWEEN 98 AND 100) AND a!=3D99) - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR b=3D165 ]]) @@ -30113,7 +30113,7 @@ test:do_test( OR a=3D73 OR b=3D1048 OR c>=3D34035 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR a=3D72 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D638 @@ -30133,7 +30133,7 @@ test:do_test( OR a=3D73 OR b=3D1048 OR c>=3D34035 - OR (g=3D'ihgfedc' AND f GLOB 'cdefg*') + OR (g=3D'ihgfedc' AND f LIKE 'cdefg%') OR a=3D72 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D638 @@ -30181,10 +30181,10 @@ test:do_test( SELECT a FROM t2 WHERE a=3D50 OR ((a BETWEEN 61 AND 63) AND a!=3D62) - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR a=3D32 OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR a=3D14 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR b=3D946 @@ -30204,10 +30204,10 @@ test:do_test( SELECT a FROM t3 WHERE a=3D50 OR ((a BETWEEN 61 AND 63) AND a!=3D62) - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR a=3D32 OR ((a BETWEEN 93 AND 95) AND a!=3D94) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR a=3D14 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR b=3D946 @@ -30228,7 +30228,7 @@ test:do_test( WHERE ((a BETWEEN 88 AND 90) AND a!=3D89) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -30244,7 +30244,7 @@ test:do_test( WHERE ((a BETWEEN 88 AND 90) AND a!=3D89) OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -30259,7 +30259,7 @@ test:do_test( SELECT a FROM t2 WHERE a=3D6 OR f=3D'tuvwxyzab' - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D286 OR b=3D781 ]]) @@ -30276,7 +30276,7 @@ test:do_test( SELECT a FROM t3 WHERE a=3D6 OR f=3D'tuvwxyzab' - OR (g=3D'mlkjihg' AND f GLOB 'hijkl*') + OR (g=3D'mlkjihg' AND f LIKE 'hijkl%') OR b=3D286 OR b=3D781 ]]) @@ -30291,12 +30291,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR f=3D'vwxyzabcd' OR b=3D275 ]]) @@ -30311,12 +30311,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) OR ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR f=3D'vwxyzabcd' OR b=3D275 ]]) @@ -30332,10 +30332,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR a=3D59 ]]) end, { @@ -30350,10 +30350,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) - OR (g=3D'xwvutsr' AND f GLOB 'efghi*') - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'xwvutsr' AND f LIKE 'efghi%') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D64.0 AND d<65.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'nopqr*') + OR (g=3D'gfedcba' AND f LIKE 'nopqr%') OR a=3D59 ]]) end, { @@ -30367,10 +30367,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR b=3D663 OR f=3D'ghijklmno' OR ((a BETWEEN 14 AND 16) AND a!=3D15) @@ -30390,10 +30390,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*') + WHERE (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR ((a BETWEEN 8 AND 10) AND a!=3D9) - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR b=3D663 OR f=3D'ghijklmno' OR ((a BETWEEN 14 AND 16) AND a!=3D15) @@ -30420,9 +30420,9 @@ test:do_test( OR b=3D597 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR (d>=3D88.0 AND d<89.0 AND d IS NOT NULL) - OR (f GLOB '?lmno*' AND f GLOB 'klmn*') + OR (f LIKE '_lmno%' AND f LIKE 'klmn%') OR b=3D168 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') ]]) end, { -- @@ -30442,9 +30442,9 @@ test:do_test( OR b=3D597 OR ((a BETWEEN 92 AND 94) AND a!=3D93) OR (d>=3D88.0 AND d<89.0 AND d IS NOT NULL) - OR (f GLOB '?lmno*' AND f GLOB 'klmn*') + OR (f LIKE '_lmno%' AND f LIKE 'klmn%') OR b=3D168 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') ]]) end, { -- @@ -30498,7 +30498,7 @@ test:do_test( OR a=3D75 OR b=3D179 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) OR b=3D850 OR a=3D62 @@ -30519,7 +30519,7 @@ test:do_test( OR a=3D75 OR b=3D179 OR (d>=3D43.0 AND d<44.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'stuvw*') + OR (g=3D'utsrqpo' AND f LIKE 'stuvw%') OR (d>=3D65.0 AND d<66.0 AND d IS NOT NULL) OR b=3D850 OR a=3D62 @@ -30583,7 +30583,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D176 OR b=3D297 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR f=3D'ijklmnopq' ]]) end, { @@ -30599,7 +30599,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D176 OR b=3D297 - OR (g=3D'tsrqpon' AND f GLOB 'zabcd*') + OR (g=3D'tsrqpon' AND f LIKE 'zabcd%') OR f=3D'ijklmnopq' ]]) end, { @@ -30653,9 +30653,9 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR b=3D396 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D1012 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D784 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D979 @@ -30676,9 +30676,9 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR b=3D396 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR b=3D1012 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR b=3D784 OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) OR b=3D979 @@ -30726,9 +30726,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') ]]) end, { -- @@ -30742,9 +30742,9 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (f GLOB '?rstu*' AND f GLOB 'qrst*') + OR (f LIKE '_rstu%' AND f LIKE 'qrst%') OR ((a BETWEEN 23 AND 25) AND a!=3D24) - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') ]]) end, { -- @@ -30830,7 +30830,7 @@ test:do_test( OR c=3D19019 OR b=3D245 OR ((a BETWEEN 97 AND 99) AND a!=3D98) - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR b=3D572 OR ((a BETWEEN 22 AND 24) AND a!=3D23) @@ -30853,7 +30853,7 @@ test:do_test( OR c=3D19019 OR b=3D245 OR ((a BETWEEN 97 AND 99) AND a!=3D98) - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR b=3D572 OR ((a BETWEEN 22 AND 24) AND a!=3D23) @@ -30915,7 +30915,7 @@ test:do_test( OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D828 OR b=3D363 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -30934,7 +30934,7 @@ test:do_test( OR (d>=3D40.0 AND d<41.0 AND d IS NOT NULL) OR b=3D828 OR b=3D363 - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') ]]) end, { -- @@ -30947,7 +30947,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'lmnop*') + WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%') OR a=3D41 OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) OR b=3D825 @@ -30963,7 +30963,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'lmnop*') + WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%') OR a=3D41 OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) OR b=3D825 @@ -30986,7 +30986,7 @@ test:do_test( OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D561 OR c=3D8008 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR b=3D935 OR c=3D1001 ]]) @@ -31008,7 +31008,7 @@ test:do_test( OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR b=3D561 OR c=3D8008 - OR (g=3D'hgfedcb' AND f GLOB 'ghijk*') + OR (g=3D'hgfedcb' AND f LIKE 'ghijk%') OR b=3D935 OR c=3D1001 ]]) @@ -31024,7 +31024,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 75 AND 77) AND a!=3D76) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -31038,7 +31038,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 75 AND 77) AND a!=3D76) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -31114,9 +31114,9 @@ test:do_test( OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR f=3D'zabcdefgh' OR b=3D861 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR a=3D28 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D311 ]]) end, { @@ -31137,9 +31137,9 @@ test:do_test( OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR f=3D'zabcdefgh' OR b=3D861 - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') OR a=3D28 - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D311 ]]) end, { @@ -31154,10 +31154,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D575 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR b=3D418 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR b=3D792 OR b=3D861 OR b=3D220 @@ -31175,10 +31175,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D575 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) OR b=3D418 - OR (f GLOB '?qrst*' AND f GLOB 'pqrs*') + OR (f LIKE '_qrst%' AND f LIKE 'pqrs%') OR b=3D792 OR b=3D861 OR b=3D220 @@ -31233,7 +31233,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'qrstu*') + WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D693 OR a=3D73 OR b=3D627 @@ -31243,7 +31243,7 @@ test:do_test( OR b=3D267 OR b=3D872 OR a=3D27 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -31256,7 +31256,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'qrstu*') + WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D693 OR a=3D73 OR b=3D627 @@ -31266,7 +31266,7 @@ test:do_test( OR b=3D267 OR b=3D872 OR a=3D27 - OR (g=3D'gfedcba' AND f GLOB 'klmno*') + OR (g=3D'gfedcba' AND f LIKE 'klmno%') ]]) end, { -- @@ -31351,15 +31351,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D66 OR b=3D322 OR b=3D465 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR ((a BETWEEN 77 AND 79) AND a!=3D78) - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR b=3D454 ]]) @@ -31374,15 +31374,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR b=3D66 OR b=3D322 OR b=3D465 - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL) OR ((a BETWEEN 77 AND 79) AND a!=3D78) - OR (g=3D'lkjihgf' AND f GLOB 'mnopq*') + OR (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR b=3D454 ]]) @@ -31402,7 +31402,7 @@ test:do_test( OR c=3D15015 OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR b=3D803 ]]) end, { @@ -31421,7 +31421,7 @@ test:do_test( OR c=3D15015 OR (d>=3D84.0 AND d<85.0 AND d IS NOT NULL) OR ((a BETWEEN 3 AND 5) AND a!=3D4) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR b=3D803 ]]) end, { @@ -31436,12 +31436,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1100 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR a=3D75 OR a=3D45 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR a=3D27 OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR b=3D850 @@ -31459,12 +31459,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1100 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR ((a BETWEEN 72 AND 74) AND a!=3D73) OR ((a BETWEEN 68 AND 70) AND a!=3D69) OR a=3D75 OR a=3D45 - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR a=3D27 OR (d>=3D77.0 AND d<78.0 AND d IS NOT NULL) OR b=3D850 @@ -31484,7 +31484,7 @@ test:do_test( WHERE b=3D751 OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR a=3D89 OR ((a BETWEEN 36 AND 38) AND a!=3D37) @@ -31503,7 +31503,7 @@ test:do_test( WHERE b=3D751 OR ((a BETWEEN 96 AND 98) AND a!=3D97) OR (d>=3D71.0 AND d<72.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR a=3D89 OR ((a BETWEEN 36 AND 38) AND a!=3D37) @@ -31519,10 +31519,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + WHERE (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR a=3D1 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -31535,10 +31535,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'wvutsrq' AND f GLOB 'jklmn*') - OR (g=3D'yxwvuts' AND f GLOB 'bcdef*') + WHERE (g=3D'wvutsrq' AND f LIKE 'jklmn%') + OR (g=3D'yxwvuts' AND f LIKE 'bcdef%') OR a=3D1 - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') ]]) end, { -- @@ -31557,9 +31557,9 @@ test:do_test( OR c=3D8008 OR ((a BETWEEN 41 AND 43) AND a!=3D42) OR b=3D960 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D443 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') ]]) end, { -- @@ -31578,9 +31578,9 @@ test:do_test( OR c=3D8008 OR ((a BETWEEN 41 AND 43) AND a!=3D42) OR b=3D960 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D443 - OR (g=3D'rqponml' AND f GLOB 'ijklm*') + OR (g=3D'rqponml' AND f LIKE 'ijklm%') ]]) end, { -- @@ -31624,14 +31624,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D685 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR b=3D520 OR (d>=3D76.0 AND d<77.0 AND d IS NOT NULL) OR a=3D53 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D938 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR c=3D25025 ]]) end, { @@ -31646,14 +31646,14 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D685 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL) OR b=3D520 OR (d>=3D76.0 AND d<77.0 AND d IS NOT NULL) OR a=3D53 OR ((a BETWEEN 91 AND 93) AND a!=3D92) OR b=3D938 - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR c=3D25025 ]]) end, { @@ -31700,7 +31700,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'abcdefghi' - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') ]]) end, { -- @@ -31714,7 +31714,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'abcdefghi' - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') ]]) end, { -- @@ -31802,7 +31802,7 @@ test:do_test( WHERE b=3D209 OR b=3D806 OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -31818,7 +31818,7 @@ test:do_test( WHERE b=3D209 OR b=3D806 OR (d>=3D8.0 AND d<9.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'rstuv*') + OR (g=3D'vutsrqp' AND f LIKE 'rstuv%') ]]) end, { -- @@ -31863,10 +31863,10 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR a=3D45 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR a=3D69 OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -31881,10 +31881,10 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D4.0 AND d<5.0 AND d IS NOT NULL) OR a=3D45 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR a=3D69 OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -31899,9 +31899,9 @@ test:do_test( SELECT a FROM t2 WHERE c=3D9009 OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') ]]) end, { -- @@ -31916,9 +31916,9 @@ test:do_test( SELECT a FROM t3 WHERE c=3D9009 OR (d>=3D85.0 AND d<86.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'pqrst*') + OR (g=3D'lkjihgf' AND f LIKE 'pqrst%') ]]) end, { -- @@ -31937,7 +31937,7 @@ test:do_test( OR a=3D47 OR c=3D24024 OR a=3D27 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) ]]) end, { @@ -31957,7 +31957,7 @@ test:do_test( OR a=3D47 OR c=3D24024 OR a=3D27 - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) ]]) end, { @@ -31971,9 +31971,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D19 ]]) end, { @@ -31987,9 +31987,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D19 ]]) end, { @@ -32006,7 +32006,7 @@ test:do_test( WHERE c=3D12012 OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) OR ((a BETWEEN 16 AND 18) AND a!=3D17) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -32022,7 +32022,7 @@ test:do_test( WHERE c=3D12012 OR (d>=3D80.0 AND d<81.0 AND d IS NOT NULL) OR ((a BETWEEN 16 AND 18) AND a!=3D17) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -32036,7 +32036,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR b=3D429 OR f=3D'jklmnopqr' OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -32054,7 +32054,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR b=3D429 OR f=3D'jklmnopqr' OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) @@ -32071,7 +32071,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D190 ]]) end, { @@ -32085,7 +32085,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D190 ]]) end, { @@ -32099,7 +32099,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'yzabc*') + WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D674 OR b=3D289 ]]) @@ -32114,7 +32114,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'yzabc*') + WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%') OR b=3D674 OR b=3D289 ]]) @@ -32131,8 +32131,8 @@ test:do_test( SELECT a FROM t2 WHERE a=3D17 OR b=3D539 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -32147,8 +32147,8 @@ test:do_test( SELECT a FROM t3 WHERE a=3D17 OR b=3D539 - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (g=3D'utsrqpo' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -32259,12 +32259,12 @@ test:do_test( SELECT a FROM t2 WHERE f=3D'ghijklmno' OR a=3D26 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D81 OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) OR ((a BETWEEN 28 AND 30) AND a!=3D29) OR b=3D275 - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D311 OR b=3D894 OR b=3D872 @@ -32282,12 +32282,12 @@ test:do_test( SELECT a FROM t3 WHERE f=3D'ghijklmno' OR a=3D26 - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR a=3D81 OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL) OR ((a BETWEEN 28 AND 30) AND a!=3D29) OR b=3D275 - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR b=3D311 OR b=3D894 OR b=3D872 @@ -32376,12 +32376,12 @@ test:do_test( WHERE a=3D44 OR b=3D55 OR a=3D30 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR 1000000=3D75.0 AND d<76.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -32397,12 +32397,12 @@ test:do_test( WHERE a=3D44 OR b=3D55 OR a=3D30 - OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR 1000000=3D75.0 AND d<76.0 AND d IS NOT NULL) - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -32487,14 +32487,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'edcbazy' AND f GLOB 'uvwxy*') + WHERE (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR ((a BETWEEN 25 AND 27) AND a!=3D26) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR f=3D'xyzabcdef' OR b=3D517 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') ]]) end, { -- @@ -32507,14 +32507,14 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'edcbazy' AND f GLOB 'uvwxy*') + WHERE (g=3D'edcbazy' AND f LIKE 'uvwxy%') OR ((a BETWEEN 25 AND 27) AND a!=3D26) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR ((a BETWEEN 89 AND 91) AND a!=3D90) OR f=3D'xyzabcdef' OR b=3D517 - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') ]]) end, { -- @@ -32555,9 +32555,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'tsrqpon' AND f GLOB 'yzabc*') + WHERE (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR b=3D762 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR a=3D25 OR ((a BETWEEN 65 AND 67) AND a!=3D66) ]]) @@ -32572,9 +32572,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'tsrqpon' AND f GLOB 'yzabc*') + WHERE (g=3D'tsrqpon' AND f LIKE 'yzabc%') OR b=3D762 - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR a=3D25 OR ((a BETWEEN 65 AND 67) AND a!=3D66) ]]) @@ -32594,9 +32594,9 @@ test:do_test( OR b=3D839 OR f=3D'defghijkl' OR (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D498 ]]) end, { @@ -32615,9 +32615,9 @@ test:do_test( OR b=3D839 OR f=3D'defghijkl' OR (d>=3D95.0 AND d<96.0 AND d IS NOT NULL) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR (d>=3D52.0 AND d<53.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR b=3D498 ]]) end, { @@ -32667,7 +32667,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D256 OR b=3D586 OR a=3D74 @@ -32686,7 +32686,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'mlkjihg' AND f GLOB 'jklmn*') + WHERE (g=3D'mlkjihg' AND f LIKE 'jklmn%') OR b=3D256 OR b=3D586 OR a=3D74 @@ -32739,14 +32739,14 @@ test:do_test( SELECT a FROM t2 WHERE b=3D308 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR a=3D83 OR c=3D23023 OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR a=3D58 OR ((a BETWEEN 17 AND 19) AND a!=3D18) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR c=3D4004 ]]) end, { @@ -32762,14 +32762,14 @@ test:do_test( SELECT a FROM t3 WHERE b=3D308 OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') OR a=3D83 OR c=3D23023 OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL) - OR (g=3D'lkjihgf' AND f GLOB 'nopqr*') + OR (g=3D'lkjihgf' AND f LIKE 'nopqr%') OR a=3D58 OR ((a BETWEEN 17 AND 19) AND a!=3D18) - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR c=3D4004 ]]) end, { @@ -32789,7 +32789,7 @@ test:do_test( OR b=3D762 OR b=3D157 OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') ]]) end, { -- @@ -32808,7 +32808,7 @@ test:do_test( OR b=3D762 OR b=3D157 OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') ]]) end, { -- @@ -32825,12 +32825,12 @@ test:do_test( OR a=3D1 OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR b=3D278 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR f=3D'qrstuvwxy' - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR ((a BETWEEN 82 AND 84) AND a!=3D83) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) ]]) end, { @@ -32848,12 +32848,12 @@ test:do_test( OR a=3D1 OR ((a BETWEEN 93 AND 95) AND a!=3D94) OR b=3D278 - OR (g=3D'xwvutsr' AND f GLOB 'defgh*') + OR (g=3D'xwvutsr' AND f LIKE 'defgh%') OR f=3D'qrstuvwxy' - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR ((a BETWEEN 82 AND 84) AND a!=3D83) - OR (g=3D'edcbazy' AND f GLOB 'uvwxy*') - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'uvwxy%') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) ]]) end, { @@ -32872,9 +32872,9 @@ test:do_test( OR ((a BETWEEN 41 AND 43) AND a!=3D42) OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR b=3D759 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR ((a BETWEEN 45 AND 47) AND a!=3D46) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -32892,9 +32892,9 @@ test:do_test( OR ((a BETWEEN 41 AND 43) AND a!=3D42) OR (d>=3D96.0 AND d<97.0 AND d IS NOT NULL) OR b=3D759 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR ((a BETWEEN 45 AND 47) AND a!=3D46) - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') ]]) end, { -- @@ -32916,7 +32916,7 @@ test:do_test( OR b=3D44 OR f=3D'zabcdefgh' OR b=3D979 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -32938,7 +32938,7 @@ test:do_test( OR b=3D44 OR f=3D'zabcdefgh' OR b=3D979 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -32988,7 +32988,7 @@ test:do_test( OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D90 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR f=3D'nopqrstuv' ]]) end, { @@ -33011,7 +33011,7 @@ test:do_test( OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D90 OR (d>=3D66.0 AND d<67.0 AND d IS NOT NULL) - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') OR f=3D'nopqrstuv' ]]) end, { @@ -33061,7 +33061,7 @@ test:do_test( OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR d<0.0 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c=3D9009 ]]) end, { @@ -33083,7 +33083,7 @@ test:do_test( OR ((a BETWEEN 4 AND 6) AND a!=3D5) OR ((a BETWEEN 69 AND 71) AND a!=3D70) OR d<0.0 - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR c=3D9009 ]]) end, { @@ -33097,7 +33097,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D814 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) ]]) @@ -33112,7 +33112,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*') + WHERE (f LIKE '_uvwx%' AND f LIKE 'tuvw%') OR b=3D814 OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) ]]) @@ -33127,7 +33127,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D333 OR b=3D275 ]]) @@ -33142,7 +33142,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'mnopq*') + WHERE (g=3D'lkjihgf' AND f LIKE 'mnopq%') OR b=3D333 OR b=3D275 ]]) @@ -33157,7 +33157,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) ]]) end, { @@ -33171,7 +33171,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'ihgfedc' AND f GLOB 'efghi*') + WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%') OR ((a BETWEEN 33 AND 35) AND a!=3D34) ]]) end, { @@ -33187,7 +33187,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 11 AND 13) AND a!=3D12) OR b=3D253 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D286 OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) ]]) @@ -33204,7 +33204,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 11 AND 13) AND a!=3D12) OR b=3D253 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D286 OR (d>=3D10.0 AND d<11.0 AND d IS NOT NULL) ]]) @@ -33220,10 +33220,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 26 AND 28) AND a!=3D27) OR b=3D421 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR f=3D'ijklmnopq' OR b=3D891 OR b=3D1056 @@ -33240,10 +33240,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR ((a BETWEEN 26 AND 28) AND a!=3D27) OR b=3D421 - OR (g=3D'xwvutsr' AND f GLOB 'fghij*') + OR (g=3D'xwvutsr' AND f LIKE 'fghij%') OR f=3D'ijklmnopq' OR b=3D891 OR b=3D1056 @@ -33260,10 +33260,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'fghijklmn' - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR b=3D671 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') ]]) end, { -- @@ -33277,10 +33277,10 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'fghijklmn' - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') - OR (g=3D'edcbazy' AND f GLOB 'vwxyz*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') + OR (g=3D'edcbazy' AND f LIKE 'vwxyz%') OR b=3D671 - OR (g=3D'xwvutsr' AND f GLOB 'hijkl*') + OR (g=3D'xwvutsr' AND f LIKE 'hijkl%') ]]) end, { -- @@ -33293,10 +33293,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'lkjihgf' AND f GLOB 'lmnop*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + WHERE (g=3D'lkjihgf' AND f LIKE 'lmnop%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) ]]) end, { @@ -33310,10 +33310,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'lkjihgf' AND f GLOB 'lmnop*') - OR (g=3D'srqponm' AND f GLOB 'fghij*') + WHERE (g=3D'lkjihgf' AND f LIKE 'lmnop%') + OR (g=3D'srqponm' AND f LIKE 'fghij%') OR ((a BETWEEN 4 AND 6) AND a!=3D5) - OR (g=3D'kjihgfe' AND f GLOB 'qrstu*') + OR (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR (d>=3D11.0 AND d<12.0 AND d IS NOT NULL) ]]) end, { @@ -33439,11 +33439,11 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 67 AND 69) AND a!=3D68) OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR a=3D46 OR b=3D187 OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') ]]) end, { -- @@ -33458,11 +33458,11 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 67 AND 69) AND a!=3D68) OR (d>=3D69.0 AND d<70.0 AND d IS NOT NULL) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR a=3D46 OR b=3D187 OR ((a BETWEEN 69 AND 71) AND a!=3D70) - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') ]]) end, { -- @@ -33522,7 +33522,7 @@ test:do_test( OR b=3D729 OR ((a BETWEEN 81 AND 83) AND a!=3D82) OR a=3D58 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D608 ]]) end, { @@ -33543,7 +33543,7 @@ test:do_test( OR b=3D729 OR ((a BETWEEN 81 AND 83) AND a!=3D82) OR a=3D58 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR b=3D608 ]]) end, { @@ -33561,7 +33561,7 @@ test:do_test( OR f=3D'efghijklm' OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) OR a=3D26 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') ]]) end, { -- @@ -33578,7 +33578,7 @@ test:do_test( OR f=3D'efghijklm' OR (d>=3D48.0 AND d<49.0 AND d IS NOT NULL) OR a=3D26 - OR (f GLOB '?efgh*' AND f GLOB 'defg*') + OR (f LIKE '_efgh%' AND f LIKE 'defg%') ]]) end, { -- @@ -33592,11 +33592,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE a=3D59 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR a=3D7 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D762 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -33610,11 +33610,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE a=3D59 - OR (g=3D'wvutsrq' AND f GLOB 'mnopq*') + OR (g=3D'wvutsrq' AND f LIKE 'mnopq%') OR a=3D7 - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D762 - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') ]]) end, { -- @@ -33627,7 +33627,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D539 OR b=3D399 ]]) @@ -33642,7 +33642,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'nopqr*') + WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%') OR b=3D539 OR b=3D399 ]]) @@ -33687,10 +33687,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR f=3D'lmnopqrst' - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -33703,10 +33703,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*') - OR (g=3D'rqponml' AND f GLOB 'klmno*') + WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%') + OR (g=3D'rqponml' AND f LIKE 'klmno%') OR f=3D'lmnopqrst' - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') ]]) end, { -- @@ -33751,14 +33751,14 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1067 OR ((a BETWEEN 53 AND 55) AND a!=3D54) - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D520 OR b=3D399 OR b=3D209 OR a=3D68 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') ]]) end, { -- @@ -33773,14 +33773,14 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1067 OR ((a BETWEEN 53 AND 55) AND a!=3D54) - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR b=3D520 OR b=3D399 OR b=3D209 OR a=3D68 - OR (g=3D'fedcbaz' AND f GLOB 'qrstu*') + OR (g=3D'fedcbaz' AND f LIKE 'qrstu%') ]]) end, { -- @@ -33798,7 +33798,7 @@ test:do_test( OR b=3D55 OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR ((a BETWEEN 20 AND 22) AND a!=3D21) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR ((a BETWEEN 21 AND 23) AND a!=3D22) ]]) @@ -33818,7 +33818,7 @@ test:do_test( OR b=3D55 OR (d>=3D34.0 AND d<35.0 AND d IS NOT NULL) OR ((a BETWEEN 20 AND 22) AND a!=3D21) - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR ((a BETWEEN 0 AND 2) AND a!=3D1) OR ((a BETWEEN 21 AND 23) AND a!=3D22) ]]) @@ -33837,7 +33837,7 @@ test:do_test( OR a=3D2 OR b=3D784 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D850 ]]) end, { @@ -33855,7 +33855,7 @@ test:do_test( OR a=3D2 OR b=3D784 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'ihgfedc' AND f GLOB 'defgh*') + OR (g=3D'ihgfedc' AND f LIKE 'defgh%') OR b=3D850 ]]) end, { @@ -33903,17 +33903,17 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR a=3D18 OR a=3D30 OR ((a BETWEEN 9 AND 11) AND a!=3D10) OR ((a BETWEEN 84 AND 86) AND a!=3D85) OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR b=3D792 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR ((a BETWEEN 19 AND 21) AND a!=3D20) OR c=3D26026 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -33926,17 +33926,17 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'zabcd*') + WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%') OR a=3D18 OR a=3D30 OR ((a BETWEEN 9 AND 11) AND a!=3D10) OR ((a BETWEEN 84 AND 86) AND a!=3D85) OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR b=3D792 - OR (f GLOB '?mnop*' AND f GLOB 'lmno*') + OR (f LIKE '_mnop%' AND f LIKE 'lmno%') OR ((a BETWEEN 19 AND 21) AND a!=3D20) OR c=3D26026 - OR (g=3D'rqponml' AND f GLOB 'hijkl*') + OR (g=3D'rqponml' AND f LIKE 'hijkl%') ]]) end, { -- @@ -33949,11 +33949,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'vutsrqp' AND f GLOB 'qrstu*') + WHERE (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D968 OR ((a BETWEEN 63 AND 65) AND a!=3D64) - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR a=3D78 OR ((a BETWEEN 90 AND 92) AND a!=3D91) @@ -33969,11 +33969,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'vutsrqp' AND f GLOB 'qrstu*') + WHERE (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D968 OR ((a BETWEEN 63 AND 65) AND a!=3D64) - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR (d>=3D72.0 AND d<73.0 AND d IS NOT NULL) OR a=3D78 OR ((a BETWEEN 90 AND 92) AND a!=3D91) @@ -34096,7 +34096,7 @@ test:do_test( OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR a=3D81 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR f=3D'mnopqrstu' ]]) end, { @@ -34117,7 +34117,7 @@ test:do_test( OR (d>=3D78.0 AND d<79.0 AND d IS NOT NULL) OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR a=3D81 - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR f=3D'mnopqrstu' ]]) end, { @@ -34177,7 +34177,7 @@ test:do_test( OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR ((a BETWEEN 27 AND 29) AND a!=3D28) OR b=3D319 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR ((a BETWEEN 14 AND 16) AND a!=3D15) ]]) end, { @@ -34197,7 +34197,7 @@ test:do_test( OR ((a BETWEEN 20 AND 22) AND a!=3D21) OR ((a BETWEEN 27 AND 29) AND a!=3D28) OR b=3D319 - OR (g=3D'qponmlk' AND f GLOB 'opqrs*') + OR (g=3D'qponmlk' AND f LIKE 'opqrs%') OR ((a BETWEEN 14 AND 16) AND a!=3D15) ]]) end, { @@ -34214,7 +34214,7 @@ test:do_test( WHERE b=3D179 OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR a=3D46 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) OR a=3D25 OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) @@ -34237,7 +34237,7 @@ test:do_test( WHERE b=3D179 OR ((a BETWEEN 95 AND 97) AND a!=3D96) OR a=3D46 - OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*') + OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%') OR ((a BETWEEN 53 AND 55) AND a!=3D54) OR a=3D25 OR (d>=3D5.0 AND d<6.0 AND d IS NOT NULL) @@ -34257,7 +34257,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'fghij*') + WHERE (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) ]]) end, { @@ -34271,7 +34271,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'fghij*') + WHERE (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) ]]) end, { @@ -34286,7 +34286,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D748 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D32 OR b=3D110 OR b=3D297 @@ -34308,7 +34308,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D748 - OR (g=3D'utsrqpo' AND f GLOB 'wxyza*') + OR (g=3D'utsrqpo' AND f LIKE 'wxyza%') OR a=3D32 OR b=3D110 OR b=3D297 @@ -34332,13 +34332,13 @@ test:do_test( WHERE (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) OR b=3D905 OR a=3D97 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR c=3D27027 OR f=3D'bcdefghij' OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') ]]) end, { -- @@ -34354,13 +34354,13 @@ test:do_test( WHERE (d>=3D33.0 AND d<34.0 AND d IS NOT NULL) OR b=3D905 OR a=3D97 - OR (g=3D'hgfedcb' AND f GLOB 'hijkl*') + OR (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR c=3D27027 OR f=3D'bcdefghij' OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL) OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL) OR ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') ]]) end, { -- @@ -34403,13 +34403,13 @@ test:do_test( SELECT a FROM t2 WHERE b=3D594 OR b=3D80 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D421 OR b=3D418 OR b=3D828 OR a=3D88 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) ]]) end, { @@ -34425,13 +34425,13 @@ test:do_test( SELECT a FROM t3 WHERE b=3D594 OR b=3D80 - OR (g=3D'tsrqpon' AND f GLOB 'bcdef*') - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'tsrqpon' AND f LIKE 'bcdef%') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D421 OR b=3D418 OR b=3D828 OR a=3D88 - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR (d>=3D60.0 AND d<61.0 AND d IS NOT NULL) ]]) end, { @@ -34446,11 +34446,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR b=3D366 OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR c=3D16016 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR c=3D9009 ]]) end, { @@ -34465,11 +34465,11 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'xyzab*') + OR (g=3D'jihgfed' AND f LIKE 'xyzab%') OR b=3D366 OR (d>=3D28.0 AND d<29.0 AND d IS NOT NULL) OR c=3D16016 - OR (g=3D'edcbazy' AND f GLOB 'wxyza*') + OR (g=3D'edcbazy' AND f LIKE 'wxyza%') OR c=3D9009 ]]) end, { @@ -34485,7 +34485,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D33 OR f=3D'qrstuvwxy' - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR b=3D858 ]]) end, { @@ -34501,7 +34501,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D33 OR f=3D'qrstuvwxy' - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR b=3D858 ]]) end, { @@ -34516,7 +34516,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D861 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) OR b=3D682 OR ((a BETWEEN 93 AND 95) AND a!=3D94) @@ -34534,7 +34534,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D861 - OR (f GLOB '?xyza*' AND f GLOB 'wxyz*') + OR (f LIKE '_xyza%' AND f LIKE 'wxyz%') OR (d>=3D29.0 AND d<30.0 AND d IS NOT NULL) OR b=3D682 OR ((a BETWEEN 93 AND 95) AND a!=3D94) @@ -34584,7 +34584,7 @@ test:do_test( WHERE f=3D'abcdefghi' OR c=3D9009 OR b=3D663 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR b=3D91 ]]) end, { @@ -34601,7 +34601,7 @@ test:do_test( WHERE f=3D'abcdefghi' OR c=3D9009 OR b=3D663 - OR (g=3D'wvutsrq' AND f GLOB 'klmno*') + OR (g=3D'wvutsrq' AND f LIKE 'klmno%') OR b=3D91 ]]) end, { @@ -34615,15 +34615,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'kjihgfe' AND f GLOB 'qrstu*') + WHERE (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D1015 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D916 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D69 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -34636,15 +34636,15 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'kjihgfe' AND f GLOB 'qrstu*') + WHERE (g=3D'kjihgfe' AND f LIKE 'qrstu%') OR ((a BETWEEN 29 AND 31) AND a!=3D30) - OR (f GLOB '?opqr*' AND f GLOB 'nopq*') + OR (f LIKE '_opqr%' AND f LIKE 'nopq%') OR b=3D1015 - OR (g=3D'qponmlk' AND f GLOB 'qrstu*') + OR (g=3D'qponmlk' AND f LIKE 'qrstu%') OR b=3D916 OR (d>=3D31.0 AND d<32.0 AND d IS NOT NULL) OR b=3D69 - OR (g=3D'hgfedcb' AND f GLOB 'fghij*') + OR (g=3D'hgfedcb' AND f LIKE 'fghij%') ]]) end, { -- @@ -34664,7 +34664,7 @@ test:do_test( OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR a=3D63 OR f=3D'mnopqrstu' - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D495 OR a=3D35 OR a=3D22 @@ -34687,7 +34687,7 @@ test:do_test( OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR a=3D63 OR f=3D'mnopqrstu' - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR b=3D495 OR a=3D35 OR a=3D22 @@ -34704,7 +34704,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D869 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D289 OR a=3D62 OR ((a BETWEEN 9 AND 11) AND a!=3D10) @@ -34721,7 +34721,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D869 - OR (g=3D'rqponml' AND f GLOB 'jklmn*') + OR (g=3D'rqponml' AND f LIKE 'jklmn%') OR b=3D289 OR a=3D62 OR ((a BETWEEN 9 AND 11) AND a!=3D10) @@ -34774,7 +34774,7 @@ test:do_test( WHERE ((a BETWEEN 57 AND 59) AND a!=3D58) OR b=3D1078 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR b=3D429 ]]) @@ -34792,7 +34792,7 @@ test:do_test( WHERE ((a BETWEEN 57 AND 59) AND a!=3D58) OR b=3D1078 OR ((a BETWEEN 21 AND 23) AND a!=3D22) - OR (g=3D'mlkjihg' AND f GLOB 'ijklm*') + OR (g=3D'mlkjihg' AND f LIKE 'ijklm%') OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) OR b=3D429 ]]) @@ -34876,7 +34876,7 @@ test:do_test( WHERE (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR b=3D858 OR a=3D58 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR c=3D21021 OR ((a BETWEEN 45 AND 47) AND a!=3D46) OR b=3D616 @@ -34897,7 +34897,7 @@ test:do_test( WHERE (d>=3D56.0 AND d<57.0 AND d IS NOT NULL) OR b=3D858 OR a=3D58 - OR (g=3D'onmlkji' AND f GLOB 'xyzab*') + OR (g=3D'onmlkji' AND f LIKE 'xyzab%') OR c=3D21021 OR ((a BETWEEN 45 AND 47) AND a!=3D46) OR b=3D616 @@ -34917,7 +34917,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D682 OR b=3D99 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR b=3D531 ]]) end, { @@ -34933,7 +34933,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D682 OR b=3D99 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR b=3D531 ]]) end, { @@ -34948,13 +34948,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 56 AND 58) AND a!=3D57) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR b=3D726 OR a=3D79 OR a=3D47 OR b=3D212 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR c=3D8008 ]]) end, { @@ -34969,13 +34969,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 56 AND 58) AND a!=3D57) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (f GLOB '?jklm*' AND f GLOB 'ijkl*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (f LIKE '_jklm%' AND f LIKE 'ijkl%') OR b=3D726 OR a=3D79 OR a=3D47 OR b=3D212 - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') OR c=3D8008 ]]) end, { @@ -34993,7 +34993,7 @@ test:do_test( OR ((a BETWEEN 60 AND 62) AND a!=3D61) OR a=3D5 OR b=3D33 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR a=3D59 OR b=3D44 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) @@ -35014,7 +35014,7 @@ test:do_test( OR ((a BETWEEN 60 AND 62) AND a!=3D61) OR a=3D5 OR b=3D33 - OR (f GLOB '?yzab*' AND f GLOB 'xyza*') + OR (f LIKE '_yzab%' AND f LIKE 'xyza%') OR a=3D59 OR b=3D44 OR (d>=3D14.0 AND d<15.0 AND d IS NOT NULL) @@ -35213,8 +35213,8 @@ test:do_test( SELECT a FROM t2 WHERE a=3D96 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR a=3D85 OR ((a BETWEEN 10 AND 12) AND a!=3D11) @@ -35236,8 +35236,8 @@ test:do_test( SELECT a FROM t3 WHERE a=3D96 OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*') - OR (f GLOB '?fghi*' AND f GLOB 'efgh*') + OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%') + OR (f LIKE '_fghi%' AND f LIKE 'efgh%') OR ((a BETWEEN 37 AND 39) AND a!=3D38) OR a=3D85 OR ((a BETWEEN 10 AND 12) AND a!=3D11) @@ -35299,17 +35299,17 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D60 OR a=3D4 OR b=3D520 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR a=3D44 OR a=3D36 OR (d>=3D76.0 AND d<77.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D715 - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') ]]) end, { -- @@ -35322,17 +35322,17 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'hijkl*') + WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%') OR a=3D60 OR a=3D4 OR b=3D520 - OR (g=3D'ihgfedc' AND f GLOB 'bcdef*') + OR (g=3D'ihgfedc' AND f LIKE 'bcdef%') OR a=3D44 OR a=3D36 OR (d>=3D76.0 AND d<77.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D715 - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') ]]) end, { -- @@ -35349,10 +35349,10 @@ test:do_test( OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR a=3D24 OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -35369,10 +35369,10 @@ test:do_test( OR ((a BETWEEN 56 AND 58) AND a!=3D57) OR (d>=3D15.0 AND d<16.0 AND d IS NOT NULL) OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'yzabc*') + OR (g=3D'jihgfed' AND f LIKE 'yzabc%') OR a=3D24 OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL) - OR (f GLOB '?bcde*' AND f GLOB 'abcd*') + OR (f LIKE '_bcde%' AND f LIKE 'abcd%') ]]) end, { -- @@ -35385,12 +35385,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D132 OR f=3D'ghijklmno' OR b=3D740 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D1059 ]]) end, { @@ -35404,12 +35404,12 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'utsrqpo' AND f GLOB 'vwxyz*') + WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%') OR b=3D132 OR f=3D'ghijklmno' OR b=3D740 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D1059 ]]) end, { @@ -35459,10 +35459,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'nmlkjih' AND f GLOB 'cdefg*') + WHERE (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D1026 OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR b=3D355 OR b=3D641 OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) @@ -35478,10 +35478,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'nmlkjih' AND f GLOB 'cdefg*') + WHERE (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D1026 OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL) - OR (g=3D'wvutsrq' AND f GLOB 'lmnop*') + OR (g=3D'wvutsrq' AND f LIKE 'lmnop%') OR b=3D355 OR b=3D641 OR (d>=3D53.0 AND d<54.0 AND d IS NOT NULL) @@ -35506,7 +35506,7 @@ test:do_test( OR f=3D'opqrstuvw' OR a=3D41 OR a=3D83 - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D751 ]]) end, { @@ -35529,7 +35529,7 @@ test:do_test( OR f=3D'opqrstuvw' OR a=3D41 OR a=3D83 - OR (g=3D'nmlkjih' AND f GLOB 'cdefg*') + OR (g=3D'nmlkjih' AND f LIKE 'cdefg%') OR b=3D751 ]]) end, { @@ -35579,7 +35579,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'qrstu*') + WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%') OR f=3D'bcdefghij' OR f=3D'hijklmnop' OR a=3D65 @@ -35602,7 +35602,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'qrstu*') + WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%') OR f=3D'bcdefghij' OR f=3D'hijklmnop' OR a=3D65 @@ -35625,11 +35625,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'jihgfed' AND f GLOB 'vwxyz*') + WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D1100 OR c=3D6006 OR c=3D4004 @@ -35647,11 +35647,11 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'jihgfed' AND f GLOB 'vwxyz*') + WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%') OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR ((a BETWEEN 79 AND 81) AND a!=3D80) - OR (g=3D'kjihgfe' AND f GLOB 'stuvw*') - OR (g=3D'qponmlk' AND f GLOB 'pqrst*') + OR (g=3D'kjihgfe' AND f LIKE 'stuvw%') + OR (g=3D'qponmlk' AND f LIKE 'pqrst%') OR b=3D1100 OR c=3D6006 OR c=3D4004 @@ -35728,7 +35728,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR ((a BETWEEN 21 AND 23) AND a!=3D22) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D737 @@ -35745,7 +35745,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE (d>=3D42.0 AND d<43.0 AND d IS NOT NULL) - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR ((a BETWEEN 21 AND 23) AND a!=3D22) OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL) OR b=3D737 @@ -35761,7 +35761,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'rqponml' AND f GLOB 'klmno*') + WHERE (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) ]]) end, { @@ -35775,7 +35775,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'rqponml' AND f GLOB 'klmno*') + WHERE (g=3D'rqponml' AND f LIKE 'klmno%') OR ((a BETWEEN 5 AND 7) AND a!=3D6) ]]) end, { @@ -35789,7 +35789,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR c=3D32032 OR f=3D'opqrstuvw' OR ((a BETWEEN 66 AND 68) AND a!=3D67) @@ -35807,7 +35807,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'hgfedcb' AND f GLOB 'hijkl*') + WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%') OR c=3D32032 OR f=3D'opqrstuvw' OR ((a BETWEEN 66 AND 68) AND a!=3D67) @@ -35875,11 +35875,11 @@ test:do_test( OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR ((a BETWEEN 86 AND 88) AND a!=3D87) OR b=3D146 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR ((a BETWEEN 73 AND 75) AND a!=3D74) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 60 AND 62) AND a!=3D61) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D704 ]]) end, { @@ -35897,11 +35897,11 @@ test:do_test( OR ((a BETWEEN 8 AND 10) AND a!=3D9) OR ((a BETWEEN 86 AND 88) AND a!=3D87) OR b=3D146 - OR (g=3D'ponmlkj' AND f GLOB 'rstuv*') + OR (g=3D'ponmlkj' AND f LIKE 'rstuv%') OR ((a BETWEEN 73 AND 75) AND a!=3D74) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') OR ((a BETWEEN 60 AND 62) AND a!=3D61) - OR (g=3D'ihgfedc' AND f GLOB 'efghi*') + OR (g=3D'ihgfedc' AND f LIKE 'efghi%') OR b=3D704 ]]) end, { @@ -35950,7 +35950,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE c=3D17017 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D971 OR a=3D37 OR a=3D7 @@ -35970,7 +35970,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE c=3D17017 - OR (g=3D'qponmlk' AND f GLOB 'mnopq*') + OR (g=3D'qponmlk' AND f LIKE 'mnopq%') OR b=3D971 OR a=3D37 OR a=3D7 @@ -35990,7 +35990,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE f=3D'tuvwxyzab' - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -36004,7 +36004,7 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE f=3D'tuvwxyzab' - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') ]]) end, { -- @@ -36019,7 +36019,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D638 OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR b=3D165 OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR f=3D'stuvwxyza' @@ -36041,7 +36041,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D638 OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL) - OR (g=3D'gfedcba' AND f GLOB 'lmnop*') + OR (g=3D'gfedcba' AND f LIKE 'lmnop%') OR b=3D165 OR ((a BETWEEN 10 AND 12) AND a!=3D11) OR f=3D'stuvwxyza' @@ -36067,7 +36067,7 @@ test:do_test( OR a=3D93 OR b=3D858 OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -36086,7 +36086,7 @@ test:do_test( OR a=3D93 OR b=3D858 OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL) - OR (g=3D'jihgfed' AND f GLOB 'vwxyz*') + OR (g=3D'jihgfed' AND f LIKE 'vwxyz%') ]]) end, { -- @@ -36157,7 +36157,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'qponmlk' AND f GLOB 'mnopq*') + WHERE (g=3D'qponmlk' AND f LIKE 'mnopq%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D5 OR b=3D396 @@ -36174,7 +36174,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'qponmlk' AND f GLOB 'mnopq*') + WHERE (g=3D'qponmlk' AND f LIKE 'mnopq%') OR ((a BETWEEN 24 AND 26) AND a!=3D25) OR a=3D5 OR b=3D396 @@ -36191,7 +36191,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D748 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 69 AND 71) AND a!=3D70) @@ -36210,7 +36210,7 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') OR b=3D748 OR (d>=3D97.0 AND d<98.0 AND d IS NOT NULL) OR ((a BETWEEN 69 AND 71) AND a!=3D70) @@ -36231,7 +36231,7 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) OR ((a BETWEEN 8 AND 10) AND a!=3D9) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR a=3D50 OR a=3D46 OR ((a BETWEEN 38 AND 40) AND a!=3D39) @@ -36249,7 +36249,7 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D30.0 AND d<31.0 AND d IS NOT NULL) OR ((a BETWEEN 8 AND 10) AND a!=3D9) - OR (f GLOB '?pqrs*' AND f GLOB 'opqr*') + OR (f LIKE '_pqrs%' AND f LIKE 'opqr%') OR a=3D50 OR a=3D46 OR ((a BETWEEN 38 AND 40) AND a!=3D39) @@ -36312,7 +36312,7 @@ test:do_test( OR c=3D16016 OR b=3D1078 OR b=3D960 - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') ]]) end, { -- @@ -36330,7 +36330,7 @@ test:do_test( OR c=3D16016 OR b=3D1078 OR b=3D960 - OR (g=3D'hgfedcb' AND f GLOB 'jklmn*') + OR (g=3D'hgfedcb' AND f LIKE 'jklmn%') ]]) end, { -- @@ -36345,7 +36345,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1081 OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR ((a BETWEEN 73 AND 75) AND a!=3D74) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR a=3D6 @@ -36363,7 +36363,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1081 OR ((a BETWEEN 19 AND 21) AND a!=3D20) - OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*') + OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%') OR ((a BETWEEN 73 AND 75) AND a!=3D74) OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL) OR a=3D6 @@ -36379,10 +36379,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR a=3D92 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR f=3D'fghijklmn' OR a=3D100 OR b=3D209 @@ -36402,10 +36402,10 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'fedcbaz' AND f GLOB 'rstuv*') - OR (g=3D'rqponml' AND f GLOB 'lmnop*') + WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%') + OR (g=3D'rqponml' AND f LIKE 'lmnop%') OR a=3D92 - OR (f GLOB '?klmn*' AND f GLOB 'jklm*') + OR (f LIKE '_klmn%' AND f LIKE 'jklm%') OR f=3D'fghijklmn' OR a=3D100 OR b=3D209 @@ -36458,13 +36458,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE ((a BETWEEN 51 AND 53) AND a!=3D52) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D91 OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR b=3D77 - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') ]]) end, { -- @@ -36478,13 +36478,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE ((a BETWEEN 51 AND 53) AND a!=3D52) - OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*') - OR (f GLOB '?cdef*' AND f GLOB 'bcde*') + OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%') + OR (f LIKE '_cdef%' AND f LIKE 'bcde%') OR b=3D91 OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR b=3D77 - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') - OR (g=3D'vutsrqp' AND f GLOB 'pqrst*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') + OR (g=3D'vutsrqp' AND f LIKE 'pqrst%') ]]) end, { -- @@ -36582,13 +36582,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D737 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D40 OR f=3D'uvwxyzabc' OR b=3D311 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D927 OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) ]]) @@ -36604,13 +36604,13 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D737 - OR (g=3D'wvutsrq' AND f GLOB 'ijklm*') - OR (f GLOB '?ghij*' AND f GLOB 'fghi*') + OR (g=3D'wvutsrq' AND f LIKE 'ijklm%') + OR (f LIKE '_ghij%' AND f LIKE 'fghi%') OR a=3D40 OR f=3D'uvwxyzabc' OR b=3D311 - OR (g=3D'nmlkjih' AND f GLOB 'bcdef*') - OR (f GLOB '?hijk*' AND f GLOB 'ghij*') + OR (g=3D'nmlkjih' AND f LIKE 'bcdef%') + OR (f LIKE '_hijk%' AND f LIKE 'ghij%') OR b=3D927 OR (d>=3D50.0 AND d<51.0 AND d IS NOT NULL) ]]) @@ -36657,16 +36657,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR b=3D487 OR f=3D'tuvwxyzab' - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR b=3D971 OR c=3D19019 OR a=3D39 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR b=3D550 - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D660 ]]) end, { @@ -36680,16 +36680,16 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'xwvutsr' AND f GLOB 'ghijk*') + WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%') OR b=3D487 OR f=3D'tuvwxyzab' - OR (g=3D'onmlkji' AND f GLOB 'wxyza*') + OR (g=3D'onmlkji' AND f LIKE 'wxyza%') OR b=3D971 OR c=3D19019 OR a=3D39 - OR (f GLOB '?nopq*' AND f GLOB 'mnop*') + OR (f LIKE '_nopq%' AND f LIKE 'mnop%') OR b=3D550 - OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*') + OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%') OR b=3D660 ]]) end, { @@ -36735,7 +36735,7 @@ test:do_test( OR b=3D630 OR b=3D935 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR f=3D'yzabcdefg' OR ((a BETWEEN 37 AND 39) AND a!=3D38) ]]) @@ -36754,7 +36754,7 @@ test:do_test( OR b=3D630 OR b=3D935 OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL) - OR (g=3D'srqponm' AND f GLOB 'defgh*') + OR (g=3D'srqponm' AND f LIKE 'defgh%') OR f=3D'yzabcdefg' OR ((a BETWEEN 37 AND 39) AND a!=3D38) ]]) @@ -36774,7 +36774,7 @@ test:do_test( OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR f=3D'abcdefghi' OR b=3D696 - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D682 OR a=3D32 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -36797,7 +36797,7 @@ test:do_test( OR (d>=3D86.0 AND d<87.0 AND d IS NOT NULL) OR f=3D'abcdefghi' OR b=3D696 - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D682 OR a=3D32 OR ((a BETWEEN 34 AND 36) AND a!=3D35) @@ -36815,8 +36815,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (g=3D'gfedcba' AND f GLOB 'lmnop*') - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D311 ]]) end, { @@ -36830,8 +36830,8 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (g=3D'gfedcba' AND f GLOB 'lmnop*') - OR (f GLOB '?ijkl*' AND f GLOB 'hijk*') + WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%') + OR (f LIKE '_ijkl%' AND f LIKE 'hijk%') OR b=3D311 ]]) end, { @@ -36884,7 +36884,7 @@ test:do_test( WHERE ((a BETWEEN 98 AND 100) AND a!=3D99) OR b=3D110 OR ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D484 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) ]]) @@ -36902,7 +36902,7 @@ test:do_test( WHERE ((a BETWEEN 98 AND 100) AND a!=3D99) OR b=3D110 OR ((a BETWEEN 38 AND 40) AND a!=3D39) - OR (g=3D'tsrqpon' AND f GLOB 'xyzab*') + OR (g=3D'tsrqpon' AND f LIKE 'xyzab%') OR b=3D484 OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL) ]]) @@ -36925,7 +36925,7 @@ test:do_test( OR c=3D27027 OR b=3D1026 OR c=3D6006 - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) ]]) end, { @@ -36947,7 +36947,7 @@ test:do_test( OR c=3D27027 OR b=3D1026 OR c=3D6006 - OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*') + OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%') OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL) ]]) end, { @@ -36963,11 +36963,11 @@ test:do_test( SELECT a FROM t2 WHERE (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR a=3D97 OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D674 OR c=3D14014 OR b=3D69 @@ -36985,11 +36985,11 @@ test:do_test( SELECT a FROM t3 WHERE (d>=3D79.0 AND d<80.0 AND d IS NOT NULL) OR ((a BETWEEN 18 AND 20) AND a!=3D19) - OR (g=3D'qponmlk' AND f GLOB 'nopqr*') + OR (g=3D'qponmlk' AND f LIKE 'nopqr%') OR a=3D97 OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL) OR ((a BETWEEN 22 AND 24) AND a!=3D23) - OR (g=3D'mlkjihg' AND f GLOB 'ghijk*') + OR (g=3D'mlkjihg' AND f LIKE 'ghijk%') OR b=3D674 OR c=3D14014 OR b=3D69 @@ -37039,12 +37039,12 @@ test:do_test( SELECT a FROM t2 WHERE b=3D451 OR ((a BETWEEN 11 AND 13) AND a!=3D12) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D539 OR a=3D26 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR b=3D465 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -37059,12 +37059,12 @@ test:do_test( SELECT a FROM t3 WHERE b=3D451 OR ((a BETWEEN 11 AND 13) AND a!=3D12) - OR (g=3D'tsrqpon' AND f GLOB 'abcde*') + OR (g=3D'tsrqpon' AND f LIKE 'abcde%') OR b=3D539 OR a=3D26 - OR (g=3D'srqponm' AND f GLOB 'efghi*') + OR (g=3D'srqponm' AND f LIKE 'efghi%') OR b=3D465 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') ]]) end, { -- @@ -37135,9 +37135,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t2 - WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*') + WHERE (f LIKE '_cdef%' AND f LIKE 'bcde%') OR a=3D13 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR b=3D322 OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR b=3D377 @@ -37156,9 +37156,9 @@ test:do_test( function() return count_steps_sort([[ SELECT a FROM t3 - WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*') + WHERE (f LIKE '_cdef%' AND f LIKE 'bcde%') OR a=3D13 - OR (f GLOB '?stuv*' AND f GLOB 'rstu*') + OR (f LIKE '_stuv%' AND f LIKE 'rstu%') OR b=3D322 OR ((a BETWEEN 33 AND 35) AND a!=3D34) OR b=3D377 @@ -37181,9 +37181,9 @@ test:do_test( OR b=3D990 OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) OR b=3D605 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D968 OR a=3D66 ]]) @@ -37202,9 +37202,9 @@ test:do_test( OR b=3D990 OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) OR b=3D605 - OR (g=3D'srqponm' AND f GLOB 'cdefg*') + OR (g=3D'srqponm' AND f LIKE 'cdefg%') OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL) - OR (g=3D'vutsrqp' AND f GLOB 'qrstu*') + OR (g=3D'vutsrqp' AND f LIKE 'qrstu%') OR b=3D968 OR a=3D66 ]]) @@ -37220,12 +37220,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t2 WHERE b=3D1059 - OR (g=3D'srqponm' AND f GLOB 'ghijk*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) end, { @@ -37240,12 +37240,12 @@ test:do_test( return count_steps_sort([[ SELECT a FROM t3 WHERE b=3D1059 - OR (g=3D'srqponm' AND f GLOB 'ghijk*') - OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*') - OR (g=3D'nmlkjih' AND f GLOB 'fghij*') + OR (g=3D'srqponm' AND f LIKE 'ghijk%') + OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%') + OR (g=3D'nmlkjih' AND f LIKE 'fghij%') OR (d>=3D17.0 AND d<18.0 AND d IS NOT NULL) OR (d>=3D37.0 AND d<38.0 AND d IS NOT NULL) - OR (g=3D'onmlkji' AND f GLOB 'abcde*') + OR (g=3D'onmlkji' AND f LIKE 'abcde%') OR ((a BETWEEN 39 AND 41) AND a!=3D40) ]]) end, { @@ -37261,7 +37261,7 @@ test:do_test( SELECT a FROM t2 WHERE ((a BETWEEN 41 AND 43) AND a!=3D42) OR f=3D'nopqrstuv' - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D42 OR b=3D729 OR b=3D297 @@ -37282,7 +37282,7 @@ test:do_test( SELECT a FROM t3 WHERE ((a BETWEEN 41 AND 43) AND a!=3D42) OR f=3D'nopqrstuv' - OR (g=3D'ponmlkj' AND f GLOB 'stuvw*') + OR (g=3D'ponmlkj' AND f LIKE 'stuvw%') OR a=3D42 OR b=3D729 OR b=3D297 @@ -37337,9 +37337,9 @@ test:do_test( SELECT a FROM t2 WHERE b=3D451 OR b=3D660 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR b=3D781 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D198 OR b=3D1023 OR a=3D98 @@ -37359,9 +37359,9 @@ test:do_test( SELECT a FROM t3 WHERE b=3D451 OR b=3D660 - OR (g=3D'onmlkji' AND f GLOB 'yzabc*') + OR (g=3D'onmlkji' AND f LIKE 'yzabc%') OR b=3D781 - OR (g=3D'jihgfed' AND f GLOB 'wxyza*') + OR (g=3D'jihgfed' AND f LIKE 'wxyza%') OR b=3D198 OR b=3D1023 OR a=3D98 @@ -37383,7 +37383,7 @@ test:do_test( OR a=3D86 OR c=3D17017 OR ((a BETWEEN 85 AND 87) AND a!=3D86) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR a=3D80 OR b=3D773 ]]) @@ -37402,7 +37402,7 @@ test:do_test( OR a=3D86 OR c=3D17017 OR ((a BETWEEN 85 AND 87) AND a!=3D86) - OR (g=3D'gfedcba' AND f GLOB 'mnopq*') + OR (g=3D'gfedcba' AND f LIKE 'mnopq%') OR a=3D80 OR b=3D773 ]]) @@ -37419,7 +37419,7 @@ test:do_test( SELECT a FROM t2 WHERE b=3D1092 OR a=3D23 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR d<0.0 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR a=3D91 @@ -37437,7 +37437,7 @@ test:do_test( SELECT a FROM t3 WHERE b=3D1092 OR a=3D23 - OR (f GLOB '?defg*' AND f GLOB 'cdef*') + OR (f LIKE '_defg%' AND f LIKE 'cdef%') OR d<0.0 OR (d>=3D22.0 AND d<23.0 AND d IS NOT NULL) OR a=3D91 -- WBR, Nikita Tatunov. n.tatunov@tarantool.org --Apple-Mail=_C5906CD7-856B-4C72-9D3C-1AA7A1FE35B9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello, thank you for comments.
See full diff = is at the end of the letter.

On 11 Sep 2018, at 01:06, Alex = Khatskevich <avkhatskevich@tarantool.org> wrote:

=20 =20
1. See some comments below.
2. Please, send the full patch diff when done (not just an incremental diff as you did).
Patch seems ok in overall.

On 09.09.2018 17:57, Nikita Tatunov wrote:
Hello, = please consider corrected version of the patch.
Diff with = the previous version at the end.

On 17 Aug 2018, at 11:25, Alex Khatskevich <avkhatskevich@tarantool.org> wrote:



On 16.08.2018 20:00, N.Tatunov wrote:
GLOB is a legacy extension for LIKE from SQLite. As we want our SQL to
be close to ANSI SQL & LIKE to depend on collations, we do not want to
support it. This patch totally removes it from Tarantool along with any
mentions of it.
1.We delete it because = it is not working properly, and instead of fixing it = we
want to replace it with more general regexp. Delete other unnecessary = thoughts
from this = message.
2. Do not use "we", = "our" in commit messages.

As discussed above it=E2=80=99s not going to = be changed.
Ok.

 static int
 sql_utf8_pattern_compare(const char *pattern,
   const char *string,
-  const = struct compareInfo *pInfo,
-  UChar32 matchOther)
+  const = int *is_like_ci,
Pass this parameter by value.

Fixed.

+  UChar32 match_other)
 {
  /* Next pattern and input string chars */
  UChar32 c, c2;
- /* "?" or "_" */
- UChar32 matchOne =3D pInfo->matchOne;
- /* "*" or "%" */
- UChar32 matchAll =3D pInfo->matchAll;
- /* True if uppercase=3D=3Dlowercase */
- UChar32 noCase =3D pInfo->noCase;
+ /* "_" */
+ UChar32 match_one =3D '_';
+ /* "%" */
+ UChar32 match_all =3D '%';
This variables consumes stack. Can they be moved to defines?
If it will break smth, make them const.

moved them to defines.


 int
-sqlite3_strlike(const char *zPattern, const char *zStr, unsigned int esc)
+sql_strlike_ci(const char *zPattern, const char *zStr, unsigned int esc)
 {
- return sql_utf8_pattern_compare(zPattern, zStr, &likeInfoNorm, esc);
+ return sql_utf8_pattern_compare(zPattern, zStr, &case_insensitive_like, esc);
Hardcode `case_insensitive_like` value here.

Done.

+ /**
+  * = Limit the length of the LIKE pattern to avoid problems
+  * of = deep recursion and N*N behavior in
I thought that only = globe could require N*N time. Check delete the = comment.

The reason is the recursion in sql_utf8_pattern_compare() which is still
there.


-      "ESCA= PE expression must be a single character",
+      "ESCA= PE expression must be a"
+      " = single character",
Do not split error messages at the middle of a sentence. It makes errors ungreppable.
Make it <80 somehow different.


Have already been discussed in this = thread.
I suppose that we concluded to try to fit into 80 and split the string only
in case it is impossible.

I = don=E2=80=99t think so. Anyways, Alexander could you please give your = thoughts?

- sqlite3_result_error(context, "LIKE or GLOB pattern can only"
-      " = contain UTF-8 characters", -1);
+ sqlite3_result_error(context, "LIKE pattern can only contain"
+      " = UTF-8 characters", -1);
Do not split error messages at the middle of a sentence. Make it <80 somehow different.

Have already been discussed in this = thread.
same

+ int *is_like_ci;
+ if (is_case_sensitive)
+ is_like_ci =3D (int *)&case_sensitive_like;
pass this var by = value.

We need (void *) in sqlite3CreateFunc(), i = don=E2=80=99t think it=E2=80=99s relevant to pass
variable by value.
Yes, sorry.

diff --git a/test/sql-tap/alter.test.lua b/test/sql-tap/alter.test.lua
index cfe2801..773bdeb 100755
--- a/test/sql-tap/alter.test.lua
+++ b/test/sql-tap/alter.test.lua
@@ -230,9 +230,10 @@ test:do_execsql_test(
 test:do_execsql_test(
     "alter-5.1",
     [[
+        PRAGMA = case_sensitive_like =3D true;
=          CREATE TABLE xyz(x = PRIMARY KEY);
=          ALTER TABLE xyz = RENAME TO "xyz1234abc";
-        SELECT = "name" FROM "_space" WHERE "name" GLOB 'xyz*';
+        SELECT = "name" FROM "_space" WHERE "name" LIKE 'xyz%';
This test become unreasonably complex.
Do just "select where name =3D 'xyz1234abc'
Or at least delete case_sensitive=E2=80=A6

Done.

     ]], = {
=          -- = <alter-5.1>
=          "xyz1234abc"
@@ -243,7 +244,8 @@ test:do_execsql_test(
=      "alter-5.2",
     [[
=          ALTER TABLE = "xyz1234abc" RENAME TO xyzabc;
-        SELECT = "name" FROM "_space" WHERE "name" GLOB 'XYZ*';
+        SELECT = "name" FROM "_space" WHERE "name" LIKE 'XYZ%';
+        PRAGMA = case_sensitive_like =3D false;
This test become unreasonably complex.
Do just "select where name =3D =E2=80=98xyz1234abc'

Done.

--- NOTE: This test needs = refactoring after deletion of GLOB &
---  type restrictions for LIKE. (See #3572)
---    {"LIKE", "like"},
---    {"GLOB", "glob"},
+    {"LIKE", "like"},
     {"AND", "and"},
     {"OR", "or"},
     {"MATCH", "match"},
@@ -98,12 +95,9 @@ operations =3D {
     {"+", "-"},
=      {"<<", ">>", = "&", "|"},
     {"<", "<=3D", = ">", ">=3D"},
--- NOTE: This test needs refactoring after deletion of GLOB &
---  type restrictions for LIKE. (See #3572)
 -- Another NOTE: MATCH & REGEXP aren't = supported in Tarantool &
---   are waiting for their hour, don't confuse them
---  being commented with ticket above.
-    {"=3D", "=3D=3D", "!=3D", = "<>"}, --"LIKE", "GLOB"}, --"MATCH", "REGEXP"},
+--   are waiting for their hour.
+    {"=3D", "=3D=3D", "!=3D", = "<>", "LIKE"}, --"MATCH", "REGEXP"},
     {"AND"},
     {"OR"},
 }
@@ -128,7 +122,7 @@ end
 -- EVIDENCE-OF: R-15514-65163 SQLite understands = the following binary
 -- operators, in order from highest to lowest precedence: || * / % + -
 -- << >> & | < <=3D > = >=3D =3D =3D=3D !=3D <> IS IS
--- NOT IN LIKE GLOB MATCH REGEXP AND OR
+-- NOT IN LIKE MATCH REGEXP AND OR
 --
 -- EVIDENCE-OF: R-38759-38789 Operators IS and = IS NOT have the same
 -- precedence as =3D.
@@ -467,18 +461,63 @@ literals =3D {
 for _, op in ipairs(oplist) do
     for n1, rhs in = ipairs(literals) do
=          for n2, lhs in = ipairs(literals) do
- =            local = t =3D test:execsql(string.format(" SELECT typeof(%s %s %s) ", lhs, op, rhs))[1]
- =            test:do_= test(
- =             &n= bsp;  string.format("e_expr-7.%s.%s.%s", opname[op], n1, n2),
- =             &n= bsp;  function()
- =             &n= bsp;      --print("\n op "..op.." t = "..t)
- =             &n= bsp;      return (((op =3D=3D "||") and = ((t =3D=3D "text") or
- =             &n= bsp;           &nbs= p;  (t =3D=3D "null"))) or
- =             &n= bsp;           &nbs= p;  ((op ~=3D "||") and (((t =3D=3D "integer") or
- =             &n= bsp;           &nbs= p;          (t =3D=3D = "real")) or
- =             &n= bsp;           &nbs= p;          (t =3D=3D = "null")))) and 1 or 0
- =             &n= bsp;  end, 1)
+ =            if op = ~=3D "LIKE" then
1. Why do not just = delete like from `oplist`?
2. We were discussing this place with you and Georgy, and decided that you do
not touch this for loop at all.

Ok. Commented LIKE in `oplist` (it=E2=80=99s = still a binary operator who knows, maybe we will revive it).

-local function glob(args)
-    return 1
-end
 -box.internal.sql_create_function("GLOB", = glob)
-box.internal.sql_create_function("MATCH", glob)
-box.internal.sql_create_function("REGEXP", glob)
+-- NOTE: GLOB is removed from Tarantool, thus it'll be needed to
+--       refactor these = calls. They don't work right now since
+-- =          we don't support = MATHC & REGEXP.
+-- local function glob(args)
+--     return 1
+-- end
This test do not test = the glob function. Delete this comment.

Done.

+
+-- box.internal.sql_create_function("MATCH", glob)
+-- box.internal.sql_create_function("REGEXP", = glob)
You was lucky that commenting those lines do not break the tests. (because there is a similar
code above)
Return it = back.

Done.

@@ -2274,15 +2312,23 @@ test:do_execsql_test(
=          -- = </e_expr-16.1.7>
     })
 --- EVIDENCE-OF: R-52087-12043 The GLOB operator = is similar to LIKE but
--- uses the Unix file globbing syntax for its wildcards.
---
--- EVIDENCE-OF: R-09813-17279 Also, GLOB is case sensitive, unlike LIKE.
+-- EVIDENCE-OF: R-52087-12043 LIKE doesn't use Unix file globbing
+-- syntax for its wildcards.
Those test was designed especially for the glob function.
There are similar tests for like above.
You should delete it instead of renaming.

Ok, Deleted.

 --- EVIDENCE-OF: R-39616-20555 = Both GLOB and LIKE may be preceded by the
+-- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by the
 -- NOT keyword to invert the sense of the = test.
 --
 test:do_execsql_test(
+    "e_expr-17.2.0",
+    [[
+        SELECT = 'abcxyz' NOT LIKE 'ABC%'
+    ]], {
+        -- = <e_expr-17.2.0>
+        1
+        -- = </e_expr-17.2.0>
+    })
+
+test:do_execsql_test(
     "e_expr-17.2.1",
     [[
-        SELECT = 'abcxyz' NOT GLOB 'ABC*'
+        SELECT = 'abcxyz' NOT LIKE 'abc%'
     ]], {
=          -- = <e_expr-17.2.1>
-        1
+        0
=          -- = </e_expr-17.2.1>
     })
   test:do_execsql_test(
     "e_expr-17.2.2",
     [[
-        SELECT = 'abcxyz' NOT GLOB 'abc*'
+        PRAGMA = case_sensitive_like =3D 0
     ]], {
=          -- = <e_expr-17.2.2>
-        0
-        -- = </e_expr-17.2.2>
+
+        -- = <e_expr-17.2.2>
     })
   test:do_execsql_test(
@@ -2405,10 +2461,11 @@ test:do_execsql_test(
 -- MUST_WORK_TEST uses access to nullvalue... = (sql parameters) and built in functions
 if 0>0 then
     db("nullvalue", = "null")
do not change tests = which are not working.
There is a chance chat you do it wrong and you do not know about = it.
    
Made it back.

diff --git a/test/sql-tap/like3.test.lua b/test/sql-tap/like3.test.lua
index 505d2fa..0bc71a0 100755
--- a/test/sql-tap/like3.test.lua
+++ b/test/sql-tap/like3.test.lua
@@ -12,13 +12,13 @@ test:plan(7)
 --    May you find forgiveness = for yourself and forgive others.
 --    May you share freely, never = taking more than you give.
 --
= --------------------------------------------------------------------------=
+-----------------------------------------------------------------
 --
--- This file implements regression tests for SQLite library.  The
--- focus of this file is testing the LIKE and GLOB operators and
--- in particular the optimizations that occur to help those operators
--- run faster and that those optimizations work correctly when there
--- are both strings and blobs being tested.
+-- This file implements regression tests for SQLite library. The
+-- focus of this file is testing the LIKE operator and
+-- in particular the optimizations that occur to help this
+-- operator run faster and that those optimizations work
+-- correctly when there are both strings and blobs being tested.
 --
 -- Ticket = 05f43be8fdda9fbd948d374319b99b054140bc36 shows that the following
 -- SQL was not working correctly:
@@ -70,10 +70,11 @@ test:do_execsql_test(
=  test:do_execsql_test(
     "like3-2.0",
     [[
+        PRAGMA = case_sensitive_like =3D 1;
=          CREATE TABLE t2(a = PRIMARY KEY, b TEXT);
=          INSERT INTO t2 = SELECT a, b FROM t1;
=          CREATE INDEX t2ba = ON t2(b,a);
-        SELECT a, = b FROM t2 WHERE b GLOB 'ab*' ORDER BY +a;
+        SELECT a, = b FROM t2 WHERE b LIKE 'ab%' ORDER BY +a;
Those tests were especially created for glob. Delete it instead of renaming.

Done.

Diff with the prev version of the patch:

diff --git a/src/box/sql/func.c b/src/box/sql/func.c
index 177193e94..28b435ae3 100644
--- a/src/box/sql/func.c
+++ b/src/box/sql/func.c
@@ -631,6 +631,12 @@ static const int case_insensitive_like =3D 1;
  */
 static const int case_sensitive_like =3D 0;
 
+/**
+ * Wildcards.
+ */
+#define match_one '_'
+#define match_all '%'
+
 /**
  * Possible error returns from sql_utf8_pattern_compare().
  */
@@ -672,15 +678,11 @@ static const int case_sensitive_like =3D 0;
 static int
 sql_utf8_pattern_compare(const char *pattern,
 = const char *string,
- = const int *is_like_ci,
+ = const int is_like_ci,
 = UChar32 match_other)
 {
 = /* Next pattern and input string chars */
 = UChar32 c, c2;
- = /* "_" */
- = UChar32 match_one =3D '_';
- = /* "%" */
- = UChar32 match_all =3D '%';
 = /* One past the last escaped input char */
 = const char *zEscaped =3D 0;
 = const char *pattern_end =3D pattern + strlen(pattern);
@@ -741,7 +743,7 @@ sql_utf8_pattern_compare(const char *pattern,
 = */
 
 = int bMatch;
- = if (*is_like_ci)
+ = if (is_like_ci)
 = c =3D u_tolower(c);
 = while (string < string_end){
 = /**
@@ -757,7 +759,7 @@ sql_utf8_pattern_compare(const char *pattern,
 = c2 =3D Utf8Read(string, string_end);
 = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
 = return SQL_NOMATCH;
- = if (!(*is_like_ci)) {
+ = if (!is_like_ci) {
 = if (c2 !=3D c)
 = continue;
 = } else {
@@ -786,7 +788,7 @@ sql_utf8_pattern_compare(const char *pattern,
 = return SQL_NOMATCH;
 = if (c =3D=3D c2)
 = continue;
- = if (*is_like_ci) {
+ = if (is_like_ci) {
 = /**
 = * Small optimisation. Reduce number of
 = * calls to u_tolower function. SQL
@@ -814,7 +816,7 @@ sql_utf8_pattern_compare(const char *pattern,
 int
 sql_strlike_cs(const char *zPattern, const char *zStr, unsigned int esc)
 {
- = return sql_utf8_pattern_compare(zPattern, zStr, &case_sensitive_like, esc);
+ = return sql_utf8_pattern_compare(zPattern, zStr, case_sensitive_like, esc);
 }
 
 /**
@@ -824,7 +826,7 @@ sql_strlike_cs(const char *zPattern, const char *zStr, unsigned int esc)
 int
 sql_strlike_ci(const char *zPattern, const char *zStr, unsigned int esc)
 {
- = return sql_utf8_pattern_compare(zPattern, zStr, &case_insensitive_like, esc);
+ = return sql_utf8_pattern_compare(zPattern, zStr, case_insensitive_like, esc);
 }
 
 /**
@@ -907,7 +909,7 @@ likeFunc(sqlite3_context *context, int argc, sqlite3_value **argv)
 = sqlite3_like_count++;
 #endif
 = int res;
- = res =3D sql_utf8_pattern_compare(zB, zA, is_like_ci, = escape);
+ = res =3D sql_utf8_pattern_compare(zB, zA, *is_like_ci, = escape);
 = if (res =3D=3D SQL_INVALID_PATTERN) {
 = sqlite3_result_error(context, "LIKE pattern can only contain"
 =     " UTF-8 characters", -1);
diff --git a/src/box/sql/whereexpr.c b/src/box/sql/whereexpr.c
index 947bd5d94..2d9fb6453 100644
--- a/src/box/sql/whereexpr.c
+++ b/src/box/sql/whereexpr.c
@@ -218,6 +218,12 @@ operatorMask(int op)
 = return c;
 }
 
+/**
+ * Wildcard characters.
+ */
+#define match_one '_'
+#define match_all '%'
+
 #ifndef SQLITE_OMIT_LIKE_OPTIMIZATION
 /**
  * Check to see if the given expression is a LIKE operator that
@@ -258,9 +264,6 @@ is_like(Parse *pParse,
 = int c;
 = /* Number of non-wildcard prefix characters */
 = int cnt;
- = /* Wildcard characters */
- = char match_all =3D '%';
- = char match_one =3D '_';
 = /* Database connection */
 = sqlite3 *db =3D pParse->db;
 = sqlite3_value *pVal =3D 0;
diff --git a/test/sql-tap/alter.test.lua b/test/sql-tap/alter.test.lua
index 773bdebdb..98338c493 100755
--- a/test/sql-tap/alter.test.lua
+++ b/test/sql-tap/alter.test.lua
@@ -230,10 +230,9 @@ test:do_execsql_test(
 test:do_execsql_test(
     "alter-5.1",
     [[
-        PRAGMA case_sensitive_like =3D = true;
         CREATE TABLE xyz(x PRIMARY = KEY);
         ALTER TABLE xyz RENAME TO = "xyz1234abc";
-        SELECT "name" FROM "_space" = WHERE "name" LIKE 'xyz%';
+        SELECT "name" FROM "_space" = WHERE "name" =3D 'xyz1234abc';
     ]], {
         -- <alter-5.1>
         "xyz1234abc"
@@ -244,8 +243,7 @@ test:do_execsql_test(
     "alter-5.2",
     [[
         ALTER TABLE "xyz1234abc" = RENAME TO xyzabc;
-        SELECT "name" FROM "_space" = WHERE "name" LIKE 'XYZ%';
-        PRAGMA case_sensitive_like =3D = false;
+        SELECT "name" FROM "_space" = WHERE "name" =3D 'XYZABC';
     ]], {
         -- <alter-5.2>
         "XYZABC"
diff --git a/test/sql-tap/e_expr.test.lua b/test/sql-tap/e_expr.test.lua
index 162026845..0d69e8535 100755
--- a/test/sql-tap/e_expr.test.lua
+++ b/test/sql-tap/e_expr.test.lua
@@ -1,6 +1,6 @@
 #!/usr/bin/env tarantool
 test =3D require("sqltester")
-test:plan(11521)
+test:plan(10647)
 
 --!./tcltestrunner.lua
 -- 2010 July 16
@@ -77,7 +77,7 @@ local operations =3D {
     {"<>", "ne1"},
     {"!=3D", "ne2"},
     {"IS", "is"},
-    {"LIKE", "like"},
+--    {"LIKE", "like"},
     {"AND", "and"},
     {"OR", "or"},
     {"MATCH", "match"},
@@ -96,8 +96,9 @@ operations =3D {
     {"<<", ">>", "&", = "|"},
     {"<", "<=3D", ">", = ">=3D"},
 -- Another NOTE: MATCH & REGEXP aren't supported in Tarantool &
--- = are waiting for their hour.
-    {"=3D", "=3D=3D", "!=3D", "<>", "LIKE"}, --"MATCH", "REGEXP"},
+--               are = waiting for their hour, don't confuse them
+--               being = commented with commenting of "LIKE".
+    {"=3D", "=3D=3D", "!=3D", "<>"}, = --"LIKE"}, --"MATCH", "REGEXP"},
Delete Like. No one returns here.

It=E2=80= =99s a table of all of the operators thus I think it still worth leaving = it there.
Who knows, it may be that someone will revive tests = for LIKE.

     {"AND"},
     {"OR"},
 }
@@ -461,67 +462,21 @@ literals =3D {
 for _, op in ipairs(oplist) do
     for n1, rhs in ipairs(literals) do
         for n2, lhs in = ipairs(literals) do
-            if op ~=3D "LIKE" = then
-               =  local t =3D test:execsql(string.format(" SELECT typeof(%s %s %s) ", lhs, op, rhs))[1]
-               =  test:do_test(
-                 =    string.format("e_expr-7.%s.%s.%s", opname[op], n1, = n2),
-                 =    function()
-                 =        return (((op =3D=3D "||") and ((t =3D=3D "text") or
-                 =                (t =3D=3D = "null"))) or
-                 =                ((op ~=3D "||") and (((t =3D=3D "integer") or
-                 =                 (t =3D=3D = "real")) or
-                 =                 (t =3D=3D "null")))) and 1 or 0
-                 =    end, 1)
-            end
-        end
-    end
-end
-
-local valid_patterns =3D
-    {"'abc'", "'hexadecimal'", "''", 123, -123, 0,
-    123.4, 0.0, -123.4, "X''", "X'0000'", "NULL"}
-
-local invalid_patterns =3D {"X'ABCDEF'"}
-
-for n1, rhs in ipairs(valid_patterns) do
-    for n2, lhs in ipairs(literals) do
-        local t =3D = test:execsql(string.format(" SELECT typeof(%s LIKE %s) ", lhs, rhs))[1]
-        test:do_test(
-           =  string.format("e_expr-7.%s.LIKE.%s", n1, n2),
-            function()
-               =  return (t =3D=3D "integer" or
-                 =        t =3D=3D "real" or
-                 =        t =3D=3D "null") and 1 or 0
-            end, 1)
-    end
-end
+            local t =3D test:execsql(string.format(" SELECT typeof(%s %s %s) ", lhs, op, rhs))[1]
+           =  test:do_test(
+                string.format("e_expr-7.%s.%s.%s", opname[op], n1, = n2),
+               =  function()
+                 =    --print("\n op "..op.." t "..t)
+                 =    return (((op =3D=3D "||") and ((t =3D=3D "text") or
+                 =            (t =3D=3D "null"))) or
+                 =            ((op ~=3D "||") and (((t =3D=3D "integer") or
+                 =                    (t = =3D=3D "real")) or
+                 =                    (t = =3D=3D "null")))) and 1 or 0
+                end, = 1)
 
-for n1, rhs in ipairs(invalid_patterns) do
-    for n2, lhs in ipairs(literals) do
-        local t =3D string.format(" = SELECT typeof(%s LIKE %s) ", lhs, rhs)
-        local test_name =3D string.format("e_expr-7.%s.LIKE.%s", n1 + 12, n2)
-        if n2 ~=3D 13 then
-           =  test:do_catchsql_test(
-               =  test_name,
-               =  t,
-               =  {
-                 =    -- <test_name>
-                 =    1, "LIKE pattern can only contain UTF-8 characters"
-                 =    -- <test_name>
-               =  })
-        else
-           =  test:do_catchsql_test(
-               =  test_name,
-               =  t,
-               =  {
-                 =    -- <test_name>
-                 =    0, {"null"}
-                 =    -- <test_name>
-               =  })
         end
     end
 end
-
 ---------------------------------------------------------= ------------------
 -- Test the IS and IS NOT operators.
 --
@@ -1343,15 +1298,12 @@ test:execsql [[
     CREATE TABLE tblname(cname PRIMARY = KEY);
 ]]
 
--- NOTE: GLOB is removed from Tarantool, thus it'll be needed to
---       refactor these calls. They don't = work right now since
---          we don't support MATHC = & REGEXP.
--- local function glob(args)
---     return 1
--- end
+local function glob(args)
+    return 1
+end
 
--- box.internal.sql_create_function("MATCH", glob)
--- box.internal.sql_create_function("REGEXP", glob)
+box.internal.sql_create_function("MATCH", glob)
+box.internal.sql_create_function("REGEXP", glob)
 local test_cases12 =3D{
     {1, 123},
     {2, 123.4e05},
@@ -2312,96 +2264,14 @@ test:do_execsql_test(
         -- = </e_expr-16.1.7>
     })
 
--- EVIDENCE-OF: R-52087-12043 LIKE doesn't use Unix file globbing
--- syntax for its wildcards.
---
-test:do_execsql_test(
-    "e_expr-17.1.0",
-    [[
-        PRAGMA case_sensitive_like =3D = 1
-    ]], {
-        -- <e_expr-17.1.0>
-
-        -- <e_expr-17.1.0>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.1",
-    [[
-        SELECT 'abcxyz' LIKE = 'abc*'
-    ]], {
-        -- <e_expr-17.1.1>
-        0
-        -- </e_expr-17.1.1>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.2",
-    [[
-        SELECT 'abcxyz' LIKE = 'abc%'
-    ]], {
-        -- <e_expr-17.1.2>
-        1
-        -- </e_expr-17.1.2>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.3",
-    [[
-        SELECT 'abcxyz' LIKE = 'abc???'
-    ]], {
-        -- <e_expr-17.1.3>
-        0
-        -- </e_expr-17.1.3>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.4",
-    [[
-        SELECT 'abcxyz' LIKE = 'abc___'
-    ]], {
-        -- <e_expr-17.1.4>
-        1
-        -- </e_expr-17.1.4>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.5",
-    [[
-        SELECT 'abcxyz' LIKE = 'abc%'
-    ]], {
-        -- <e_expr-17.1.5>
-        1
-        -- </e_expr-17.1.5>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.6",
-    [[
-        SELECT 'ABCxyz' LIKE = 'abc%'
-    ]], {
-        -- <e_expr-17.1.6>
-        0
-        -- </e_expr-17.1.6>
-    })
-
-test:do_execsql_test(
-    "e_expr-17.1.7",
-    [[
-        SELECT 'abcxyz' LIKE = 'ABC%'
-    ]], {
-        -- <e_expr-17.1.7>
-        0
-        -- </e_expr-17.1.7>
-    })
-
 -- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by the
 -- NOT keyword to invert the sense of the test.
 --
 test:do_execsql_test(
     "e_expr-17.2.0",
     [[
-        SELECT 'abcxyz' NOT LIKE = 'ABC%'
+        PRAGMA case_sensitive_like =3D = 1;
+        SELECT 'abcxyz' NOT LIKE = 'ABC%';
     ]], {
         -- = <e_expr-17.2.0>
         1
@@ -2461,11 +2331,10 @@ test:do_execsql_test(
 -- MUST_WORK_TEST uses access to nullvalue... (sql parameters) and built in functions
 if 0>0 then
     db("nullvalue", "null")
-
     test:do_execsql_test(
         "e_expr-17.2.6",
         [[
-            SELECT 'abcxyz' = NOT LIKE NULL
+            SELECT 'abcxyz' = NOT GLOB NULL
         ]], {
             -- = <e_expr-17.2.6>
             "null"
@@ -2475,13 +2344,33 @@ if 0>0 then
     test:do_execsql_test(
         "e_expr-17.2.7",
         [[
-            SELECT NULL NOT = LIKE 'ABC%'
+            SELECT 'abcxyz' = NOT LIKE NULL
         ]], {
             -- = <e_expr-17.2.7>
             "null"
             -- = </e_expr-17.2.7>
         })
 
+    test:do_execsql_test(
+        "e_expr-17.2.8",
+        [[
+            SELECT NULL NOT = GLOB 'abc*'
+        ]], {
+            -- = <e_expr-17.2.8>
+            "null"
+            -- = </e_expr-17.2.8>
+        })
+
+    test:do_execsql_test(
+        "e_expr-17.2.9",
+        [[
+            SELECT NULL NOT = LIKE 'ABC%'
+        ]], {
+            -- = <e_expr-17.2.9>
+            "null"
+            -- = </e_expr-17.2.9>
+        })
+
     db("nullvalue", "")
 end
 
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 55943345f..a6d822ccd 100755
--- = a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua
+++ = b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua
@@ -185,7 +185,7 @@ local valid_testcases =3D {
 
 -- Valid testcases.
 for i, tested_string in ipairs(valid_testcases) do
-    test_name =3D prefix .. "8." .. = tostring(i)
+    local test_name =3D prefix .. "8." .. tostring(i)
     local test_itself =3D "SELECT 'abc' LIKE = 'ab" .. tested_string .. "';"
     test:do_execsql_test(test_name, = test_itself, {0})
 
diff --git a/test/sql-tap/like3.test.lua b/test/sql-tap/like3.test.lua
index 0bc71a09c..8f4f79422 100755
--- a/test/sql-tap/like3.test.lua
+++ b/test/sql-tap/like3.test.lua
@@ -67,70 +67,6 @@ test:do_execsql_test(
         -- </like3-1.2>
     })
 
-test:do_execsql_test(
-    "like3-2.0",
-    [[
-        PRAGMA case_sensitive_like =3D = 1;
-        CREATE TABLE t2(a PRIMARY KEY, b = TEXT);
-        INSERT INTO t2 SELECT a, b FROM = t1;
-        CREATE INDEX t2ba ON = t2(b,a);
-        SELECT a, b FROM t2 WHERE b LIKE = 'ab%' ORDER BY +a;
-    ]], {
-        -- <like3-2.0>
-        1, "abc", 4, "abc"
-        -- </like3-2.0>
-    })
-
-test:do_execsql_test(
-    "like3-2.1",
-    [[
-        SELECT a, b FROM t2 WHERE +b = LIKE 'ab%' ORDER BY +a;
-    ]], {
-        -- <like3-2.1>
-        1, "abc", 4, "abc"
-        -- </like3-2.1>
-    })
-
-test:do_execsql_test(
-    "like3-2.2",
-    [[
-        SELECT a, b FROM t2 WHERE = b>=3Dx'6162' AND b LIKE 'ab%'
-    ]], {
-        -- <like3-2.2>
-        4, "abc"
-        -- </like3-2.2>
-    })
-
-test:do_execsql_test(
-    "like3-2.3",
-    [[
-        SELECT a, b FROM t2 WHERE = +b>=3Dx'6162' AND +b LIKE 'ab%'
-    ]], {
-        -- <like3-2.3>
-        4, "abc"
-        -- </like3-2.3>
-    })
-
-test:do_execsql_test(
-    "like3-2.4",
-    [[
-        SELECT a, b FROM t2 WHERE b LIKE = 'ab%' AND b>=3Dx'6162'
-    ]], {
-        -- <like3-2.4>
-        4, "abc"
-        -- </like3-2.4>
-    })
-
-test:do_execsql_test(
-    "like3-2.5",
-    [[
-        SELECT a, b FROM t2 WHERE +b = LIKE 'ab%' AND +b>=3Dx'6162';
-        PRAGMA case_sensitive_like =3D = 0;
-    ]], {
-        -- <like3-2.5>
-        4, "abc"
-        -- </like3-2.5>
-    })
 test:execsql([[
     CREATE TABLE t3(x TEXT PRIMARY KEY = COLLATE "unicode_ci");
     INSERT INTO t3(x) VALUES('aaa'),('abc'),('abd'),('abe'),('acz');


--
WBR, Nikita Tatunov.



diff --git = a/extra/mkkeywordhash.c b/extra/mkkeywordhash.c
index = 990c4199f..1fee3a7f2 100644
--- = a/extra/mkkeywordhash.c
+++ = b/extra/mkkeywordhash.c
@@ -159,7 +159,6 @@ static Keyword = aKeywordTable[] =3D {
   { "FOR",     =                "TK_FOR",   =       TRIGGER,          true =  },
   { "FOREIGN",         =        "TK_FOREIGN",     FKEY,   =           true  },
  =  { "FROM",                 =   "TK_FROM",        ALWAYS,     =       true  },
-  { "GLOB",   =                 "TK_LIKE_KW", =     ALWAYS,           false = },
   { "GROUP",           =        "TK_GROUP",       ALWAYS, =           true  },
  =  { "HAVING",               =   "TK_HAVING",      ALWAYS,       =     true  },
   { "IF",     =                 "TK_IF",   =        ALWAYS,           = true  },
diff --git a/src/box/sql/analyze.c = b/src/box/sql/analyze.c
index 5f73f026e..fc7588c3f = 100644
--- a/src/box/sql/analyze.c
+++ = b/src/box/sql/analyze.c
@@ -829,7 +829,7 @@ = analyzeOneTable(Parse * pParse, /* Parser context = */
  = return;
  }
  = assert(pTab->tnum !=3D 0);
- if = (sqlite3_strlike("\\_%", pTab->def->name, '\\') =3D=3D 0) = {
+ = if (sql_strlike_ci("\\_%", pTab->def->name, '\\') =3D=3D 0) = {
  /* Do not gather = statistics on system tables */
  = return;
  }
@@ -1333,11 +1333,10 = @@ analysis_loader(void *data, int argc, char **argv, char = **unused)
  /* Position ptr at the end of = stat string. */
  for (; *z =3D=3D ' ' || (*z >=3D= '0' && *z <=3D '9'); ++z);
  while = (z[0]) {
- if = (sqlite3_strglob("unordered*", z) =3D=3D 0) {
+ = if (sql_strlike_cs("unordered%", z, '[') =3D=3D = 0)
  = index->def->opts.stat->is_unordered =3D = true;
-= } else if (sqlite3_strglob("noskipscan*", z) =3D=3D= 0) {
+= else if (sql_strlike_cs("noskipscan%", z, '[') =3D=3D= 0)
  = index->def->opts.stat->skip_scan_enabled =3D = false;
- }
  = while (z[0] !=3D 0 && z[0] !=3D ' = ')
  = z++;
  while (z[0] =3D=3D ' = ')
diff --git a/src/box/sql/func.c = b/src/box/sql/func.c
index 66cae17b5..28b435ae3 = 100644
--- a/src/box/sql/func.c
+++ = b/src/box/sql/func.c
@@ -607,41 +607,38 @@ = total_changes(sqlite3_context * context, int NotUsed, sqlite3_value ** = NotUsed2)
  sqlite3_result_int(context, = sqlite3_total_changes(db));
 }
 
-= /*
- * A structure defining how to do GLOB-style = comparisons.
- */
-struct compareInfo = {
- = u8 matchAll; /* "*" or "%" = */
- = u8 matchOne; /* "?" or "_" = */
- = u8 matchSet; /* "[" or 0 = */
- = u8 noCase;= /* true to ignore case differences = */
-};
-
 /**
- * Providing = there are symbols in string s this
- * macro returns UTF-8 = code of character and
- * promotes pointer to the next symbol = in the string.
- * Otherwise return code is = SQL_END_OF_STRING.
+ * Providing there are symbols in string s = this macro returns
+ * UTF-8 code of character and promotes = pointer to the next
+ * symbol in the string. If s points to = an invalid UTF-8 symbol
+ * return code is = SQL_INVALID_UTF8_SYMBOL. If there're no symbols
+ * left in = string s return code is SQL_END_OF_STRING.
  = */
 #define Utf8Read(s, e) ucnv_getNextUChar(pUtf8conv, = &(s), (e), &(status))
 
 #define = SQL_END_OF_STRING       =  0xffff
 #define SQL_INVALID_UTF8_SYMBOL =  0xfffd
 
-static const struct compareInfo = globInfo =3D { '*', '?', '[', 0 };
+/**
+ * If = SQLITE_CASE_SENSITIVE_LIKE is not defined, then the LIKE
+ * = operator is not case sensitive.
+ */
+static const = int case_insensitive_like =3D 1;
 
-/* The = correct SQL-92 behavior is for the LIKE operator to ignore
- * = case.  Thus  'a' LIKE 'A' would be = true.
+/**
+ * If SQLITE_CASE_SENSITIVE_LIKE is = defined, then the LIKE
+ * operator is case sensitive causing = 'a' LIKE 'A' to be false.
  */
-static const = struct compareInfo likeInfoNorm =3D { '%', '_', 0, 1 = };
+static const int case_sensitive_like =3D = 0;
 
-/* If SQLITE_CASE_SENSITIVE_LIKE is = defined, then the LIKE operator
- * is case sensitive causing = 'a' LIKE 'A' to be false
+/**
+ * = Wildcards.
  */
-static const struct = compareInfo likeInfoAlt =3D { '%', '_', 0, 0 };
+#define = match_one '_'
+#define match_all = '%'
 
-/*
- * Possible error returns = from sql_utf8_pattern_compare()
+/**
+ * Possible = error returns from sql_utf8_pattern_compare().
  = */
 #define SQL_MATCH           =      0
 #define SQL_NOMATCH     =          1
@@ -650,138 +647,91 @@ = static const struct compareInfo likeInfoAlt =3D { '%', '_', 0, 0 = };
 
 /**
  * Compare two = UTF-8 strings for equality where the first string
- * is a = GLOB or LIKE expression.
- *
- * Globbing = rules:
- *
- *      '*'     =   Matches any sequence of zero or more characters.
- = *
- *      '?'       Matches = exactly one character.
- *
- *     [...] =      Matches one character from the enclosed list = of
- *               =  characters.
- *
- *     [^...] =     Matches one character not in the enclosed = list.
- *
- * With the [...] and [^...] matching, a = ']' character can be
- * included in the list by making it the = first character after
- * '[' or '^'. A range of characters = can be specified using '-'.
- * Example: "[a-z]" matches any = single lower-case letter.
- * To match a '-', make it the last = character in the list.
+ * is a LIKE = expression.
  *
  * Like matching = rules:
  *
- *      '%'   =     Matches any sequence of zero or more = characters.
+ *      '%'       = Matches any sequence of zero or more
+ *       =          characters.
  = *
  *      '_'       = Matches any one character.
  *
- *   =    Ec        Where E is the "esc" = character and c is any other
- *         =        character, including '%', '_', and esc, = match
- *               =  exactly c.
- *
- * The comments within this = routine usually assume glob matching.
+ *     =  Ec        Where E is the "esc" character and c = is any
+ *               =  other character, including '%', '_', and esc,
+ *   =              match exactly = c.
  *
  * This routine is usually quick, = but can be N**2 in the worst
  * case.
  = *
  * @param pattern String containing comparison = pattern.
  * @param string String being = compared.
- * @param compareInfo Information about how to = compare.
- * @param matchOther The escape char (LIKE) or '[' = (GLOB).
+ * @param is_like_ci true if LIKE is case = insensitive.
+ * @param match_other The escape char for = LIKE.
  *
  * @retval SQL_MATCH:   =             Match.
  *   = SQL_NOMATCH:             No = match.
- *   SQL_NOWILDCARDMATCH: =     No match in spite of having *
- * =    or % wildcards.
+ *   = SQL_NOWILDCARDMATCH:     No match in spite of having = %
+ * =    wildcard.
  = * =   SQL_INVALID_PATTERN:     Pattern contains = invalid
  *   =  symbol.
  */
 static = int
 sql_utf8_pattern_compare(const char = *pattern,
  const char = *string,
- const struct = compareInfo *pInfo,
- UChar32 = matchOther)
+ const int = is_like_ci,
+ UChar32 = match_other)
 {
  /* Next = pattern and input string chars */
  UChar32 = c, c2;
- /* "?" or "_" */
- UChar32 = matchOne =3D pInfo->matchOne;
- /* "*" or "%" */
- UChar32 = matchAll =3D pInfo->matchAll;
- /* True if uppercase=3D=3Dlowercase= */
- = UChar32 noCase =3D pInfo->noCase;
  /* One = past the last escaped input char */
  const = char *zEscaped =3D 0;
- const char * pattern_end =3D = pattern + strlen(pattern);
- const char * string_end =3D = string + strlen(string);
+ const char *pattern_end =3D = pattern + strlen(pattern);
+ const char *string_end =3D string = + strlen(string);
  UErrorCode status =3D = U_ZERO_ERROR;
 
  while = (pattern < pattern_end) {
  c = =3D Utf8Read(pattern, pattern_end);
  = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
  = return SQL_INVALID_PATTERN;
- = if (c =3D=3D matchAll) { /* Match "*" */
- = /* Skip over multiple "*" characters in
- = * the pattern. If there are also "?"
+ = if (c =3D=3D match_all) {
+ = /**
+ * Skip over = multiple "%" characters in
+ * the pattern. = If there are also "_"
  * characters, = skip those as well, but
  * consume a = single character of the
- * input string = for each "?" skipped.
+ * input string = for each "_" skipped.
  = */
  while ((c =3D = Utf8Read(pattern, pattern_end)) !=3D
  =       SQL_END_OF_STRING) {
  = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
  = return SQL_INVALID_PATTERN;
- = if (c !=3D matchAll && c !=3D matchOne)
+ = if (c !=3D match_all && c !=3D = match_one)
  = break;
- if (c =3D=3D= matchOne &&
+ if (c =3D=3D= match_one &&
    =  (c2 =3D Utf8Read(string, string_end)) =3D=3D
  =    SQL_END_OF_STRING)
  = return SQL_NOWILDCARDMATCH;
  = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
  = return SQL_NOMATCH;
  = }
- = /*
- * "*" at the end = of the pattern matches.
+ = /**
+ * "%" at the end = of the pattern matches.
  = */
  if (c =3D=3D = SQL_END_OF_STRING) {
  return = SQL_MATCH;
  = }
- if (c =3D=3D = matchOther) {
- if = (pInfo->matchSet =3D=3D 0) {
- c = =3D Utf8Read(pattern, pattern_end);
- = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = if (c =3D=3D SQL_END_OF_STRING)
- = return SQL_NOWILDCARDMATCH;
- = } else {
- = /* "[...]" immediately
- = * follows the "*". We
- = * have to do a slow
- = * recursive search in
- = * this case, but it is
- = * an unusual case.
- = */
- = assert(matchOther < = 0x80);
- = while (string < string_end) {
- = int bMatch =3D
- =   =  sql_utf8_pattern_compare(
- = &pattern[-1],
- = string,
- = pInfo,
- = matchOther);
- = if (bMatch !=3D SQL_NOMATCH)
- = return bMatch;
- = c =3D Utf8Read(string, = string_end);
- = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_NOMATCH;
- = }
+ if (c =3D=3D = match_other) {
+ c =3D = Utf8Read(pattern, pattern_end);
+ if (c =3D=3D= SQL_INVALID_UTF8_SYMBOL)
+ = return SQL_INVALID_PATTERN;
+ = if (c =3D=3D SQL_END_OF_STRING)
  = return SQL_NOWILDCARDMATCH;
- = }
  = }
 
- /* At this point = variable c contains the
+ = /**
+ * At this point = variable c contains the
  * first = character of the pattern string
- * past the "*". = Search in the input
+ * past the "%". = Search in the input
  * string for the = first matching
  * character and = recursively continue the
  * match from = that point.
@@ -793,7 +743,7 @@ sql_utf8_pattern_compare(const = char *pattern,
  = */
 
  int = bMatch;
- if = (noCase)
+ if = (is_like_ci)
  c =3D = u_tolower(c);
  while (string = < string_end){
  = /**
@@ -809,7 +759,7 @@ sql_utf8_pattern_compare(const = char *pattern,
  c2 =3D = Utf8Read(string, string_end);
  = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
  = return SQL_NOMATCH;
- = if (!noCase) {
+ if = (!is_like_ci) {
  = if (c2 !=3D c)
  = continue;
  } else = {
@@ -818,79 +768,27 @@ sql_utf8_pattern_compare(const char = *pattern,
  = }
  bMatch =3D = sql_utf8_pattern_compare(pattern,
  =  string,
- =  pInfo,
- = =  matchOther);
+ =  is_like_ci,
+ = =  match_other);
  if = (bMatch !=3D SQL_NOMATCH)
  = return bMatch;
  = }
  return = SQL_NOWILDCARDMATCH;
  }
- = if (c =3D=3D matchOther) {
- = if (pInfo->matchSet =3D=3D 0) {
- = c =3D Utf8Read(pattern, pattern_end);
- = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = if (c =3D=3D SQL_END_OF_STRING)
- = return SQL_NOMATCH;
- = zEscaped =3D pattern;
- } else = {
- = UChar32 prior_c =3D 0;
- = int seen =3D 0;
- int = invert =3D 0;
- c =3D = Utf8Read(string, string_end);
- if (c =3D=3D= SQL_INVALID_UTF8_SYMBOL)
- = return SQL_NOMATCH;
- if = (string =3D=3D string_end)
- = return SQL_NOMATCH;
- c2 =3D = Utf8Read(pattern, pattern_end);
- if (c2 =3D=3D= SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = if (c2 =3D=3D '^') {
- = invert =3D 1;
- = c2 =3D Utf8Read(pattern, pattern_end);
- = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = }
- if (c2 =3D=3D= ']') {
- = if (c =3D=3D ']')
- = seen =3D 1;
- = c2 =3D Utf8Read(pattern, pattern_end);
- = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = }
- while (c2 = !=3D SQL_END_OF_STRING && c2 !=3D ']') {
- = if (c2 =3D=3D '-' && pattern[0] !=3D = ']'
- =    && pattern = < pattern_end
- =    && prior_c > 0) {
- = c2 =3D Utf8Read(pattern, = pattern_end);
- = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return = SQL_INVALID_PATTERN;
- = if (c >=3D prior_c && c <=3D c2)
- = seen =3D 1;
- = prior_c =3D 0;
- = } else {
- = if (c =3D=3D c2) {
- = seen =3D 1;
- = }
- = prior_c =3D c2;
- = }
- = c2 =3D Utf8Read(pattern, pattern_end);
- = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
- = return SQL_INVALID_PATTERN;
- = }
- if = (pattern =3D=3D pattern_end ||
-   =  (seen ^ invert) =3D=3D 0) {
- = return SQL_NOMATCH;
- = }
- = continue;
- = }
+ if (c =3D=3D match_other) = {
+ = c =3D Utf8Read(pattern, pattern_end);
+ = if (c =3D=3D SQL_INVALID_UTF8_SYMBOL)
+ = return SQL_INVALID_PATTERN;
+ = if (c =3D=3D SQL_END_OF_STRING)
+ = return SQL_NOMATCH;
+ zEscaped =3D = pattern;
  }
  = c2 =3D Utf8Read(string, string_end);
  = if (c2 =3D=3D SQL_INVALID_UTF8_SYMBOL)
  = return SQL_NOMATCH;
  if (c =3D=3D = c2)
  = continue;
- if = (noCase){
+ if (is_like_ci) = {
  = /**
  * Small = optimisation. Reduce number of
  = * calls to u_tolower function. SQL
@@ -903,7 +801,7 @@ = sql_utf8_pattern_compare(const char *pattern,
  =    c =3D=3D u_tolower(c2))
  = continue;
  }
- = if (c =3D=3D matchOne && pattern !=3D zEscaped = &&
+ if (c =3D=3D match_one = && pattern !=3D zEscaped &&
  =    c2 !=3D SQL_END_OF_STRING)
  = continue;
  return = SQL_NOMATCH;
@@ -911,55 +809,52 @@ = sql_utf8_pattern_compare(const char *pattern,
  return = string =3D=3D string_end ? SQL_MATCH : = SQL_NOMATCH;
 }
 
-/*
- = * The sqlite3_strglob() interface.  Return 0 on a match (like = strcmp()) and
- * non-zero if there is no = match.
+/**
+ * Compare two UTF-8 strings for = equality using case sensitive
+ * = sql_utf8_pattern_compare.
  = */
 int
-sqlite3_strglob(const char = *zGlobPattern, const char *zString)
+sql_strlike_cs(const char = *zPattern, const char *zStr, unsigned int = esc)
 {
- return = sql_utf8_pattern_compare(zGlobPattern, zString, &globInfo, = '[');
+= return sql_utf8_pattern_compare(zPattern, zStr, = case_sensitive_like, = esc);
 }
 
-/*
- * The = sqlite3_strlike() interface.  Return 0 on a match and non-zero = for
- * a miss - like strcmp().
+/**
+ * = Compare two UTF-8 strings for equality using case = insensitive
+ * sql_utf8_pattern_compare.
  = */
 int
-sqlite3_strlike(const char *zPattern, = const char *zStr, unsigned int esc)
+sql_strlike_ci(const char = *zPattern, const char *zStr, unsigned int = esc)
 {
- return = sql_utf8_pattern_compare(zPattern, zStr, &likeInfoNorm, = esc);
+= return sql_utf8_pattern_compare(zPattern, zStr, = case_insensitive_like, = esc);
 }
 
-/*
- * = Count the number of times that the LIKE operator (or GLOB which = is
- * just a variation of LIKE) gets called.  This is = used for testing
- * only.
+/**
+ * Count = the number of times that the LIKE operator gets called.
+ * = This is used for testing only.
  = */
 #ifdef SQLITE_TEST
 int = sqlite3_like_count =3D = 0;
 #endif
 
-/*
- * = Implementation of the like() SQL function.  This function = implements
- * the build-in LIKE operator.  The first = argument to the function is the
- * pattern and the second = argument is the string.  So, the SQL = statements:
+/**
+ * Implementation of the like() = SQL function. This function
+ * implements the built-in LIKE = operator. The first argument to
+ * the function is the = pattern and the second argument is the
+ * string. So, the SQL = statements of the following type:
  *
  * =       A LIKE B
  *
- * is = implemented as like(B,A).
- *
- * This same function = (with a different compareInfo structure) computes
- * the GLOB = operator.
+ * are implemented as like(B,A).
  = */
 static void
-likeFunc(sqlite3_context * = context, int argc, sqlite3_value ** = argv)
+likeFunc(sqlite3_context *context, int argc, = sqlite3_value **argv)
 {
  const = char *zA, *zB;
  u32 escape;
  int = nPat;
  sqlite3 *db =3D = sqlite3_context_db_handle(context);
- struct = compareInfo *pInfo =3D sqlite3_user_data(context);
+ int = *is_like_ci =3D = sqlite3_user_data(context);
 
 #ifdef = SQLITE_LIKE_DOESNT_MATCH_BLOBS
  if = (sqlite3_value_type(argv[0]) =3D=3D SQLITE_BLOB
@@ -974,8 = +869,9 @@ likeFunc(sqlite3_context * context, int argc, sqlite3_value ** = argv)
  zB =3D (const char *) = sqlite3_value_text(argv[0]);
  zA =3D = (const char *) = sqlite3_value_text(argv[1]);
 
- /* Limit = the length of the LIKE or GLOB pattern to avoid
- * = problems of deep recursion and N*N behavior in
+ = /**
+ * Limit the length of the LIKE = pattern to avoid problems
+ * of deep recursion and N*N = behavior in
  * = sql_utf8_pattern_compare().
  */
  nPat =3D = sqlite3_value_bytes(argv[0]);
@@ -983,28 +879,29 @@ = likeFunc(sqlite3_context * context, int argc, sqlite3_value ** = argv)
  testcase(nPat =3D=3D = db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] + = 1);
  if (nPat > = db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]) {
  = sqlite3_result_error(context,
- =     "LIKE or GLOB pattern too complex", = -1);
+ =     "LIKE pattern is too = complex", -1);
  = return;
  }
  /* = Encoding did not change */
  assert(zB =3D=3D (const char *) = sqlite3_value_text(argv[0]));
 
  if (argc = =3D=3D 3) {
- /* The escape character = string must consist of a single UTF-8 character.
- = * Otherwise, return an error.
+ /**
+ = * The escape character string must consist of a
+ = * single UTF-8 character. Otherwise, return an
+ = * error.
  */
  = const unsigned char *zEsc =3D = sqlite3_value_text(argv[2]);
  = if (zEsc =3D=3D 0)
  = return;
  if = (sqlite3Utf8CharLen((char *)zEsc, -1) !=3D 1) {
  = sqlite3_result_error(context,
- =     "ESCAPE expression must be a single = character",
+ =     "ESCAPE expression must be a"
+ =     " single character",
  =     -1);
  = return;
  }
  = escape =3D sqlite3Utf8Read(&zEsc);
- } else = {
- = escape =3D pInfo->matchSet;
  = }
  if (!zA || = !zB)
  return;
@@ = -1012,10 +909,10 @@ likeFunc(sqlite3_context * context, int argc, = sqlite3_value ** argv)
  = sqlite3_like_count++;
 #endif
  int = res;
- = res =3D sql_utf8_pattern_compare(zB, zA, pInfo, = escape);
+ res =3D = sql_utf8_pattern_compare(zB, zA, *is_like_ci, = escape);
  if (res =3D=3D = SQL_INVALID_PATTERN) {
- = sqlite3_result_error(context, "LIKE or GLOB pattern can = only"
-=     " contain UTF-8 = characters", -1);
+ = sqlite3_result_error(context, "LIKE pattern can only = contain"
+   =   " UTF-8 characters", -1);
  = return;
  }
  = sqlite3_result_int(context, res =3D=3D SQL_MATCH);
@@ = -1811,64 +1708,54 @@ setLikeOptFlag(sqlite3 * db, const char *zName, u8 = flagVal)
  = }
 }
 
-/*
- * = Register the built-in LIKE and GLOB functions.  The = caseSensitive
- * parameter determines whether or not the LIKE = operator is case
- * sensitive.  GLOB is always case = sensitive.
+/**
+ * Register the built-in LIKE = function.
+ *
+ * @param db database = structure.
+ * @param is_case_sensitive whether like should be = case sensitive
+ * or = not.
+ *
+ * @retval none.
  = */
 void
-sqlite3RegisterLikeFunctions(sqlite3 = * db, int caseSensitive)
+sqlite3RegisterLikeFunctions(sqlite3 = *db, int is_case_sensitive)
 {
- struct = compareInfo *pInfo;
- if (caseSensitive) = {
- = pInfo =3D (struct compareInfo = *)&likeInfoAlt;
- } else {
- = pInfo =3D (struct compareInfo = *)&likeInfoNorm;
- }
- = sqlite3CreateFunc(db, "LIKE", 2, 0, pInfo, likeFunc, 0, 0, = 0);
- = sqlite3CreateFunc(db, "LIKE", 3, 0, pInfo, likeFunc, 0, 0, = 0);
- = sqlite3CreateFunc(db, "GLOB", 2, 0, (struct compareInfo = *)&globInfo, likeFunc, 0, 0, 0);
- = setLikeOptFlag(db, "GLOB", SQLITE_FUNC_LIKE | = SQLITE_FUNC_CASE);
+ int *is_like_ci;
+ if = (is_case_sensitive)
+ is_like_ci =3D (int = *)&case_sensitive_like;
+ else
+ = is_like_ci =3D (int = *)&case_insensitive_like;
+ sqlite3CreateFunc(db, "LIKE", 2, = 0, is_like_ci, likeFunc, 0, 0, 0);
+ = sqlite3CreateFunc(db, "LIKE", 3, 0, is_like_ci, likeFunc, 0, 0, = 0);
  setLikeOptFlag(db, = "LIKE",
-       = caseSensitive ? (SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE) :
- =       SQLITE_FUNC_LIKE);
+ =       is_case_sensitive ? (SQLITE_FUNC_LIKE = |
+ =       SQLITE_FUNC_CASE) : = SQLITE_FUNC_LIKE);
 }
 
-/*
<= div>- * pExpr points to an expression which implements a function. =  If
- * it is appropriate to apply the LIKE optimization = to that function
- * then set aWc[0] through aWc[2] to the = wildcard characters and
- * return TRUE.  If the function = is not a LIKE-style function then
- * return = FALSE.
+/**
+ * Check if the function implements = LIKE-style comparison & if it
+ * is appropriate to apply = a LIKE query optimization.
+ *
+ * @param db = database structure.
+ * @param pExpr pointer to a = function-implementing expression.
+ * @param is_like_ci true = if LIKE is case insensitive.
  *
- * *pIsNocase = is set to true if uppercase and lowercase are equivalent for
- = * the function (default for LIKE).  If the function makes the = distinction
- * between uppercase and lowercase (as does GLOB) = then *pIsNocase is set to
- * false.
+ * @retval 0 = if it's appropriate to apply optimization.
+ *     =     1 if it's not.
  = */
 int
-sqlite3IsLikeFunction(sqlite3 * db, = Expr * pExpr, int *pIsNocase, char = *aWc)
+sql_is_like_func(sqlite3 *db, Expr *pExpr, int = *is_like_ci)
 {
  FuncDef = *pDef;
- if (pExpr->op !=3D = TK_FUNCTION
-    || = !pExpr->x.pList || pExpr->x.pList->nExpr !=3D 2) = {
+ = if (pExpr->op !=3D TK_FUNCTION || !pExpr->x.pList = ||
+ =    pExpr->x.pList->nExpr !=3D = 2)
  return = 0;
- = }
  assert(!ExprHasProperty(pExpr, = EP_xIsSelect));
  pDef =3D sqlite3FindFunction(db, = pExpr->u.zToken, 2, 0);
  if (NEVER(pDef =3D=3D 0) || = (pDef->funcFlags & SQLITE_FUNC_LIKE) =3D=3D 0) = {
  return = 0;
  }
-
- /* The = memcpy() statement assumes that the wildcard characters = are
- = * the first three statements in the compareInfo structure. =  The
- * asserts() that follow verify = that assumption
- */
- = memcpy(aWc, pDef->pUserData, 3);
- = assert((char *)&likeInfoAlt =3D=3D (char = *)&likeInfoAlt.matchAll);
- assert(&((char = *)&likeInfoAlt)[1] =3D=3D (char = *)&likeInfoAlt.matchOne);
- assert(&((char = *)&likeInfoAlt)[2] =3D=3D (char = *)&likeInfoAlt.matchSet);
- *pIsNocase =3D = (pDef->funcFlags & SQLITE_FUNC_CASE) =3D=3D 0;
+ = *is_like_ci =3D (pDef->funcFlags & SQLITE_FUNC_CASE) =3D=3D = 0;
  return = 1;
 }
 
@@ -1962,16 +1849,14 @@ = sqlite3RegisterBuiltinFunctions(void)
  = AGGREGATE(group_concat, 2, 0, 0, = groupConcatStep,
  =  groupConcatFinalize),
 
- = LIKEFUNC(glob, 2, &globInfo,
- = SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE),
 #ifdef = SQLITE_CASE_SENSITIVE_LIKE
- LIKEFUNC(like, 2, = &likeInfoAlt,
+ LIKEFUNC(like, 2, = &case_sensitive_like,
  SQLITE_FUNC_LIKE = | SQLITE_FUNC_CASE),
- LIKEFUNC(like, 3, = &likeInfoAlt,
+ LIKEFUNC(like, 3, = &case_sensitive_like,
  SQLITE_FUNC_LIKE = | SQLITE_FUNC_CASE),
 #else
- = LIKEFUNC(like, 2, &likeInfoNorm, = SQLITE_FUNC_LIKE),
- LIKEFUNC(like, 3, = &likeInfoNorm, SQLITE_FUNC_LIKE),
+ = LIKEFUNC(like, 2, &case_insensitive_like, = SQLITE_FUNC_LIKE),
+ LIKEFUNC(like, 3, = &case_insensitive_like, = SQLITE_FUNC_LIKE),
 #endif
 #ifdef = SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
  = FUNCTION(unknown, -1, 0, 0, unknownFunc),
diff --git = a/src/box/sql/pragma.c b/src/box/sql/pragma.c
index = 5fb29c75c..26a602b23 100644
--- = a/src/box/sql/pragma.c
+++ b/src/box/sql/pragma.c
@@ = -771,8 +771,10 @@ sqlite3Pragma(Parse * pParse, Token * pId, /* First = part of [schema.]id field */
  = }
 #endif
 
- = /* Reinstall the LIKE and GLOB functions.  The variant of = LIKE *
- * used will be case = sensitive or not depending on the RHS.
+ = /**
+ * Reinstall the LIKE and = functions. The variant
+ * of LIKE * used will be = case sensitive or not
+ * depending on the = RHS.
  */
  case = PragTyp_CASE_SENSITIVE_LIKE:{
  = if (zRight) {
diff --git a/src/box/sql/sqliteInt.h = b/src/box/sql/sqliteInt.h
index e7a02dc1d..a805adf22 = 100644
--- a/src/box/sql/sqliteInt.h
+++ = b/src/box/sql/sqliteInt.h
@@ -565,16 +565,15 @@ char = *
 sqlite3_vsnprintf(int, char *, const char *, = va_list);
 
 int
-sqlite3_strlike(= const char *zGlob, const char *zStr,
- = unsigned int cEsc);
+sql_strlike_cs(const char *zLike, = const char *zStr, unsigned int = cEsc);
+
+int
+sql_strlike_ci(const char = *zLike, const char *zStr, unsigned int = cEsc);
 
 typedef void = (*sqlite3_destructor_type) (void *);
 #define = SQLITE_STATIC     =  ((sqlite3_destructor_type)0)
 #define = SQLITE_TRANSIENT   = ((sqlite3_destructor_type)-1)
 
-int
-s= qlite3_strglob(const char *zGlob, const char = *zStr);
-
 int
 sqlite3_prepare(sq= lite3 * db, = /* Database handle */
  = const char *zSql, /* SQL statement, UTF-8 encoded = */
@@ -701,9 +700,6 @@ struct on_conflict = {
  enum on_conflict_action = optimized_action;
 };
 
-void = *
-sqlite3_user_data(sqlite3_context = *);
-
 void
 sqlite3_randomness(in= t N, void *P);
 
@@ -2355,7 +2351,7 @@ struct = Expr {
 #define EP_Distinct  0x000010 /* = Aggregate function with DISTINCT keyword */
 #define = EP_VarSelect 0x000020 /* pSelect is correlated, not = constant */
 #define EP_DblQuoted 0x000040 /* = token.z was originally in "..." */
-#define EP_InfixFunc = 0x000080 = /* True for an infix function: LIKE, GLOB, etc = */
+#define EP_InfixFunc 0x000080 /* True for an infix function: = LIKE, etc */
 #define EP_Collate   0x000100 /* Tree = contains a TK_COLLATE operator */
 #define EP_Generic =   0x000200 = /* Ignore COLLATE or affinity on this tree = */
 #define EP_IntValue  0x000400 /* = Integer value contained in u.iValue */
@@ -4378,7 +4374,7 @@ = index_column_count(const Index = *);
 bool
 index_is_unique_not_null(const = Index *);
 void sqlite3RegisterLikeFunctions(sqlite3 *, = int);
-int sqlite3IsLikeFunction(sqlite3 *, Expr *, int *, = char *);
+int sql_is_like_func(sqlite3 *db, Expr *pExpr, int = *is_case_insensitive);
 void sqlite3SchemaClear(sqlite3 = *);
 Schema *sqlite3SchemaCreate(sqlite3 = *);
 int sqlite3CreateFunc(sqlite3 *, const char *, int, = int, void *,
diff --git a/src/box/sql/sqliteLimit.h = b/src/box/sql/sqliteLimit.h
index b88c9c6d3..e76353aff = 100644
--- a/src/box/sql/sqliteLimit.h
+++ = b/src/box/sql/sqliteLimit.h
@@ -164,8 +164,7 @@ enum = {
 #endif
 
 /*
- = * Maximum length (in bytes) of the pattern in a LIKE or GLOB
- = * operator.
+ * Maximum length (in bytes) of the pattern in a = LIKE operator.
  */
 #ifndef = SQLITE_MAX_LIKE_PATTERN_LENGTH
 #define = SQLITE_MAX_LIKE_PATTERN_LENGTH 50000
diff --git = a/src/box/sql/vdbe.c b/src/box/sql/vdbe.c
index = 0c978142d..3f10f4d68 100644
--- = a/src/box/sql/vdbe.c
+++ b/src/box/sql/vdbe.c
@@ = -5521,7 +5521,7 @@ vdbe_return:
  testcase( = nVmStep>0);
  = p->aCounter[SQLITE_STMTSTATUS_VM_STEP] +=3D = (int)nVmStep;
  assert(rc!=3DSQLITE_OK || = nExtraDelete=3D=3D0
- || = sqlite3_strlike("DELETE%",p->zSql,0)!=3D0
+ = || sql_strlike_ci("DELETE%", p->zSql, 0) !=3D = 0
  );
  return = rc;
 
diff --git a/src/box/sql/wherecode.c = b/src/box/sql/wherecode.c
index c35c25ac4..f864ea7fa = 100644
--- a/src/box/sql/wherecode.c
+++ = b/src/box/sql/wherecode.c
@@ -339,7 +339,7 @@ = sqlite3WhereAddScanStatus(Vdbe * v, /* Vdbe to add scanstatus = entry to */
  * automatically disabled.  In this = way, terms get disabled if derived
  * virtual terms are = tested first.  For example:
  *
- *   =    x GLOB 'abc*' AND x>=3D'abc' AND x<'acd'
+ = *      x LIKE 'abc%' AND x>=3D'abc' AND = x<'acd'
  *      \___________/   =   \______/     \_____/
  *     =     parent          child1   =     child2
  *
diff --git = a/src/box/sql/whereexpr.c b/src/box/sql/whereexpr.c
index = 612868695..2d9fb6453 100644
--- = a/src/box/sql/whereexpr.c
+++ = b/src/box/sql/whereexpr.c
@@ -218,38 +218,61 @@ = operatorMask(int op)
  return = c;
 }
 
+/**
+ * = Wildcard characters.
+ */
+#define match_one = '_'
+#define match_all '%'
+
 #ifndef = SQLITE_OMIT_LIKE_OPTIMIZATION
-/*
- * Check to see = if the given expression is a LIKE or GLOB operator that
- * = can be optimized using inequality constraints.  Return TRUE if it = is
- * so and false if not.
+/**
+ * Check = to see if the given expression is a LIKE operator that
+ * can = be optimized using inequality constraints.
  = *
- * In order for the operator to be optimizible, the RHS = must be a string
- * literal that does not begin with a = wildcard.  The LHS must be a column
- * that may only be = NULL, a string, or a BLOB, never a number. The
- * collating = sequence for the column on the LHS must be appropriate for
- * = the operator.
+ * In order for the operator to be optimizible, = the RHS must be a
+ * string literal that does not begin with = a wildcard. The LHS
+ * must be a column that may only be = NULL, a string, or a BLOB,
+ * never a number. The collating = sequence for the column on the
+ * LHS must be appropriate for = the operator.
+ *
+ * @param pParse     =  Parsing and code generating context.
+ * @param pExpr =       Test this expression.
+ * @param ppPrefix =    Pointer to TK_STRING expression with
+ * =      pattern prefix.
+ * @param pisComplete = True if the only wildcard is '%' in the
+ * =      last character.
+ * @param pnoCase   =   True if case insensitive.
+ *
+ * @retval = True if the given expr is a LIKE operator & is
+ *   = optimizable using inequality constraints.
+ *   = False if not.
  */
 static = int
-isLikeOrGlob(Parse * pParse, /* Parsing and code generating = context */
-     Expr * pExpr, /* Test = this expression */
-     Expr ** = ppPrefix, = /* Pointer to TK_STRING expression with pattern prefix = */
- =     int *pisComplete, /* True if the only wildcard is % = in the last character */
-     int *pnoCase /* True = if uppercase is equivalent to lowercase */
-   =  )
+is_like(Parse *pParse,
+ Expr = *pExpr,
+ Expr **ppPrefix,
+ int = *pisComplete,
+ int = *pnoCase)
 {
- const char *z =3D 0; /* String = on RHS of LIKE operator */
- Expr *pRight, *pLeft; /* Right = and left size of LIKE operator */
- ExprList = *pList; = /* List of operands to the LIKE operator */
- int = c; = /* One character in z[] */
- int = cnt; = /* Number of non-wildcard prefix characters */
- char = wc[3]; = /* Wildcard characters */
- sqlite3 *db =3D = pParse->db; = /* Database connection */
+ /* String on RHS of LIKE operator = */
+ = const char *z =3D 0;
+ /* Right and left size of LIKE = operator */
+ Expr *pRight, = *pLeft;
+ /* List of operands to the LIKE = operator */
+ ExprList *pList;
+ /* One = character in z[] */
+ int c;
+ /* Number = of non-wildcard prefix characters */
+ int = cnt;
+ = /* Database connection */
+ sqlite3 *db =3D = pParse->db;
  sqlite3_value *pVal =3D = 0;
- = int op; = /* Opcode of pRight */
- int = rc; = /* Result code to return */
+ /* Opcode = of pRight */
+ int op;
+ /* Result = code to return */
+ int = rc;
 
- if (!sqlite3IsLikeFunction(db, = pExpr, pnoCase, wc)) {
+ if (!sql_is_like_func(db, pExpr, = pnoCase)) {
  return = 0;
  }
  pList =3D = pExpr->x.pList;
@@ -257,8 +280,9 @@ isLikeOrGlob(Parse * = pParse, = /* Parsing and code generating context */
  /* Value = might be numeric */
  if (pLeft->op !=3D TK_COLUMN = ||
    =  sqlite3ExprAffinity(pLeft) !=3D AFFINITY_TEXT) {
- = /* IMP: R-02065-49465 The left-hand side of the LIKE or GLOB = operator must
- * be the name of an = indexed column with TEXT affinity.
+ = /* IMP: R-02065-49465 The left-hand side of the
+ = * LIKE operator must be the name of an indexed
+ = * column with TEXT affinity.
  = */
  return = 0;
  }
@@ -281,13 +305,11 @@ = isLikeOrGlob(Parse * pParse, /* Parsing and code generating = context */
  }
  if (z) = {
  cnt =3D = 0;
- = while ((c =3D z[cnt]) !=3D 0 && c !=3D wc[0] && c = !=3D wc[1]
-       = && c !=3D wc[2]) {
+ while ((c =3D z[cnt]) !=3D = 0 && c !=3D match_one && c !=3D = match_all)
  = cnt++;
- }
  = if (cnt !=3D 0 && 255 !=3D (u8) z[cnt - 1]) = {
  Expr = *pPrefix;
- *pisComplete =3D = c =3D=3D wc[0] && z[cnt + 1] =3D=3D 0;
+ = *pisComplete =3D c =3D=3D match_all && z[cnt + 1] =3D=3D = 0;
  pPrefix =3D = sqlite3Expr(db, TK_STRING, z);
  = if (pPrefix)
  = pPrefix->u.zToken[cnt] =3D 0;
@@ -943,19 +965,32 @@ = exprAnalyze(SrcList * pSrc, /* the FROM clause = */
     int idxTerm = /* Index of the term to be analyzed */
    =  )
 {
- WhereInfo *pWInfo =3D = pWC->pWInfo; = /* WHERE clause processing context */
- WhereTerm = *pTerm; = /* The term to be analyzed */
- = WhereMaskSet *pMaskSet; /* Set of table index masks = */
- = Expr *pExpr; /* The expression to be = analyzed */
- Bitmask prereqLeft; /* = Prerequesites of the pExpr->pLeft */
- Bitmask = prereqAll; = /* Prerequesites of pExpr */
- Bitmask = extraRight =3D 0;= /* Extra dependencies on LEFT JOIN */
- Expr = *pStr1 =3D 0; = /* RHS of LIKE/GLOB operator */
- int = isComplete =3D 0;= /* RHS of LIKE/GLOB ends with wildcard = */
- = int noCase =3D 0; /* uppercase equivalent = to lowercase */
- int op; = /* Top-level operator.  pExpr->op */
- Parse = *pParse =3D pWInfo->pParse; /* Parsing context = */
- = sqlite3 *db =3D pParse->db; /* Database connection = */
+ = /* WHERE clause processing context */
+ WhereInfo = *pWInfo =3D pWC->pWInfo;
+ /* The term to be analyzed = */
+ = WhereTerm *pTerm;
+ /* Set of table index masks = */
+ = WhereMaskSet *pMaskSet;
+ /* The expression to be analyzed = */
+ = Expr *pExpr;
+ /* Prerequesites of the = pExpr->pLeft */
+ Bitmask = prereqLeft;
+ /* Prerequesites of pExpr = */
+ = Bitmask prereqAll;
+ /* Extra dependencies on LEFT = JOIN */
+ Bitmask extraRight =3D = 0;
+ = /* RHS of LIKE operator */
+ Expr = *pStr1 =3D 0;
+ /* RHS of LIKE ends with wildcard = */
+ = int isComplete =3D 0;
+ /* uppercase equivalent to = lowercase */
+ int noCase =3D = 0;
+ = /* Top-level operator. pExpr->op */
+ int = op;
+ = /* Parsing context */
+ Parse *pParse =3D = pWInfo->pParse;
+ /* Database connection = */
+ = sqlite3 *db =3D = pParse->db;
 
  if = (db->mallocFailed) {
  return;
@@ = -1111,37 +1146,44 @@ exprAnalyze(SrcList * pSrc, /* the = FROM clause */
 #endif /* = SQLITE_OMIT_OR_OPTIMIZATION */
 
 #ifndef = SQLITE_OMIT_LIKE_OPTIMIZATION
- /* Add constraints to reduce the = search space on a LIKE or GLOB
+ /**
+ * Add = constraints to reduce the search space on a LIKE
  * = operator.
  *
- * A like = pattern of the form "x LIKE 'aBc%'" is changed into = constraints
+ * A like pattern of the form "x = LIKE 'aBc%'" is changed
+ * into = constraints:
  *
  *   =        x>=3D'ABC' AND x<'abd' AND x LIKE = 'aBc%'
  *
- * The = last character of the prefix "abc" is incremented to form = the
- = * termination condition "abd".  If case is not significant = (the default
- * for LIKE) then the lower-bound = is made all uppercase and the upper-
- * bound = is made all lowercase so that the bounds also work when = comparing
- * BLOBs.
+ * The = last character of the prefix "abc" is incremented
+ * to = form the termination condition "abd". If case is
+ * not = significant (the default for LIKE) then the
+ * = lower-bound is made all uppercase and the upper-bound
+ * is = made all lowercase so that the bounds also work
+ * when = comparing BLOBs.
  */
  if = (pWC->op =3D=3D TK_AND
-    && = isLikeOrGlob(pParse, pExpr, &pStr1, &isComplete, = &noCase)
-    ) = {
- = Expr *pLeft; /* LHS of LIKE/GLOB operator = */
- = Expr *pStr2; /* Copy of pStr1 - RHS of = LIKE/GLOB operator */
+    && = is_like(pParse, pExpr, &pStr1, &isComplete, &noCase)) = {
+ = /* LHS of LIKE operator */
+ = Expr *pLeft;
+ /* Copy of pStr1 - RHS of = LIKE operator */
+ Expr = *pStr2;
  Expr = *pNewExpr1;
  Expr = *pNewExpr2;
  int = idxNew1;
  int = idxNew2;
- const char = *zCollSeqName; = /* Name of collating sequence */
+ = /* Name of collating sequence */
+ = const char *zCollSeqName;
  = const u16 wtFlags =3D TERM_LIKEOPT | TERM_VIRTUAL | = TERM_DYNAMIC;
 
  = pLeft =3D pExpr->x.pList->a[1].pExpr;
  = pStr2 =3D sqlite3ExprDup(db, pStr1, = 0);
 
- /* Convert the lower = bound to upper-case and the upper bound to
- = * lower-case (upper-case is less than lower-case in ASCII) so = that
- = * the range constraints also work for = BLOBs
+= /**
+ * Convert the lower = bound to upper-case and the
+ * upper bound to = lower-case (upper-case is less
+ * than lower-case in = ASCII) so that the range
+ * constraints also work = for BLOBs
  */
  = if (noCase && !pParse->db->mallocFailed) = {
  int = i;
diff --git a/test/sql-tap/alter.test.lua = b/test/sql-tap/alter.test.lua
index cfe280121..98338c493 = 100755
--- a/test/sql-tap/alter.test.lua
+++ = b/test/sql-tap/alter.test.lua
@@ -232,7 +232,7 @@ = test:do_execsql_test(
     [[
  =        CREATE TABLE xyz(x PRIMARY = KEY);
         ALTER TABLE xyz RENAME = TO "xyz1234abc";
-        SELECT "name" = FROM "_space" WHERE "name" GLOB 'xyz*';
+       =  SELECT "name" FROM "_space" WHERE "name" =3D = 'xyz1234abc';
     ]], {
  =        -- <alter-5.1>
    =      "xyz1234abc"
@@ -243,7 +243,7 @@ = test:do_execsql_test(
    =  "alter-5.2",
     [[
  =        ALTER TABLE "xyz1234abc" RENAME TO = xyzabc;
-        SELECT "name" FROM = "_space" WHERE "name" GLOB 'XYZ*';
+       =  SELECT "name" FROM "_space" WHERE "name" =3D = 'XYZABC';
     ]], {
    =      -- <alter-5.2>
      =    "XYZABC"
diff --git = a/test/sql-tap/analyze9.test.lua = b/test/sql-tap/analyze9.test.lua
index 3b3d52f67..ec3e545d8 = 100755
--- a/test/sql-tap/analyze9.test.lua
+++ = b/test/sql-tap/analyze9.test.lua
@@ -206,10 +206,10 @@ = test:do_execsql_test(
         INSERT = INTO t1 VALUES(81, 1, 'one-i');
        =  INSERT INTO t1 VALUES(91, 1, 'one-j');
    =      INSERT INTO t1 SELECT a+1,2,'two' || substr(c,4) = FROM t1;
-        INSERT INTO t1 SELECT = a+2,3,'three'||substr(c,4) FROM t1 WHERE c GLOB 'one-*';
- =        INSERT INTO t1 SELECT = a+3,4,'four'||substr(c,4) FROM t1 WHERE c GLOB 'one-*';
- =        INSERT INTO t1 SELECT = a+4,5,'five'||substr(c,4) FROM t1 WHERE c GLOB 'one-*';
- =        INSERT INTO t1 SELECT = a+5,6,'six'||substr(c,4) FROM t1 WHERE c GLOB 'one-*'; =
+        INSERT INTO t1 SELECT = a+2,3,'three'||substr(c,4) FROM t1 WHERE c LIKE 'one-%';
+ =        INSERT INTO t1 SELECT = a+3,4,'four'||substr(c,4) FROM t1 WHERE c LIKE 'one-%';
+ =        INSERT INTO t1 SELECT = a+4,5,'five'||substr(c,4) FROM t1 WHERE c LIKE 'one-%';
+ =        INSERT INTO t1 SELECT = a+5,6,'six'||substr(c,4) FROM t1 WHERE c LIKE 'one-%'; =
         CREATE INDEX t1b ON = t1(b);
        =  ANALYZE;
         SELECT c FROM = t1 WHERE b=3D3 AND a BETWEEN 30 AND 60;
diff --git = a/test/sql-tap/e_expr.test.lua = b/test/sql-tap/e_expr.test.lua
index 9780d2cf9..0d69e8535 = 100755
--- a/test/sql-tap/e_expr.test.lua
+++ = b/test/sql-tap/e_expr.test.lua
@@ -1,6 +1,6 = @@
 #!/usr/bin/env tarantool
 test =3D = require("sqltester")
-test:plan(10665)
+test:plan(1064= 7)
 
 --!./tcltestrunner.lua
 = ;-- 2010 July 16
@@ -77,10 +77,7 @@ local operations =3D = {
     {"<>", "ne1"},
  =    {"!=3D", "ne2"},
     {"IS", = "is"},
--- NOTE: This test needs refactoring after deletion of = GLOB &
--- type restrictions for LIKE. (See = #3572)
 --    {"LIKE", "like"},
--- =    {"GLOB", "glob"},
     {"AND", = "and"},
     {"OR", "or"},
  =    {"MATCH", "match"},
@@ -98,12 +95,10 @@ = operations =3D {
     {"+", = "-"},
     {"<<", ">>", "&", = "|"},
     {"<", "<=3D", ">", = ">=3D"},
--- NOTE: This test needs refactoring after = deletion of GLOB &
--- type restrictions for LIKE. (See = #3572)
 -- Another NOTE: MATCH & REGEXP aren't = supported in Tarantool &
--- are waiting for their = hour, don't confuse them
--- being commented with = ticket above.
-    {"=3D", "=3D=3D", "!=3D", = "<>"}, --"LIKE", "GLOB"}, --"MATCH", "REGEXP"},
+-- =               are waiting for their = hour, don't confuse them
+--         =       being commented with commenting of = "LIKE".
+    {"=3D", "=3D=3D", "!=3D", "<>"}, = --"LIKE"}, --"MATCH", "REGEXP"},
    =  {"AND"},
    =  {"OR"},
 }
@@ -128,7 +123,7 @@ = end
 -- EVIDENCE-OF: R-15514-65163 SQLite understands the = following binary
 -- operators, in order from highest to = lowest precedence: || * / % + -
 -- << >> = & | < <=3D > >=3D =3D =3D=3D !=3D <> IS = IS
--- NOT IN LIKE GLOB MATCH REGEXP AND OR
+-- NOT = IN LIKE MATCH REGEXP AND OR
 --
 -- = EVIDENCE-OF: R-38759-38789 Operators IS and IS NOT have the = same
 -- precedence as =3D.
@@ -482,7 +477,6 @@ = for _, op in ipairs(oplist) do
        =  end
    =  end
 end
-
 ----------------= -----------------------------------------------------------
&nbs= p;-- Test the IS and IS NOT operators.
 --
@@ = -1303,11 +1297,11 @@ end
 test:execsql = [[
     CREATE TABLE tblname(cname PRIMARY = KEY);
 ]]
+
 local function = glob(args)
     return = 1
 end
 
-box.internal.sql_create_= function("GLOB", = glob)
 box.internal.sql_create_function("MATCH", = glob)
 box.internal.sql_create_function("REGEXP", = glob)
 local test_cases12 =3D{
@@ -1369,47 = +1363,43 @@ local test_cases12 =3D{
 
  =    {47, "EXPR1 LIKE EXPR2"},
    =  {48, "EXPR1 LIKE EXPR2 ESCAPE EXPR"},
-   =  {49, "EXPR1 GLOB EXPR2"},
-    {50, "EXPR1 = GLOB EXPR2 ESCAPE EXPR"},
-    {51, "EXPR1 REGEXP = EXPR2"},
-    {52, "EXPR1 REGEXP EXPR2 ESCAPE = EXPR"},
-    {53, "EXPR1 MATCH EXPR2"},
- =    {54, "EXPR1 MATCH EXPR2 ESCAPE EXPR"},
-   =  {55, "EXPR1 NOT LIKE EXPR2"},
-    {56, "EXPR1 = NOT LIKE EXPR2 ESCAPE EXPR"},
-    {57, "EXPR1 NOT = GLOB EXPR2"},
-    {58, "EXPR1 NOT GLOB EXPR2 ESCAPE = EXPR"},
-    {59, "EXPR1 NOT REGEXP = EXPR2"},
-    {60, "EXPR1 NOT REGEXP EXPR2 ESCAPE = EXPR"},
-    {61, "EXPR1 NOT MATCH = EXPR2"},
-    {62, "EXPR1 NOT MATCH EXPR2 ESCAPE = EXPR"},
-
-    {63, "EXPR IS = NULL"},
-    {64, "EXPR IS NOT = NULL"},
-
-    {65, "EXPR NOT BETWEEN = EXPR1 AND EXPR2"},
-    {66, "EXPR BETWEEN EXPR1 AND = EXPR2"},
-
-    {67, "EXPR NOT IN (SELECT = cname FROM tblname)"},
-    {68, "EXPR NOT IN = (1)"},
-    {69, "EXPR NOT IN (1, 2, = 3)"},
-    {70, "EXPR NOT IN tblname"},
- =    {71, "EXPR IN (SELECT cname FROM tblname)"},
- =    {72, "EXPR IN (1)"},
-    {73, "EXPR IN = (1, 2, 3)"},
-    {74, "EXPR IN = tblname"},
-
-    {75, "EXISTS (SELECT = cname FROM tblname)"},
-    {76, "NOT EXISTS (SELECT = cname FROM tblname)"},
-
-    {77, "CASE = EXPR WHEN EXPR1 THEN EXPR2 ELSE EXPR END"},
-   =  {78, "CASE EXPR WHEN EXPR1 THEN EXPR2 END"},
-   =  {79, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE = EXPR2 END"},
-    {80, "CASE EXPR WHEN EXPR1 THEN = EXPR2 WHEN EXPR THEN EXPR1 END"},
-    {81, "CASE = WHEN EXPR1 THEN EXPR2 ELSE EXPR END"},
-    {82, = "CASE WHEN EXPR1 THEN EXPR2 END"},
-    {83, "CASE = WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE EXPR2 END"},
- =    {84, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 = END"},
+    {49, "EXPR1 REGEXP EXPR2"},
+ =    {50, "EXPR1 REGEXP EXPR2 ESCAPE EXPR"},
+   =  {51, "EXPR1 MATCH EXPR2"},
+    {52, "EXPR1 = MATCH EXPR2 ESCAPE EXPR"},
+    {53, "EXPR1 NOT LIKE = EXPR2"},
+    {54, "EXPR1 NOT LIKE EXPR2 ESCAPE = EXPR"},
+    {55, "EXPR1 NOT REGEXP = EXPR2"},
+    {56, "EXPR1 NOT REGEXP EXPR2 ESCAPE = EXPR"},
+    {57, "EXPR1 NOT MATCH = EXPR2"},
+    {58, "EXPR1 NOT MATCH EXPR2 ESCAPE = EXPR"},
+
+    {59, "EXPR IS = NULL"},
+    {60, "EXPR IS NOT = NULL"},
+
+    {61, "EXPR NOT BETWEEN = EXPR1 AND EXPR2"},
+    {62, "EXPR BETWEEN EXPR1 AND = EXPR2"},
+
+    {63, "EXPR NOT IN (SELECT = cname FROM tblname)"},
+    {64, "EXPR NOT IN = (1)"},
+    {65, "EXPR NOT IN (1, 2, = 3)"},
+    {66, "EXPR NOT IN tblname"},
+ =    {67, "EXPR IN (SELECT cname FROM tblname)"},
+ =    {68, "EXPR IN (1)"},
+    {69, "EXPR IN = (1, 2, 3)"},
+    {70, "EXPR IN = tblname"},
+
+    {71, "EXISTS (SELECT = cname FROM tblname)"},
+    {72, "NOT EXISTS (SELECT = cname FROM tblname)"},
+
+    {73, "CASE = EXPR WHEN EXPR1 THEN EXPR2 ELSE EXPR END"},
+   =  {74, "CASE EXPR WHEN EXPR1 THEN EXPR2 END"},
+   =  {75, "CASE EXPR WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE = EXPR2 END"},
+    {76, "CASE EXPR WHEN EXPR1 THEN = EXPR2 WHEN EXPR THEN EXPR1 END"},
+    {77, "CASE = WHEN EXPR1 THEN EXPR2 ELSE EXPR END"},
+    {78, = "CASE WHEN EXPR1 THEN EXPR2 END"},
+    {79, "CASE = WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 ELSE EXPR2 END"},
+ =    {80, "CASE WHEN EXPR1 THEN EXPR2 WHEN EXPR THEN EXPR1 = END"},
 }
 
 for _, val in = ipairs(test_cases12) do
@@ -1802,7 +1792,7 @@ = test:do_execsql_test(
    =  })
 
 --------------------------------= -------------------------------------------
--- Test the = statements related to the LIKE and GLOB operators.
+-- Test = the statements related to the LIKE = operator.
 --
 -- EVIDENCE-OF: = R-16584-60189 The LIKE operator does a pattern = matching
 -- comparison.
@@ -2274,102 +2264,38 = @@ test:do_execsql_test(
         -- = </e_expr-16.1.7>
    =  })
 
--- EVIDENCE-OF: R-52087-12043 The = GLOB operator is similar to LIKE but
--- uses the Unix file = globbing syntax for its wildcards.
---
--- = EVIDENCE-OF: R-09813-17279 Also, GLOB is case sensitive, unlike = LIKE.
+-- EVIDENCE-OF: R-39616-20555 LIKE may be preceded by = the
+-- NOT keyword to invert the sense of the = test.
 --
 test:do_execsql_test(
-=    "e_expr-17.1.1",
-    [[
- =        SELECT 'abcxyz' GLOB 'abc%'
- =    ]], {
-        -- = <e_expr-17.1.1>
-       =  0
-        -- = </e_expr-17.1.1>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.2",
-    [[
-   =      SELECT 'abcxyz' GLOB 'abc*'
-   =  ]], {
-        -- = <e_expr-17.1.2>
-       =  1
-        -- = </e_expr-17.1.2>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.3",
-    [[
-   =      SELECT 'abcxyz' GLOB 'abc___'
-   =  ]], {
-        -- = <e_expr-17.1.3>
-       =  0
-        -- = </e_expr-17.1.3>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.4",
-    [[
-   =      SELECT 'abcxyz' GLOB 'abc???'
-   =  ]], {
-        -- = <e_expr-17.1.4>
-       =  1
-        -- = </e_expr-17.1.4>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.5",
+   =  "e_expr-17.2.0",
     [[
- =        SELECT 'abcxyz' GLOB 'abc*'
+ =        PRAGMA case_sensitive_like =3D 1;
+ =        SELECT 'abcxyz' NOT LIKE = 'ABC%';
     ]], {
-     =    -- <e_expr-17.1.5>
+       =  -- <e_expr-17.2.0>
        =  1
-        -- = </e_expr-17.1.5>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.6",
-    [[
-   =      SELECT 'ABCxyz' GLOB 'abc*'
-   =  ]], {
-        -- = <e_expr-17.1.6>
-       =  0
-        -- = </e_expr-17.1.6>
-   =  })
-
-test:do_execsql_test(
-   =  "e_expr-17.1.7",
-    [[
-   =      SELECT 'abcxyz' GLOB 'ABC*'
-   =  ]], {
-        -- = <e_expr-17.1.7>
-       =  0
-        -- = </e_expr-17.1.7>
+        -- = </e_expr-17.2.0>
    =  })
 
--- EVIDENCE-OF: R-39616-20555 Both = GLOB and LIKE may be preceded by the
--- NOT keyword to invert = the sense of the = test.
---
 test:do_execsql_test(
 =    "e_expr-17.2.1",
    =  [[
-        SELECT 'abcxyz' NOT GLOB = 'ABC*'
+        SELECT 'abcxyz' NOT LIKE = 'abc%'
     ]], {
    =      -- <e_expr-17.2.1>
-     =    1
+        0
  =        -- </e_expr-17.2.1>
  =   =  })
 
 test:do_execsql_test(
=      "e_expr-17.2.2",
    =  [[
-        SELECT 'abcxyz' NOT GLOB = 'abc*'
+        PRAGMA case_sensitive_like = =3D 0
     ]], {
      =    -- <e_expr-17.2.2>
-       =  0
-        -- = </e_expr-17.2.2>
+
+       =  -- <e_expr-17.2.2>
    =  })
 
 test:do_execsql_test(
= @@ -2448,62 +2374,6 @@ if 0>0 then
    =  db("nullvalue", = "")
 end
 
--- EVIDENCE-OF: = R-39414-35489 The infix GLOB operator is implemented by
--- = calling the function glob(Y,X) and can be modified by overriding = that
--- function.
-
-local globargs =3D = {}
-local function globfunc(...)
-   =  local args =3D {...}
-    for i, v in = ipairs(args) do
-       =  table.insert(globargs, v)
-    end
- =    return = 1
-end
-box.internal.sql_create_function("GLOB", = globfunc, 2)
---db("func", "glob", "-argcount", 2, = "globfunc")
-
-test:do_execsql_test(
- =    "e_expr-17.3.1",
-    [[
- =        SELECT 'abc' GLOB 'def'
-   =  ]], {
-        -- = <e_expr-17.3.1>
-       =  1
-        -- = </e_expr-17.3.1>
-   =  })
-
-test:do_test(
-   =  "e_expr-17.3.2",
-    function()
- =        return globargs
-    end, = {
-        -- = <e_expr-17.3.2>
-        "def", = "abc"
-        -- = </e_expr-17.3.2>
-   =  })
-
-globargs =3D { =  }
-test:do_execsql_test(
-   =  "e_expr-17.3.3",
-    [[
-   =      SELECT 'X' NOT GLOB 'Y'
-    ]], = {
-        -- = <e_expr-17.3.3>
-       =  0
-        -- = </e_expr-17.3.3>
-   =  })
-
-test:do_test(
-   =  "e_expr-17.3.4",
-    function()
- =        return globargs
-    end, = {
-        -- = <e_expr-17.3.4>
-        "Y", = "X"
-        -- = </e_expr-17.3.4>
-   =  })
-
 --sqlite3("db", = "test.db")
 -- EVIDENCE-OF: R-41650-20872 No regexp() = user function is defined by
 -- default and so use of the = REGEXP operator will normally result in an
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 = addf0e36d..a6d822ccd 100755
--- = a/test/sql-tap/gh-3251-string-pattern-comparison.test.lua
+++ = b/test/sql-tap/gh-3251-string-pattern-comparison.test.lua
@@ = -142,17 +142,17 @@ for i, tested_string in ipairs(invalid_testcases) = do
     local test_name =3D prefix .. "2." .. = tostring(i)
     local test_itself =3D "SELECT = 'abc' LIKE 'ab" .. tested_string .. "';"
    =  test:do_catchsql_test(test_name, test_itself,
-   =                     =    {1, "LIKE or GLOB pattern can only contain UTF-8 = characters"})
+             =              {1, "LIKE pattern can = only contain UTF-8 characters"})
 
  =    test_name =3D prefix .. "3." .. = tostring(i)
     test_itself =3D "SELECT 'abc' = LIKE 'abc" .. tested_string .. "';"
    =  test:do_catchsql_test(test_name, test_itself,
-   =                     =    {1, "LIKE or GLOB pattern can only contain UTF-8 = characters"})
+             =              {1, "LIKE pattern can = only contain UTF-8 characters"})
 
  =    test_name =3D prefix .. "4." .. = tostring(i)
     test_itself =3D "SELECT 'abc' = LIKE 'ab" .. tested_string .. "c';"
    =  test:do_catchsql_test(test_name, test_itself,
-   =                     =    {1, "LIKE or GLOB pattern can only contain UTF-8 = characters"})
+             =              {1, "LIKE pattern can = only contain UTF-8 characters"})
 
  =    -- Just skipping if row value predicand contains invalid = character.
 
@@ -185,7 +185,7 @@ local = valid_testcases =3D {
 
 -- Valid = testcases.
 for i, tested_string in = ipairs(valid_testcases) do
-    test_name =3D prefix = .. "8." .. tostring(i)
+    local test_name =3D = prefix .. "8." .. tostring(i)
     local = test_itself =3D "SELECT 'abc' LIKE 'ab" .. tested_string .. = "';"
     test:do_execsql_test(test_name, = test_itself, {0})
 
diff --git = a/test/sql-tap/like2.test.lua = b/test/sql-tap/like2.test.lua
index abcac39fb..c6c81cb4d = 100755
--- a/test/sql-tap/like2.test.lua
+++ = b/test/sql-tap/like2.test.lua
@@ -12,11 +12,11 @@ = test:plan(282)
 --    May you find forgiveness = for yourself and forgive others.
 --    May you = share freely, never taking more than you = give.
 --
---------------------------------------= -----------------------------------
--- This file implements = regression tests for SQLite library.  The
--- focus of = this file is testing the LIKE and GLOB operators and
--- in = particular the optimizations that occur to help those = operators
--- run = faster.
+-------------------------------------------------------= ----------
+-- This file implements regression tests for = SQLite library. The
+-- focus of this file is testing the LIKE = operator and
+-- in particular the optimizations that occur to = help this
+-- operator run = faster.
 --
 -- $Id: like2.test,v 1.1 = 2008/05/26 18:33:41 drh Exp $
 -- = ["set","testdir",[["file","dirname",["argv0"]]]]
diff --git = a/test/sql-tap/like3.test.lua = b/test/sql-tap/like3.test.lua
index 505d2fabb..f5e517121 = 100755
--- a/test/sql-tap/like3.test.lua
+++ = b/test/sql-tap/like3.test.lua
@@ -1,6 +1,6 = @@
 #!/usr/bin/env tarantool
 test =3D = require("sqltester")
-test:plan(7)
+test:plan(1)
=
 
 --!./tcltestrunner.lua
 -- = 2015-03-06
@@ -12,13 +12,13 @@ test:plan(7)
 -- =    May you find forgiveness for yourself and forgive = others.
 --    May you share freely, never = taking more than you = give.
 --
---------------------------------------= -----------------------------------
+---------------------------= --------------------------------------
 --
--- = This file implements regression tests for SQLite library. =  The
--- focus of this file is testing the LIKE and GLOB = operators and
--- in particular the optimizations that occur = to help those operators
--- run faster and that those = optimizations work correctly when there
--- are both strings = and blobs being tested.
+-- This file implements regression = tests for SQLite library. The
+-- focus of this file is = testing the LIKE operator and
+-- in particular the = optimizations that occur to help this
+-- operator run faster = and that those optimizations work
+-- correctly when there are = both strings and blobs being = tested.
 --
 -- Ticket = 05f43be8fdda9fbd948d374319b99b054140bc36 shows that the = following
 -- SQL was not working correctly:
@@ = -67,68 +67,6 @@ test:do_execsql_test(
      =    -- </like3-1.2>
    =  })
 
-test:do_execsql_test(
- =    "like3-2.0",
-    [[
-   =      CREATE TABLE t2(a PRIMARY KEY, b TEXT);
- =        INSERT INTO t2 SELECT a, b FROM = t1;
-        CREATE INDEX t2ba ON = t2(b,a);
-        SELECT a, b FROM t2 = WHERE b GLOB 'ab*' ORDER BY +a;
-    ]], = {
-        -- = <like3-2.0>
-        1, "abc", 4, = "abc"
-        -- = </like3-2.0>
-   =  })
-
-test:do_execsql_test(
-   =  "like3-2.1",
-    [[
-     =    SELECT a, b FROM t2 WHERE +b GLOB 'ab*' ORDER BY = +a;
-    ]], {
-       =  -- <like3-2.1>
-        1, = "abc", 4, "abc"
-        -- = </like3-2.1>
-   =  })
-
-test:do_execsql_test(
-   =  "like3-2.2",
-    [[
-     =    SELECT a, b FROM t2 WHERE b>=3Dx'6162' AND b GLOB = 'ab*'
-    ]], {
-       =  -- <like3-2.2>
-        4, = "abc"
-        -- = </like3-2.2>
-   =  })
-
-test:do_execsql_test(
-   =  "like3-2.3",
-    [[
-     =    SELECT a, b FROM t2 WHERE +b>=3Dx'6162' AND +b GLOB = 'ab*'
-    ]], {
-       =  -- <like3-2.3>
-        4, = "abc"
-        -- = </like3-2.3>
-   =  })
-
-test:do_execsql_test(
-   =  "like3-2.4",
-    [[
-     =    SELECT a, b FROM t2 WHERE b GLOB 'ab*' AND = b>=3Dx'6162'
-    ]], {
-     =    -- <like3-2.4>
-       =  4, "abc"
-        -- = </like3-2.4>
-   =  })
-
-test:do_execsql_test(
-   =  "like3-2.5",
-    [[
-     =    SELECT a, b FROM t2 WHERE +b GLOB 'ab*' AND = +b>=3Dx'6162'
-    ]], {
-   =      -- <like3-2.5>
-     =    4, "abc"
-        -- = </like3-2.5>
-   =  })
 test:execsql([[
    =  CREATE TABLE t3(x TEXT PRIMARY KEY COLLATE = "unicode_ci");
     INSERT INTO t3(x) = VALUES('aaa'),('abc'),('abd'),('abe'),('acz');
diff --git = a/test/sql-tap/tkt1537.test.lua = b/test/sql-tap/tkt1537.test.lua
index caa428409..4b2d78c18 = 100755
--- a/test/sql-tap/tkt1537.test.lua
+++ = b/test/sql-tap/tkt1537.test.lua
@@ -185,7 +185,7 @@ = test:do_execsql_test(
 test:do_execsql_test(
&nbs= p;    "tkt1537-3.1",
    =  [[
-        SELECT * FROM t1 LEFT = JOIN t2 ON b GLOB 'abc*' WHERE t1.id=3D1;
+        SELECT = * FROM t1 LEFT JOIN t2 ON b LIKE 'abc%' WHERE t1.id=3D1;
     ]], = {
         -- = <tkt1537-3.1>
         1, "", = "", "", ""
@@ -195,7 +195,7 @@ = test:do_execsql_test(
 test:do_execsql_test(
&nbs= p;    "tkt1537-3.2",
    =  [[
-        SELECT * FROM t2 LEFT = JOIN t1 ON a1 GLOB 'abc*' WHERE t2.id=3D3;
+        SELECT = * FROM t2 LEFT JOIN t1 ON a1 LIKE 'abc%' WHERE t2.id=3D3;
     ]], = {
         -- = <tkt1537-3.2>
         3, 1, = "", "", ""
diff --git a/test/sql-tap/triggerA.test.lua = b/test/sql-tap/triggerA.test.lua
index da1add8e2..530e48830 = 100755
--- a/test/sql-tap/triggerA.test.lua
+++ = b/test/sql-tap/triggerA.test.lua
@@ -76,7 +76,7 @@ = test:do_test(
    =  "triggerA-1.3",
    =  function()
         return = test:execsql [[
-           =  CREATE VIEW v2 AS SELECT x, y FROM t1 WHERE y GLOB = '*e*';
+            CREATE VIEW = v2 AS SELECT x, y FROM t1 WHERE y LIKE '%e%';
    =          SELECT * FROM v2 ORDER BY = 1;
         ]]
  =    end, {
diff --git a/test/sql-tap/where3.test.lua = b/test/sql-tap/where3.test.lua
index 45827373f..96761310c = 100755
--- a/test/sql-tap/where3.test.lua
+++ = b/test/sql-tap/where3.test.lua
@@ -404,7 +404,7 @@ if = 0
             CREATE TABLE = t401(p INTEGER PRIMARY KEY, q, r);
        =      CREATE TABLE t402(x INTEGER PRIMARY KEY, y, = z);
             EXPLAIN = QUERY PLAN
-            SELECT * = FROM t400, t401, t402 WHERE t402.z GLOB 'abc*';
+   =          SELECT * FROM t400, t401, t402 WHERE = t402.z LIKE 'abc%';
         ]], = {
             -- = <where3-4.0>
            =  0, 0, 2, "SCAN TABLE T402", 0, 1, 0, "SCAN TABLE T400", 0, 2, 1, = "SCAN TABLE T401"
@@ -415,7 +415,7 @@ if 0
  =        "where3-4.1",
      =    [[
            =  EXPLAIN QUERY PLAN
-           =  SELECT * FROM t400, t401, t402 WHERE t401.r GLOB = 'abc*';
+            SELECT * = FROM t400, t401, t402 WHERE t401.r LIKE 'abc%';
    =      ]], {
          =    -- <where3-4.1>
        =      0, 0, 1, "SCAN TABLE T401", 0, 1, 0, "SCAN TABLE = T400", 0, 2, 2, "SCAN TABLE T402"
@@ -426,7 +426,7 @@ if = 0
        =  "where3-4.2",
        =  [[
            =  EXPLAIN QUERY PLAN
-           =  SELECT * FROM t400, t401, t402 WHERE t400.c GLOB = 'abc*';
+            SELECT * = FROM t400, t401, t402 WHERE t400.c LIKE 'abc%';
    =      ]], {
          =    -- <where3-4.2>
        =      0, 0, 0, "SCAN TABLE T400", 0, 1, 1, "SCAN TABLE = T401", 0, 2, 2, "SCAN TABLE T402"
diff --git = a/test/sql-tap/where7.test.lua = b/test/sql-tap/where7.test.lua
index 6691dd03b..27d25e671 = 100755
--- a/test/sql-tap/where7.test.lua
+++ = b/test/sql-tap/where7.test.lua
@@ -448,12 +448,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D1070
- =         OR (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+         OR (g=3D'edcbazy' AND = f LIKE 'wxyza%')
          OR = (d>=3D89.0 AND d<90.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 18 AND 20) AND a!=3D19)
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
-         OR (g=3D'fedcbaz' AND = f GLOB 'stuvw*')
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (g=3D'qponmlk' AND f LIKE 'nopqr%')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
+     =     OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
  =  ]])
     end, {
    =      -- <where7-2.2.1>
@@ -467,12 +467,12 = @@ test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D1070
- =         OR (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+         OR (g=3D'edcbazy' AND = f LIKE 'wxyza%')
          OR = (d>=3D89.0 AND d<90.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 18 AND 20) AND a!=3D19)
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
-         OR (g=3D'fedcbaz' AND = f GLOB 'stuvw*')
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (g=3D'qponmlk' AND f LIKE 'nopqr%')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
+     =     OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
  =  ]])
     end, {
    =      -- <where7-2.2.2>
@@ -487,11 +487,11 = @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 33 AND 35) AND a!=3D34)
-     =     OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'edcbazy' AND f LIKE = 'uvwxy%')
          OR = b=3D220
          OR (d>=3D70.0 = AND d<71.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
-     =     OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'pqrst%')
   ]])
     end, = {
         -- = <where7-2.3.1>
@@ -506,11 +506,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 33 AND 35) AND a!=3D34)
-     =     OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'edcbazy' AND f LIKE = 'uvwxy%')
          OR = b=3D220
          OR (d>=3D70.0 = AND d<71.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
-     =     OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'pqrst%')
   ]])
     end, = {
         -- = <where7-2.3.2>
@@ -525,7 +525,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D190
  =         OR ((a BETWEEN 49 AND 51) AND = a!=3D50)
-         OR (g=3D'rqponml' AND f = GLOB 'hijkl*')
+         OR (g=3D'rqponml' = AND f LIKE 'hijkl%')
          OR = b=3D407
   ]])
     end, = {
@@ -541,7 +541,7 @@ test:do_test(
    =   SELECT a FROM t3
       WHERE = b=3D190
          OR ((a BETWEEN 49 = AND 51) AND a!=3D50)
-         OR = (g=3D'rqponml' AND f GLOB 'hijkl*')
+       =   OR (g=3D'rqponml' AND f LIKE 'hijkl%')
    =       OR b=3D407
  =  ]])
     end, {
@@ -555,7 = +555,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?opqr*' AND f GLOB = 'nopq*')
+      WHERE (f LIKE '_opqr%' AND f = LIKE 'nopq%')
          OR = b=3D795
          OR = b=3D1103
          OR = b=3D583
@@ -571,7 +571,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (f GLOB '?opqr*' AND f = GLOB 'nopq*')
+      WHERE (f LIKE '_opqr%' AND = f LIKE 'nopq%')
          OR = b=3D795
          OR = b=3D1103
          OR = b=3D583
@@ -589,7 +589,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE a=3D74
          OR = a=3D50
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'hijkl%')
          OR ((a = BETWEEN 16 AND 18) AND a!=3D17)
        =   OR c=3D21021
          OR ((a = BETWEEN 82 AND 84) AND a!=3D83)
@@ -607,7 +607,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D74
  =         OR a=3D50
-       =   OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =     OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
  =         OR ((a BETWEEN 16 AND 18) AND = a!=3D17)
          OR = c=3D21021
          OR ((a BETWEEN 82 = AND 84) AND a!=3D83)
@@ -746,7 +746,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D72.0 AND = d<73.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR c=3D11011
        =   OR c=3D20020
          OR = (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
@@ -763,7 = +763,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D72.0 AND = d<73.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR c=3D11011
        =   OR c=3D20020
          OR = (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
@@ -781,7 = +781,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D50.0 AND = d<51.0 AND d IS NOT NULL)
        =   OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL)
- =         OR (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'rstuv%')
          OR = b=3D792
          OR = a=3D97
          OR (d>=3D87.0 AND = d<88.0 AND d IS NOT NULL)
@@ -804,7 +804,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D50.0 AND = d<51.0 AND d IS NOT NULL)
        =   OR (d>=3D83.0 AND d<84.0 AND d IS NOT NULL)
- =         OR (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'rstuv%')
          OR = b=3D792
          OR = a=3D97
          OR (d>=3D87.0 AND = d<88.0 AND d IS NOT NULL)
@@ -827,11 +827,11 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 50 AND 52) AND = a!=3D51)
          OR = c=3D9009
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = b=3D539
          OR = b=3D297
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
-         OR (g=3D'vutsrqp' = AND f GLOB 'pqrst*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'klmno%')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
    =       OR b=3D957
        =   OR f=3D'xyzabcdef'
          = OR b=3D619
@@ -849,11 +849,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 50 AND 52) AND = a!=3D51)
          OR = c=3D9009
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = b=3D539
          OR = b=3D297
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
-         OR (g=3D'vutsrqp' = AND f GLOB 'pqrst*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'klmno%')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
    =       OR b=3D957
        =   OR f=3D'xyzabcdef'
          = OR b=3D619
@@ -931,7 +931,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D938
          OR = (d>=3D67.0 AND d<68.0 AND d IS NOT NULL)
-     =     OR (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'rstuv%')
   ]])
     end, = {
         -- = <where7-2.16.1>
@@ -946,7 +946,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D938
  =         OR (d>=3D67.0 AND d<68.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'rstuv*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'rstuv%')
   ]])
    =  end, {
         -- = <where7-2.16.2>
@@ -963,12 +963,12 @@ = test:do_test(
          OR = f=3D'zabcdefgh'
          OR = b=3D308
          OR (d>=3D16.0 = AND d<17.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 15 AND 17) AND = a!=3D16)
          OR = b=3D443
          OR ((a BETWEEN 12 = AND 14) AND a!=3D13)
          OR = f=3D'uvwxyzabc'
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
+         OR = (f LIKE '_zabc%' AND f LIKE 'yzab%')
  =  ]])
     end, {
    =      -- <where7-2.17.1>
@@ -985,12 = +985,12 @@ test:do_test(
          OR = f=3D'zabcdefgh'
          OR = b=3D308
          OR (d>=3D16.0 = AND d<17.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 15 AND 17) AND = a!=3D16)
          OR = b=3D443
          OR ((a BETWEEN 12 = AND 14) AND a!=3D13)
          OR = f=3D'uvwxyzabc'
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
+         OR = (f LIKE '_zabc%' AND f LIKE 'yzab%')
  =  ]])
     end, {
    =      -- <where7-2.17.2>
@@ -1037,13 = +1037,13 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
        =   OR a=3D46
-         OR (g=3D'yxwvuts'= AND f GLOB 'cdefg*')
+         OR = (g=3D'yxwvuts' AND f LIKE 'cdefg%')
      =     OR a=3D73
          OR = c=3D20020
          OR ((a BETWEEN 2 = AND 4) AND a!=3D3)
          OR = b=3D267
          OR ((a BETWEEN 68 = AND 70) AND a!=3D69)
-         OR = (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.19.1>
@@ -1058,13 = +1058,13 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
        =   OR a=3D46
-         OR (g=3D'yxwvuts'= AND f GLOB 'cdefg*')
+         OR = (g=3D'yxwvuts' AND f LIKE 'cdefg%')
      =     OR a=3D73
          OR = c=3D20020
          OR ((a BETWEEN 2 = AND 4) AND a!=3D3)
          OR = b=3D267
          OR ((a BETWEEN 68 = AND 70) AND a!=3D69)
-         OR = (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.19.2>
@@ -1078,7 = +1078,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 27 AND = 29) AND a!=3D28)
-         OR (g=3D'gfedcba'= AND f GLOB 'nopqr*')
+         OR = (g=3D'gfedcba' AND f LIKE 'nopqr%')
  =  ]])
     end, {
    =      -- <where7-2.20.1>
@@ -1092,7 = +1092,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 27 AND = 29) AND a!=3D28)
-         OR (g=3D'gfedcba'= AND f GLOB 'nopqr*')
+         OR = (g=3D'gfedcba' AND f LIKE 'nopqr%')
  =  ]])
     end, {
    =      -- <where7-2.20.2>
@@ -1111,9 = +1111,9 @@ test:do_test(
          OR = ((a BETWEEN 87 AND 89) AND a!=3D88)
      =     OR f=3D'bcdefghij'
        =   OR b=3D586
-         OR = (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 59 AND 61) AND a!=3D60)
- =         OR (g=3D'mlkjihg' AND f GLOB = 'ghijk*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'ghijk%')
          OR = (d>=3D6.0 AND d<7.0 AND d IS NOT NULL)
    =       OR a=3D9
   ]])
@@ = -1134,9 +1134,9 @@ test:do_test(
        =   OR ((a BETWEEN 87 AND 89) AND a!=3D88)
    =       OR f=3D'bcdefghij'
      =     OR b=3D586
-         OR = (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 59 AND 61) AND a!=3D60)
- =         OR (g=3D'mlkjihg' AND f GLOB = 'ghijk*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'ghijk%')
          OR = (d>=3D6.0 AND d<7.0 AND d IS NOT NULL)
    =       OR a=3D9
   ]])
@@ = -1154,7 +1154,7 @@ test:do_test(
      =  WHERE b=3D399
          OR = c=3D28028
          OR (d>=3D82.0 = AND d<83.0 AND d IS NOT NULL)
-         = OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -1171,7 +1171,7 @@ test:do_test(
    =    WHERE b=3D399
          = OR c=3D28028
          OR (d>=3D82.0= AND d<83.0 AND d IS NOT NULL)
-       =   OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
  =         OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -1185,15 +1185,15 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'fedcbaz' AND f = LIKE 'rstuv%')
          OR ((a = BETWEEN 96 AND 98) AND a!=3D97)
        =   OR c=3D14014
          OR = c=3D33033
          OR = a=3D89
          OR b=3D770
-=         OR (g=3D'utsrqpo' AND f GLOB = 'tuvwx*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'tuvwx%')
          OR = a=3D35
-         OR (f GLOB '?fghi*' AND f = GLOB 'efgh*')
+         OR (f LIKE = '_fghi%' AND f LIKE 'efgh%')
        =   OR b=3D253
          OR = c=3D14014
   ]])
@@ -1208,15 +1208,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR ((a BETWEEN 96 AND 98) AND = a!=3D97)
          OR = c=3D14014
          OR = c=3D33033
          OR = a=3D89
          OR b=3D770
-=         OR (g=3D'utsrqpo' AND f GLOB = 'tuvwx*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'tuvwx%')
          OR = a=3D35
-         OR (f GLOB '?fghi*' AND f = GLOB 'efgh*')
+         OR (f LIKE = '_fghi%' AND f LIKE 'efgh%')
        =   OR b=3D253
          OR = c=3D14014
   ]])
@@ -1231,10 +1231,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 32 AND 34) AND = a!=3D33)
          OR = b=3D330
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'ghijk%')
          OR = a=3D16
   ]])
     end, = {
@@ -1248,10 +1248,10 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'utsrqpo' AND f = LIKE 'vwxyz%')
          OR ((a = BETWEEN 32 AND 34) AND a!=3D33)
        =   OR b=3D330
-         OR = (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR a=3D16
  =  ]])
     end, {
@@ -1268,7 = +1268,7 @@ test:do_test(
       WHERE = c=3D5005
          OR (d>=3D2.0 = AND d<3.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 36 AND 38) AND a!=3D37)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.25.1>
@@ -1284,7 +1284,7 @@ = test:do_test(
       WHERE = c=3D5005
          OR (d>=3D2.0 = AND d<3.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 36 AND 38) AND a!=3D37)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.25.2>
@@ -1298,9 +1298,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D30.0 AND = d<31.0 AND d IS NOT NULL)
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR ((a BETWEEN 64 AND 66) AND a!=3D65)
- =         OR (g=3D'kjihgfe' AND f GLOB = 'qrstu*')
+         OR (g=3D'kjihgfe' AND = f LIKE 'qrstu%')
          OR = a=3D33
   ]])
     end, = {
@@ -1315,9 +1315,9 @@ test:do_test(
    =      return count_steps_sort([[
    =   SELECT a FROM t3
       WHERE = (d>=3D30.0 AND d<31.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'ghijk%')
          OR ((a BETWEEN 64 = AND 66) AND a!=3D65)
-         OR = (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
    =       OR a=3D33
  =  ]])
     end, {
@@ -1361,8 = +1361,8 @@ test:do_test(
      SELECT a FROM = t2
       WHERE c=3D18018
  =         OR a=3D94
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
-     =     OR (g=3D'tsrqpon' AND f GLOB 'abcde*')
+   =       OR (f LIKE '_qrst%' AND f LIKE 'pqrs%')
+ =         OR (g=3D'tsrqpon' AND f LIKE = 'abcde%')
          OR = b=3D1012
          OR = a=3D3
          OR = d>1e10
@@ -1382,8 +1382,8 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE c=3D18018
          OR = a=3D94
-         OR (f GLOB '?qrst*' AND f = GLOB 'pqrs*')
-         OR (g=3D'tsrqpon' = AND f GLOB 'abcde*')
+         OR (f LIKE = '_qrst%' AND f LIKE 'pqrs%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'abcde%')
      =     OR b=3D1012
          = OR a=3D3
          OR = d>1e10
@@ -1405,11 +1405,11 @@ = test:do_test(
          OR = c=3D11011
          OR = b=3D297
          OR a=3D63
-=         OR (g=3D'hgfedcb' AND f GLOB = 'ghijk*')
+         OR (g=3D'hgfedcb' AND = f LIKE 'ghijk%')
          OR = a=3D76
          OR = b=3D1026
          OR = a=3D26
-         OR (f GLOB '?zabc*' AND f = GLOB 'yzab*')
+         OR (f LIKE = '_zabc%' AND f LIKE 'yzab%')
        =   OR c=3D30030
   ]])
    =  end, {
@@ -1427,11 +1427,11 @@ = test:do_test(
          OR = c=3D11011
          OR = b=3D297
          OR a=3D63
-=         OR (g=3D'hgfedcb' AND f GLOB = 'ghijk*')
+         OR (g=3D'hgfedcb' AND = f LIKE 'ghijk%')
          OR = a=3D76
          OR = b=3D1026
          OR = a=3D26
-         OR (f GLOB '?zabc*' AND f = GLOB 'yzab*')
+         OR (f LIKE = '_zabc%' AND f LIKE 'yzab%')
        =   OR c=3D30030
   ]])
    =  end, {
@@ -1449,7 +1449,7 @@ = test:do_test(
          OR = b=3D1070
          OR = a=3D59
          OR b=3D715
-=         OR (f GLOB '?yzab*' AND f GLOB = 'xyza*')
+         OR (f LIKE '_yzab%' AND = f LIKE 'xyza%')
   ]])
    =  end, {
         -- = <where7-2.30.1>
@@ -1466,7 +1466,7 @@ = test:do_test(
          OR = b=3D1070
          OR = a=3D59
          OR b=3D715
-=         OR (f GLOB '?yzab*' AND f GLOB = 'xyza*')
+         OR (f LIKE '_yzab%' AND = f LIKE 'xyza%')
   ]])
    =  end, {
         -- = <where7-2.30.2>
@@ -1479,13 +1479,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR b=3D1056
        =   OR b=3D1012
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
    =       OR (d>=3D19.0 AND d<20.0 AND d IS NOT = NULL)
-         OR (f GLOB '?bcde*' AND f = GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
   ]])
  =    end, {
         -- = <where7-2.31.1>
@@ -1498,13 +1498,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR b=3D1056
        =   OR b=3D1012
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
    =       OR (d>=3D19.0 AND d<20.0 AND d IS NOT = NULL)
-         OR (f GLOB '?bcde*' AND f = GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
   ]])
  =    end, {
         -- = <where7-2.31.2>
@@ -1518,7 +1518,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE f=3D'rstuvwxyz'
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'jihgfed' AND = f LIKE 'wxyza%')
          OR ((a = BETWEEN 90 AND 92) AND a!=3D91)
        =   OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
   ]])
@@ -1534,7 +1534,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE f=3D'rstuvwxyz'
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'jihgfed' AND = f LIKE 'wxyza%')
          OR ((a = BETWEEN 90 AND 92) AND a!=3D91)
        =   OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
   ]])
@@ -1549,13 +1549,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?stuv*' AND f GLOB 'rstu*')
+      WHERE = (f LIKE '_stuv%' AND f LIKE 'rstu%')
      =     OR c=3D12012
          = OR a=3D18
-         OR (g=3D'jihgfed' AND = f GLOB 'yzabc*')
-         OR (f GLOB = '?bcde*' AND f GLOB 'abcd*')
-         OR = (f GLOB '?klmn*' AND f GLOB 'jklm*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
+ =         OR (f LIKE '_klmn%' AND f LIKE = 'jklm%')
+         OR (f LIKE '_qrst%' AND = f LIKE 'pqrs%')
   ]])
    =  end, {
         -- = <where7-2.33.1>
@@ -1568,13 +1568,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?stuv*' AND f GLOB 'rstu*')
+      WHERE = (f LIKE '_stuv%' AND f LIKE 'rstu%')
      =     OR c=3D12012
          = OR a=3D18
-         OR (g=3D'jihgfed' AND = f GLOB 'yzabc*')
-         OR (f GLOB = '?bcde*' AND f GLOB 'abcd*')
-         OR = (f GLOB '?klmn*' AND f GLOB 'jklm*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
+ =         OR (f LIKE '_klmn%' AND f LIKE = 'jklm%')
+         OR (f LIKE '_qrst%' AND = f LIKE 'pqrs%')
   ]])
    =  end, {
         -- = <where7-2.33.2>
@@ -1622,7 +1622,7 @@ = test:do_test(
          OR ((a = BETWEEN 67 AND 69) AND a!=3D68)
        =   OR c=3D33033
          OR = b=3D11
-         OR (g=3D'wvutsrq' AND f = GLOB 'lmnop*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'lmnop%')
          OR ((a = BETWEEN 7 AND 9) AND a!=3D8)
   ]])
  =    end, {
@@ -1643,7 +1643,7 @@ = test:do_test(
          OR ((a = BETWEEN 67 AND 69) AND a!=3D68)
        =   OR c=3D33033
          OR = b=3D11
-         OR (g=3D'wvutsrq' AND f = GLOB 'lmnop*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'lmnop%')
          OR ((a = BETWEEN 7 AND 9) AND a!=3D8)
   ]])
  =    end, {
@@ -1719,7 +1719,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D165
  =         OR b=3D201
-       =   OR (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =         OR a=3D32
  =  ]])
     end, {
@@ -1735,7 = +1735,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D165
  =         OR b=3D201
-       =   OR (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =         OR a=3D32
  =  ]])
     end, {
@@ -1749,8 = +1749,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'rstuv*')
-         OR (f GLOB '?xyza*' = AND f GLOB 'wxyz*')
+      WHERE (g=3D'kjihgfe' = AND f LIKE 'rstuv%')
+         OR (f LIKE = '_xyza%' AND f LIKE 'wxyz%')
   ]])
  =    end, {
         -- = <where7-2.39.1>
@@ -1763,8 +1763,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
-       =   OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%')
+   =       OR (f LIKE '_xyza%' AND f LIKE = 'wxyz%')
   ]])
     end, = {
         -- = <where7-2.39.2>
@@ -1785,8 +1785,8 @@ = test:do_test(
          OR = a=3D18
          OR = a=3D34
          OR b=3D132
-=         OR (g=3D'gfedcba' AND f GLOB = 'lmnop*')
-         OR (f GLOB '?defg*' = AND f GLOB 'cdef*')
+         OR = (g=3D'gfedcba' AND f LIKE 'lmnop%')
+       =   OR (f LIKE '_defg%' AND f LIKE 'cdef%')
    =       OR c=3D18018
  =  ]])
     end, {
@@ -1808,8 = +1808,8 @@ test:do_test(
          OR = a=3D18
          OR = a=3D34
          OR b=3D132
-=         OR (g=3D'gfedcba' AND f GLOB = 'lmnop*')
-         OR (f GLOB '?defg*' = AND f GLOB 'cdef*')
+         OR = (g=3D'gfedcba' AND f LIKE 'lmnop%')
+       =   OR (f LIKE '_defg%' AND f LIKE 'cdef%')
    =       OR c=3D18018
  =  ]])
     end, {
@@ -1851,13 = +1851,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?efgh*' AND f GLOB = 'defg*')
+      WHERE (f LIKE '_efgh%' AND f = LIKE 'defg%')
          OR = (d>=3D14.0 AND d<15.0 AND d IS NOT NULL)
-     =     OR (g=3D'hgfedcb' AND f GLOB 'fghij*')
+   =       OR (g=3D'hgfedcb' AND f LIKE = 'fghij%')
          OR = b=3D297
          OR = b=3D113
          OR = b=3D176
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = (d>=3D75.0 AND d<76.0 AND d IS NOT NULL)
    =       OR a=3D67
        =   OR c=3D26026
@@ -1873,13 +1873,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
+      WHERE = (f LIKE '_efgh%' AND f LIKE 'defg%')
      =     OR (d>=3D14.0 AND d<15.0 AND d IS NOT = NULL)
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
          OR = b=3D297
          OR = b=3D113
          OR = b=3D176
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = (d>=3D75.0 AND d<76.0 AND d IS NOT NULL)
    =       OR a=3D67
        =   OR c=3D26026
@@ -1940,8 +1940,8 @@ = test:do_test(
          OR ((a = BETWEEN 32 AND 34) AND a!=3D33)
        =   OR b=3D487
          OR = b=3D619
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
-         OR (g=3D'vutsrqp' = AND f GLOB 'rstuv*')
+         OR = (g=3D'qponmlk' AND f LIKE 'nopqr%')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.44.1>
@@ -1959,8 = +1959,8 @@ test:do_test(
          OR = ((a BETWEEN 32 AND 34) AND a!=3D33)
      =     OR b=3D487
          OR = b=3D619
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
-         OR (g=3D'vutsrqp' = AND f GLOB 'rstuv*')
+         OR = (g=3D'qponmlk' AND f LIKE 'nopqr%')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.44.2>
@@ -1980,7 = +1980,7 @@ test:do_test(
          OR = c=3D17017
          OR = a=3D82
          OR (d>=3D65.0 AND = d<66.0 AND d IS NOT NULL)
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'rqponml' AND f LIKE 'lmnop%')
    =       OR ((a BETWEEN 56 AND 58) AND = a!=3D57)
          OR (d>=3D39.0 = AND d<40.0 AND d IS NOT NULL)
   ]])
@@ = -2002,7 +2002,7 @@ test:do_test(
        =   OR c=3D17017
          OR = a=3D82
          OR (d>=3D65.0 AND = d<66.0 AND d IS NOT NULL)
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'rqponml' AND f LIKE 'lmnop%')
    =       OR ((a BETWEEN 56 AND 58) AND = a!=3D57)
          OR (d>=3D39.0 = AND d<40.0 AND d IS NOT NULL)
   ]])
@@ = -2017,7 +2017,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'bcdef*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'bcdef%')
          OR = c=3D22022
   ]])
     end, = {
@@ -2031,7 +2031,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'bcdef*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'bcdef%')
          OR = c=3D22022
   ]])
     end, = {
@@ -2048,7 +2048,7 @@ test:do_test(
    =    WHERE c=3D7007
          = OR b=3D91
          OR = b=3D212
-         OR (g=3D'lkjihgf' AND f = GLOB 'nopqr*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'nopqr%')
          OR = c=3D28028
          OR (d>=3D83.0 = AND d<84.0 AND d IS NOT NULL)
   ]])
@@ = -2066,7 +2066,7 @@ test:do_test(
      =  WHERE c=3D7007
          OR = b=3D91
          OR b=3D212
-=         OR (g=3D'lkjihgf' AND f GLOB = 'nopqr*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'nopqr%')
          OR = c=3D28028
          OR (d>=3D83.0 = AND d<84.0 AND d IS NOT NULL)
   ]])
@@ = -2111,9 +2111,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
-         OR (g=3D'wvutsrq' AND = f GLOB 'jklmn*')
-         OR (g=3D'tsrqpon'= AND f GLOB 'xyzab*')
+      WHERE (g=3D'wvutsrq'= AND f LIKE 'mnopq%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'xyzab%')
    =       OR ((a BETWEEN 0 AND 2) AND a!=3D1)
  =         OR c=3D4004
      =     OR b=3D322
@@ -2131,9 +2131,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'mnopq*')
-       =   OR (g=3D'wvutsrq' AND f GLOB 'jklmn*')
-     =     OR (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+   =    WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'jklmn%')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR ((a = BETWEEN 0 AND 2) AND a!=3D1)
        =   OR c=3D4004
          OR = b=3D322
@@ -2156,8 +2156,8 @@ test:do_test(
  =         OR a=3D46
      =     OR b=3D660
          OR = (d>=3D41.0 AND d<42.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
-   =       OR (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+ =         OR (f LIKE '_yzab%' AND f LIKE = 'xyza%')
+         OR (g=3D'vutsrqp' AND f = LIKE 'rstuv%')
          OR = b=3D355
          OR = a=3D93
          OR = b=3D297
@@ -2178,8 +2178,8 @@ test:do_test(
  =         OR a=3D46
      =     OR b=3D660
          OR = (d>=3D41.0 AND d<42.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
-   =       OR (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+ =         OR (f LIKE '_yzab%' AND f LIKE = 'xyza%')
+         OR (g=3D'vutsrqp' AND f = LIKE 'rstuv%')
          OR = b=3D355
          OR = a=3D93
          OR = b=3D297
@@ -2197,7 +2197,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D190
          OR = a=3D62
-         OR (g=3D'edcbazy' AND f = GLOB 'vwxyz*')
+         OR (g=3D'edcbazy' = AND f LIKE 'vwxyz%')
   ]])
    =  end, {
         -- = <where7-2.51.1>
@@ -2212,7 +2212,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D190
  =         OR a=3D62
-       =   OR (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.51.2>
@@ -2306,7 = +2306,7 @@ test:do_test(
          OR = b=3D256
          OR = a=3D72
          OR = c>=3D34035
-         OR (g=3D'rqponml' = AND f GLOB 'jklmn*')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
      =     OR b=3D674
          OR = a=3D22
   ]])
@@ -2328,7 +2328,7 @@ = test:do_test(
          OR = b=3D256
          OR = a=3D72
          OR = c>=3D34035
-         OR (g=3D'rqponml' = AND f GLOB 'jklmn*')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
      =     OR b=3D674
          OR = a=3D22
   ]])
@@ -2381,9 +2381,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR ((a BETWEEN 96 AND 98) AND a!=3D97)
- =         OR (g=3D'onmlkji' AND f GLOB = 'xyzab*')
+         OR (g=3D'onmlkji' AND = f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.56.1>
@@ -2396,9 +2396,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR ((a BETWEEN 96 AND 98) AND a!=3D97)
- =         OR (g=3D'onmlkji' AND f GLOB = 'xyzab*')
+         OR (g=3D'onmlkji' AND = f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.56.2>
@@ -2413,7 +2413,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D748
  =         OR (d>=3D20.0 AND d<21.0 AND d IS NOT = NULL)
-         OR (g=3D'lkjihgf' AND f = GLOB 'pqrst*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'pqrst%')
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
    =       OR b=3D630
   ]])
@@ = -2430,7 +2430,7 @@ test:do_test(
      SELECT a = FROM t3
       WHERE = b=3D748
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
    =       OR (d>=3D9.0 AND d<10.0 AND d IS NOT = NULL)
          OR = b=3D630
   ]])
@@ -2521,7 +2521,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D979
  =         OR ((a BETWEEN 3 AND 5) AND = a!=3D4)
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.60.1>
@@ -2536,7 +2536,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D979
  =         OR ((a BETWEEN 3 AND 5) AND = a!=3D4)
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.60.2>
@@ -2555,7 +2555,7 @@ = test:do_test(
          OR = b=3D726
          OR (d>=3D10.0 = AND d<11.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 50 AND 52) AND a!=3D51)
-     =     OR (g=3D'vutsrqp' AND f GLOB 'opqrs*')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'opqrs%')
          OR ((a BETWEEN 59 = AND 61) AND a!=3D60)
   ]])
    =  end, {
@@ -2575,7 +2575,7 @@ = test:do_test(
          OR = b=3D726
          OR (d>=3D10.0 = AND d<11.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 50 AND 52) AND a!=3D51)
-     =     OR (g=3D'vutsrqp' AND f GLOB 'opqrs*')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'opqrs%')
          OR ((a BETWEEN 59 = AND 61) AND a!=3D60)
   ]])
    =  end, {
@@ -2593,10 +2593,10 @@ = test:do_test(
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR b=3D924
          OR = c=3D11011
-         OR (f GLOB '?wxyz*' = AND f GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D231
          OR = b=3D872
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
+         OR (g=3D'jihgfed' = AND f LIKE 'yzabc%')
   ]])
    =  end, {
         -- = <where7-2.62.1>
@@ -2613,10 +2613,10 @@ = test:do_test(
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR b=3D924
          OR = c=3D11011
-         OR (f GLOB '?wxyz*' = AND f GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D231
          OR = b=3D872
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
+         OR (g=3D'jihgfed' = AND f LIKE 'yzabc%')
   ]])
    =  end, {
         -- = <where7-2.62.2>
@@ -2631,8 +2631,8 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D24
  =         OR b=3D473
-       =   OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-     =     OR (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+   =       OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+ =         OR (g=3D'fedcbaz' AND f LIKE = 'stuvw%')
          OR = b=3D509
          OR = b=3D924
          OR (d>=3D21.0 = AND d<22.0 AND d IS NOT NULL)
@@ -2650,8 +2650,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D24
  =         OR b=3D473
-       =   OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-     =     OR (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+   =       OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+ =         OR (g=3D'fedcbaz' AND f LIKE = 'stuvw%')
          OR = b=3D509
          OR = b=3D924
          OR (d>=3D21.0 = AND d<22.0 AND d IS NOT NULL)
@@ -2668,11 +2668,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D93.0 AND = d<94.0 AND d IS NOT NULL)
-         OR = (f GLOB '?jklm*' AND f GLOB 'ijkl*')
-       =   OR (f GLOB '?defg*' AND f GLOB 'cdef*')
-     =     OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+   =       OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
+ =         OR (f LIKE '_defg%' AND f LIKE = 'cdef%')
+         OR (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = b=3D363
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
        =   OR ((a BETWEEN 56 AND 58) AND a!=3D57)
  =  ]])
@@ -2688,11 +2688,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D93.0 AND = d<94.0 AND d IS NOT NULL)
-         OR = (f GLOB '?jklm*' AND f GLOB 'ijkl*')
-       =   OR (f GLOB '?defg*' AND f GLOB 'cdef*')
-     =     OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+   =       OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
+ =         OR (f LIKE '_defg%' AND f LIKE = 'cdef%')
+         OR (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = b=3D363
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
        =   OR ((a BETWEEN 56 AND 58) AND a!=3D57)
  =  ]])
@@ -2711,9 +2711,9 @@ test:do_test(
  =         OR e IS NULL
      =     OR b=3D495
          OR = 1000000<b
-         OR (f GLOB '?vwxy*' = AND f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR a=3D45
-         OR (g=3D'kjihgfe'= AND f GLOB 'rstuv*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'rstuv%')
      =     OR a=3D85
          OR = (d>=3D65.0 AND d<66.0 AND d IS NOT NULL)
  =  ]])
@@ -2732,9 +2732,9 @@ test:do_test(
  =         OR e IS NULL
      =     OR b=3D495
          OR = 1000000<b
-         OR (f GLOB '?vwxy*' = AND f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR a=3D45
-         OR (g=3D'kjihgfe'= AND f GLOB 'rstuv*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'rstuv%')
      =     OR a=3D85
          OR = (d>=3D65.0 AND d<66.0 AND d IS NOT NULL)
  =  ]])
@@ -2781,9 +2781,9 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE c>=3D34035
          = OR ((a BETWEEN 96 AND 98) AND a!=3D97)
-       =   OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
-     =     OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
-   =       OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
+         OR (g=3D'edcbazy' AND = f LIKE 'wxyza%')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
        =   OR (d>=3D27.0 AND d<28.0 AND d IS NOT = NULL)
          OR = a=3D91
   ]])
@@ -2800,9 +2800,9 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE = c>=3D34035
          OR ((a = BETWEEN 96 AND 98) AND a!=3D97)
-         = OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
-       =   OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
-     =     OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+   =       OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
+ =         OR (g=3D'edcbazy' AND f LIKE = 'wxyza%')
+         OR (f LIKE '_mnop%' = AND f LIKE 'lmno%')
          OR = (d>=3D27.0 AND d<28.0 AND d IS NOT NULL)
    =       OR a=3D91
   ]])
@@ = -2817,9 +2817,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+      WHERE (g=3D'gfedcba' AND f = LIKE 'nopqr%')
          OR = (d>=3D28.0 AND d<29.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+   =       OR (f LIKE '_klmn%' AND f LIKE = 'jklm%')
          OR = b=3D649
          OR = b=3D231
          OR (d>=3D48.0 = AND d<49.0 AND d IS NOT NULL)
@@ -2837,9 +2837,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'gfedcba' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
-         OR (f GLOB '?klmn*' AND f = GLOB 'jklm*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
        =   OR b=3D649
          OR = b=3D231
          OR (d>=3D48.0 = AND d<49.0 AND d IS NOT NULL)
@@ -2918,11 +2918,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D65
-   =       OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
          OR = c=3D22022
-         OR (f GLOB '?ghij*' = AND f GLOB 'fghi*')
+         OR (f LIKE = '_ghij%' AND f LIKE 'fghi%')
        =   OR b=3D671
-         OR = (g=3D'onmlkji' AND f GLOB 'zabcd*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
    =       OR a=3D91
        =   OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 47 AND = 49) AND a!=3D48)
@@ -2941,11 +2941,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D65
-   =       OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
          OR = c=3D22022
-         OR (f GLOB '?ghij*' = AND f GLOB 'fghi*')
+         OR (f LIKE = '_ghij%' AND f LIKE 'fghi%')
        =   OR b=3D671
-         OR = (g=3D'onmlkji' AND f GLOB 'zabcd*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
    =       OR a=3D91
        =   OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 47 AND = 49) AND a!=3D48)
@@ -2995,7 +2995,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D11.0 AND = d<12.0 AND d IS NOT NULL)
        =   OR a=3D14
-         OR (g=3D'hgfedcb'= AND f GLOB 'hijkl*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'hijkl%')
      =     OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR (d>=3D23.0 AND = d<24.0 AND d IS NOT NULL)
        =   OR b=3D212
@@ -3014,7 +3014,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D11.0 AND = d<12.0 AND d IS NOT NULL)
        =   OR a=3D14
-         OR (g=3D'hgfedcb'= AND f GLOB 'hijkl*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'hijkl%')
      =     OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR (d>=3D23.0 AND = d<24.0 AND d IS NOT NULL)
        =   OR b=3D212
@@ -3031,11 +3031,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'bcdef*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%')
    =       OR b=3D168
        =   OR b=3D25
          OR = (d>=3D89.0 AND d<90.0 AND d IS NOT NULL)
-     =     OR (g=3D'lkjihgf' AND f GLOB 'opqrs*')
+   =       OR (g=3D'lkjihgf' AND f LIKE = 'opqrs%')
   ]])
     end, = {
         -- = <where7-2.74.1>
@@ -3048,11 +3048,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'bcdef*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'bcdef%')
    =       OR b=3D168
        =   OR b=3D25
          OR = (d>=3D89.0 AND d<90.0 AND d IS NOT NULL)
-     =     OR (g=3D'lkjihgf' AND f GLOB 'opqrs*')
+   =       OR (g=3D'lkjihgf' AND f LIKE = 'opqrs%')
   ]])
     end, = {
         -- = <where7-2.74.2>
@@ -3098,10 +3098,10 @@ = test:do_test(
       WHERE = c=3D31031
          OR (d>=3D100.0 = AND d<101.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 87 AND 89) AND a!=3D88)
-     =     OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
          OR = a=3D49
          OR (d>=3D56.0 AND = d<57.0 AND d IS NOT NULL)
-         OR = (g=3D'mlkjihg' AND f GLOB 'klmno*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.76.1>
@@ -3117,10 = +3117,10 @@ test:do_test(
       WHERE = c=3D31031
          OR (d>=3D100.0 = AND d<101.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 87 AND 89) AND a!=3D88)
-     =     OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
          OR = a=3D49
          OR (d>=3D56.0 AND = d<57.0 AND d IS NOT NULL)
-         OR = (g=3D'mlkjihg' AND f GLOB 'klmno*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.76.2>
@@ -3170,7 = +3170,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE (d>=3D85.0 AND = d<86.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'lmnop*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'lmnop%')
    =       OR ((a BETWEEN 30 AND 32) AND = a!=3D31)
          OR = b=3D1089
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
@@ -3187,7 +3187,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D85.0 AND = d<86.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'lmnop*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'lmnop%')
    =       OR ((a BETWEEN 30 AND 32) AND = a!=3D31)
          OR = b=3D1089
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
@@ -3205,8 +3205,8 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D399
  =         OR ((a BETWEEN 9 AND 11) AND = a!=3D10)
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
-         OR (g=3D'nmlkjih' = AND f GLOB 'fghij*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR a=3D10
        =   OR b=3D1026
   ]])
@@ -3223,8 = +3223,8 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D399
  =         OR ((a BETWEEN 9 AND 11) AND = a!=3D10)
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
-         OR (g=3D'nmlkjih' = AND f GLOB 'fghij*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR a=3D10
        =   OR b=3D1026
   ]])
@@ -3239,11 = +3239,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'jihgfed' AND f GLOB = 'yzabc*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'yzabc%')
          OR = b=3D465
-         OR (g=3D'ponmlkj' AND f = GLOB 'rstuv*')
-         OR (g=3D'lkjihgf' = AND f GLOB 'nopqr*')
-         OR = (g=3D'xwvutsr' AND f GLOB 'fghij*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
+   =       OR (g=3D'xwvutsr' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.80.1>
@@ -3256,11 +3256,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%')
    =       OR b=3D465
-         = OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
-       =   OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
-     =     OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+   =       OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
+ =         OR (g=3D'lkjihgf' AND f LIKE = 'nopqr%')
+         OR (g=3D'xwvutsr' AND = f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.80.2>
@@ -3275,7 +3275,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D25
  =         OR b=3D792
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+     =     OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
  =  ]])
     end, {
    =      -- <where7-2.81.1>
@@ -3290,7 = +3290,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE a=3D25
  =         OR b=3D792
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+     =     OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
  =  ]])
     end, {
    =      -- <where7-2.81.2>
@@ -3308,10 = +3308,10 @@ test:do_test(
          = OR a=3D13
          OR = a=3D15
          OR ((a BETWEEN 6 AND = 8) AND a!=3D7)
-         OR (g=3D'utsrqpo' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR a=3D27
          OR = ((a BETWEEN 98 AND 100) AND a!=3D99)
-       =   OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
  =         OR a=3D32
      =     OR a=3D39
   ]])
@@ -3331,10 = +3331,10 @@ test:do_test(
          = OR a=3D13
          OR = a=3D15
          OR ((a BETWEEN 6 AND = 8) AND a!=3D7)
-         OR (g=3D'utsrqpo' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR a=3D27
          OR = ((a BETWEEN 98 AND 100) AND a!=3D99)
-       =   OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
  =         OR a=3D32
      =     OR a=3D39
   ]])
@@ -3350,14 = +3350,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE = f=3D'hijklmnop'
-         OR (g=3D'utsrqpo' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR ((a BETWEEN 31 AND 33) AND a!=3D32)
-   =       OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+ =         OR (g=3D'mlkjihg' AND f LIKE = 'ghijk%')
          OR (d>=3D1.0 = AND d<2.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 77 AND 79) AND a!=3D78)
    =       OR b=3D528
        =   OR c=3D30030
-         OR = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.83.1>
@@ -3371,14 = +3371,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'hijklmnop'
-         OR (g=3D'utsrqpo' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR ((a BETWEEN 31 AND 33) AND a!=3D32)
-   =       OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+ =         OR (g=3D'mlkjihg' AND f LIKE = 'ghijk%')
          OR (d>=3D1.0 = AND d<2.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 77 AND 79) AND a!=3D78)
    =       OR b=3D528
        =   OR c=3D30030
-         OR = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.83.2>
@@ -3425,11 = +3425,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'pqrst%')
          OR = b=3D748
          OR = b=3D696
-         OR (g=3D'ponmlkj' AND f = GLOB 'rstuv*')
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
+       =   OR (f LIKE '_fghi%' AND f LIKE 'efgh%')
  =  ]])
     end, {
    =      -- <where7-2.85.1>
@@ -3442,11 = +3442,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'pqrst%')
          OR = b=3D748
          OR = b=3D696
-         OR (g=3D'ponmlkj' AND f = GLOB 'rstuv*')
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
+       =   OR (f LIKE '_fghi%' AND f LIKE 'efgh%')
  =  ]])
     end, {
    =      -- <where7-2.85.2>
@@ -3460,10 = +3460,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 71 AND = 73) AND a!=3D72)
-         OR (g=3D'qponmlk'= AND f GLOB 'opqrs*')
+         OR = (g=3D'qponmlk' AND f LIKE 'opqrs%')
      =     OR a=3D87
          OR = a=3D80
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = b=3D784
          OR = a=3D49
          OR ((a BETWEEN 34 = AND 36) AND a!=3D35)
@@ -3480,10 +3480,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 71 AND 73) AND = a!=3D72)
-         OR (g=3D'qponmlk' AND f = GLOB 'opqrs*')
+         OR (g=3D'qponmlk' = AND f LIKE 'opqrs%')
          OR = a=3D87
          OR a=3D80
- =         OR (g=3D'kjihgfe' AND f GLOB = 'qrstu*')
+         OR (g=3D'kjihgfe' AND = f LIKE 'qrstu%')
          OR = b=3D784
          OR = a=3D49
          OR ((a BETWEEN 34 = AND 36) AND a!=3D35)
@@ -3500,13 +3500,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 14 AND 16) AND = a!=3D15)
-         OR (g=3D'wvutsrq' AND f = GLOB 'jklmn*')
-         OR (g=3D'wvutsrq' = AND f GLOB 'ijklm*')
-         OR = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+     =     OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
+   =       OR (g=3D'hgfedcb' AND f LIKE = 'ijklm%')
          OR = c=3D1001
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'hijkl%')
          OR = (d>=3D16.0 AND d<17.0 AND d IS NOT NULL)
-     =     OR (g=3D'ihgfedc' AND f GLOB 'abcde*')
+   =       OR (g=3D'ihgfedc' AND f LIKE = 'abcde%')
          OR = c=3D33033
   ]])
     end, = {
@@ -3521,13 +3521,13 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE ((a BETWEEN 14 AND 16) AND a!=3D15)
-   =       OR (g=3D'wvutsrq' AND f GLOB 'jklmn*')
- =         OR (g=3D'wvutsrq' AND f GLOB = 'ijklm*')
-         OR (g=3D'hgfedcb' AND = f GLOB 'ijklm*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'jklmn%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'ijklm%')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR c=3D1001
-         = OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR (d>=3D16.0 AND d<17.0 AND d IS NOT = NULL)
-         OR (g=3D'ihgfedc' AND f = GLOB 'abcde*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'abcde%')
          OR = c=3D33033
   ]])
     end, = {
@@ -3611,13 +3611,13 @@ test:do_test(
  =         OR b=3D553
      =     OR a=3D64
          OR = (d>=3D93.0 AND d<94.0 AND d IS NOT NULL)
-     =     OR (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'rstuv%')
          OR = a=3D62
          OR = b=3D1081
          OR = b=3D770
          OR = b=3D762
          OR = b=3D803
-         OR (g=3D'srqponm' AND f = GLOB 'efghi*')
+         OR (g=3D'srqponm' = AND f LIKE 'efghi%')
   ]])
    =  end, {
         -- = <where7-2.90.1>
@@ -3634,13 +3634,13 @@ = test:do_test(
          OR = b=3D553
          OR = a=3D64
          OR (d>=3D93.0 AND = d<94.0 AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
    =       OR a=3D62
        =   OR b=3D1081
          OR = b=3D770
          OR = b=3D762
          OR = b=3D803
-         OR (g=3D'srqponm' AND f = GLOB 'efghi*')
+         OR (g=3D'srqponm' = AND f LIKE 'efghi%')
   ]])
    =  end, {
         -- = <where7-2.90.2>
@@ -3653,8 +3653,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'klmno*')
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%')
+   =       OR (f LIKE '_uvwx%' AND f LIKE = 'tuvw%')
          OR = c=3D17017
          OR = b=3D168
          OR ((a BETWEEN 77 = AND 79) AND a!=3D78)
@@ -3670,8 +3670,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'klmno*')
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%')
+   =       OR (f LIKE '_uvwx%' AND f LIKE = 'tuvw%')
          OR = c=3D17017
          OR = b=3D168
          OR ((a BETWEEN 77 = AND 79) AND a!=3D78)
@@ -3690,12 +3690,12 @@ = test:do_test(
       WHERE = c=3D34034
          OR (d>=3D68.0 = AND d<69.0 AND d IS NOT NULL)
        =   OR a=3D44
-         OR (g=3D'tsrqpon'= AND f GLOB 'xyzab*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'xyzab%')
      =     OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR = c=3D31031
-         OR (g=3D'ihgfedc' AND = f GLOB 'abcde*')
+         OR (g=3D'ihgfedc'= AND f LIKE 'abcde%')
          OR = b=3D619
-         OR (f GLOB '?efgh*' AND = f GLOB 'defg*')
+         OR (f LIKE = '_efgh%' AND f LIKE 'defg%')
        =   OR ((a BETWEEN 29 AND 31) AND a!=3D30)
  =  ]])
     end, {
@@ -3712,12 = +3712,12 @@ test:do_test(
       WHERE = c=3D34034
          OR (d>=3D68.0 = AND d<69.0 AND d IS NOT NULL)
        =   OR a=3D44
-         OR (g=3D'tsrqpon'= AND f GLOB 'xyzab*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'xyzab%')
      =     OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR = c=3D31031
-         OR (g=3D'ihgfedc' AND = f GLOB 'abcde*')
+         OR (g=3D'ihgfedc'= AND f LIKE 'abcde%')
          OR = b=3D619
-         OR (f GLOB '?efgh*' AND = f GLOB 'defg*')
+         OR (f LIKE = '_efgh%' AND f LIKE 'defg%')
        =   OR ((a BETWEEN 29 AND 31) AND a!=3D30)
  =  ]])
     end, {
@@ -3738,10 = +3738,10 @@ test:do_test(
          = OR (d>=3D44.0 AND d<45.0 AND d IS NOT NULL)
  =         OR b=3D110
      =     OR f=3D'klmnopqrs'
-         = OR (g=3D'fedcbaz' AND f GLOB 'qrstu*')
-       =   OR (g=3D'onmlkji' AND f GLOB 'abcde*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'qrstu%')
+   =       OR (g=3D'onmlkji' AND f LIKE = 'abcde%')
          OR = b=3D674
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'stuvw%')
   ]])
    =  end, {
         -- = <where7-2.93.1>
@@ -3761,10 +3761,10 @@ = test:do_test(
          OR = (d>=3D44.0 AND d<45.0 AND d IS NOT NULL)
    =       OR b=3D110
        =   OR f=3D'klmnopqrs'
-         OR = (g=3D'fedcbaz' AND f GLOB 'qrstu*')
-       =   OR (g=3D'onmlkji' AND f GLOB 'abcde*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'qrstu%')
+   =       OR (g=3D'onmlkji' AND f LIKE = 'abcde%')
          OR = b=3D674
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'stuvw%')
   ]])
    =  end, {
         -- = <where7-2.93.2>
@@ -3882,7 +3882,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D231
-   =       OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'ghijk%')
   ]])
     end, = {
         -- = <where7-2.97.1>
@@ -3896,7 +3896,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D231
-   =       OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'ghijk%')
   ]])
     end, = {
         -- = <where7-2.97.2>
@@ -4057,7 +4057,7 @@ = test:do_test(
          OR = (d>=3D51.0 AND d<52.0 AND d IS NOT NULL)
    =       OR b=3D630
        =   OR c=3D19019
-         OR = (g=3D'gfedcba' AND f GLOB 'lmnop*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'lmnop%')
    =       OR a=3D24
        =   OR (d>=3D95.0 AND d<96.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
@@ -4077,7 +4077,7 @@ = test:do_test(
          OR = (d>=3D51.0 AND d<52.0 AND d IS NOT NULL)
    =       OR b=3D630
        =   OR c=3D19019
-         OR = (g=3D'gfedcba' AND f GLOB 'lmnop*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'lmnop%')
    =       OR a=3D24
        =   OR (d>=3D95.0 AND d<96.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
@@ -4128,11 +4128,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE f=3D'stuvwxyza'
- =         OR (f GLOB '?zabc*' AND f GLOB = 'yzab*')
+         OR (f LIKE '_zabc%' AND = f LIKE 'yzab%')
          OR ((a = BETWEEN 1 AND 3) AND a!=3D2)
        =   OR b=3D1037
          OR = f=3D'zabcdefgh'
-         OR (g=3D'gfedcba' = AND f GLOB 'mnopq*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.104.1>
@@ -4146,11 = +4146,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'stuvwxyza'
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
+         OR = (f LIKE '_zabc%' AND f LIKE 'yzab%')
      =     OR ((a BETWEEN 1 AND 3) AND a!=3D2)
  =         OR b=3D1037
      =     OR f=3D'zabcdefgh'
-         = OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.104.2>
@@ -4163,7 = +4163,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'ghijk%')
          OR ((a = BETWEEN 4 AND 6) AND a!=3D5)
        =   OR ((a BETWEEN 30 AND 32) AND a!=3D31)
  =  ]])
@@ -4178,7 +4178,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'ghijk%')
          OR ((a = BETWEEN 4 AND 6) AND a!=3D5)
        =   OR ((a BETWEEN 30 AND 32) AND a!=3D31)
  =  ]])
@@ -4197,8 +4197,8 @@ test:do_test(
  =         OR b=3D190
      =     OR ((a BETWEEN 38 AND 40) AND a!=3D39)
  =         OR ((a BETWEEN 70 AND 72) AND = a!=3D71)
-         OR (f GLOB '?klmn*' AND = f GLOB 'jklm*')
-         OR (g=3D'tsrqpon' = AND f GLOB 'xyzab*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'xyzab%')
      =     OR b=3D704
   ]])
  =    end, {
@@ -4216,8 +4216,8 @@ = test:do_test(
          OR = b=3D190
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
          OR ((a = BETWEEN 70 AND 72) AND a!=3D71)
-         = OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
-       =   OR (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+     =     OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
+   =       OR (g=3D'tsrqpon' AND f LIKE = 'xyzab%')
          OR = b=3D704
   ]])
     end, = {
@@ -4234,7 +4234,7 @@ test:do_test(
    =    WHERE b=3D88
          = OR f=3D'vwxyzabcd'
          OR = f=3D'fghijklmn'
-         OR (g=3D'gfedcba' = AND f GLOB 'lmnop*')
+         OR = (g=3D'gfedcba' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.107.1>
@@ -4250,7 = +4250,7 @@ test:do_test(
       WHERE = b=3D88
          OR = f=3D'vwxyzabcd'
          OR = f=3D'fghijklmn'
-         OR (g=3D'gfedcba' = AND f GLOB 'lmnop*')
+         OR = (g=3D'gfedcba' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.107.2>
@@ -4296,7 = +4296,7 @@ test:do_test(
       WHERE ((a = BETWEEN 47 AND 49) AND a!=3D48)
        =   OR a=3D5
          OR = b=3D179
-         OR (f GLOB '?stuv*' AND = f GLOB 'rstu*')
+         OR (f LIKE = '_stuv%' AND f LIKE 'rstu%')
        =   OR a=3D69
   ]])
    =  end, {
@@ -4313,7 +4313,7 @@ = test:do_test(
       WHERE ((a BETWEEN 47 = AND 49) AND a!=3D48)
          OR = a=3D5
          OR b=3D179
- =         OR (f GLOB '?stuv*' AND f GLOB = 'rstu*')
+         OR (f LIKE '_stuv%' AND = f LIKE 'rstu%')
          OR = a=3D69
   ]])
     end, = {
@@ -4328,8 +4328,8 @@ test:do_test(
    =      return count_steps_sort([[
    =   SELECT a FROM t2
       WHERE = b=3D971
-         OR (g=3D'xwvutsr' AND f = GLOB 'hijkl*')
-         OR (g=3D'yxwvuts' = AND f GLOB 'bcdef*')
+         OR = (g=3D'xwvutsr' AND f LIKE 'hijkl%')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'bcdef%')
    =       OR b=3D828
        =   OR a=3D81
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
@@ -4350,8 +4350,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D971
-   =       OR (g=3D'xwvutsr' AND f GLOB 'hijkl*')
- =         OR (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'hijkl%')
+         OR (g=3D'yxwvuts'= AND f LIKE 'bcdef%')
          OR = b=3D828
          OR = a=3D81
          OR ((a BETWEEN 23 = AND 25) AND a!=3D24)
@@ -4399,8 +4399,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'lkjihgf' AND f GLOB 'opqrs*')
-       =   OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
+     =  WHERE (g=3D'lkjihgf' AND f LIKE 'opqrs%')
+   =       OR (f LIKE '_stuv%' AND f LIKE = 'rstu%')
   ]])
     end, = {
         -- = <where7-2.112.1>
@@ -4413,8 +4413,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'lkjihgf' AND f GLOB 'opqrs*')
-       =   OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
+     =  WHERE (g=3D'lkjihgf' AND f LIKE 'opqrs%')
+   =       OR (f LIKE '_stuv%' AND f LIKE = 'rstu%')
   ]])
     end, = {
         -- = <where7-2.112.2>
@@ -4463,8 +4463,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
          OR = b=3D396
   ]])
     end, = {
@@ -4478,8 +4478,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
-         OR (g=3D'utsrqpo' AND = f GLOB 'tuvwx*')
+      WHERE (g=3D'vutsrqp' = AND f LIKE 'rstuv%')
+         OR = (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
      =     OR b=3D396
   ]])
  =    end, {
@@ -4531,7 +4531,7 @@ = test:do_test(
          OR ((a = BETWEEN 20 AND 22) AND a!=3D21)
        =   OR b=3D396
          OR = b=3D630
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR c=3D3003
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
  =  ]])
@@ -4552,7 +4552,7 @@ test:do_test(
  =         OR ((a BETWEEN 20 AND 22) AND = a!=3D21)
          OR = b=3D396
          OR = b=3D630
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR c=3D3003
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
  =  ]])
@@ -4573,8 +4573,8 @@ test:do_test(
  =         OR b=3D957
      =     OR b=3D311
          OR = b=3D143
-         OR (f GLOB '?klmn*' AND = f GLOB 'jklm*')
-         OR (g=3D'onmlkji' = AND f GLOB 'wxyza*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
+         OR = (g=3D'onmlkji' AND f LIKE 'wxyza%')
      =     OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -4594,8 +4594,8 @@ test:do_test(
    =       OR b=3D957
        =   OR b=3D311
          OR = b=3D143
-         OR (f GLOB '?klmn*' AND = f GLOB 'jklm*')
-         OR (g=3D'onmlkji' = AND f GLOB 'wxyza*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
+         OR = (g=3D'onmlkji' AND f LIKE 'wxyza%')
      =     OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -4612,7 +4612,7 @@ test:do_test(
    =    WHERE ((a BETWEEN 74 AND 76) AND a!=3D75)
  =         OR ((a BETWEEN 94 AND 96) AND = a!=3D95)
          OR = b=3D451
-         OR (g=3D'lkjihgf' AND f = GLOB 'opqrs*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.118.1>
@@ -4628,7 +4628,7 @@ = test:do_test(
       WHERE ((a BETWEEN 74 = AND 76) AND a!=3D75)
          OR ((a = BETWEEN 94 AND 96) AND a!=3D95)
        =   OR b=3D451
-         OR = (g=3D'lkjihgf' AND f GLOB 'opqrs*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.118.2>
@@ -4645,11 = +4645,11 @@ test:do_test(
          = OR b=3D451
          OR = b=3D363
          OR = b=3D330
-         OR (g=3D'srqponm' AND f = GLOB 'efghi*')
+         OR (g=3D'srqponm' = AND f LIKE 'efghi%')
          OR ((a = BETWEEN 52 AND 54) AND a!=3D53)
-         = OR (g=3D'xwvutsr' AND f GLOB 'defgh*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 81 AND 83) AND a!=3D82)
- =         OR (g=3D'gfedcba' AND f GLOB = 'lmnop*')
+         OR (g=3D'gfedcba' AND = f LIKE 'lmnop%')
   ]])
    =  end, {
         -- = <where7-2.119.1>
@@ -4666,11 +4666,11 @@ = test:do_test(
          OR = b=3D451
          OR = b=3D363
          OR = b=3D330
-         OR (g=3D'srqponm' AND f = GLOB 'efghi*')
+         OR (g=3D'srqponm' = AND f LIKE 'efghi%')
          OR ((a = BETWEEN 52 AND 54) AND a!=3D53)
-         = OR (g=3D'xwvutsr' AND f GLOB 'defgh*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 81 AND 83) AND a!=3D82)
- =         OR (g=3D'gfedcba' AND f GLOB = 'lmnop*')
+         OR (g=3D'gfedcba' AND = f LIKE 'lmnop%')
   ]])
    =  end, {
         -- = <where7-2.119.2>
@@ -4683,9 +4683,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR (d>=3D68.0 AND d<69.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'pqrst*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'pqrst%')
          OR e = IS NULL
          OR = b=3D759
   ]])
@@ -4700,9 +4700,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR (d>=3D68.0 AND d<69.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'pqrst*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'pqrst%')
          OR e = IS NULL
          OR = b=3D759
   ]])
@@ -4717,9 +4717,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?uvwx*' AND f GLOB 'tuvw*')
+      WHERE = (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
      =     OR ((a BETWEEN 19 AND 21) AND a!=3D20)
-   =       OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+ =         OR (g=3D'jihgfed' AND f LIKE = 'wxyza%')
   ]])
     end, = {
         -- = <where7-2.121.1>
@@ -4732,9 +4732,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?uvwx*' AND f GLOB 'tuvw*')
+      WHERE = (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
      =     OR ((a BETWEEN 19 AND 21) AND a!=3D20)
-   =       OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+ =         OR (g=3D'jihgfed' AND f LIKE = 'wxyza%')
   ]])
     end, = {
         -- = <where7-2.121.2>
@@ -4815,14 +4815,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
    =       OR b=3D421
        =   OR b=3D429
          OR = b=3D498
          OR = b=3D33
          OR = b=3D198
          OR = c=3D14014
-         OR (f GLOB '?yzab*' = AND f GLOB 'xyza*')
+         OR (f LIKE = '_yzab%' AND f LIKE 'xyza%')
   ]])
  =    end, {
         -- = <where7-2.124.1>
@@ -4835,14 +4835,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
    =       OR b=3D421
        =   OR b=3D429
          OR = b=3D498
          OR = b=3D33
          OR = b=3D198
          OR = c=3D14014
-         OR (f GLOB '?yzab*' = AND f GLOB 'xyza*')
+         OR (f LIKE = '_yzab%' AND f LIKE 'xyza%')
   ]])
  =    end, {
         -- = <where7-2.124.2>
@@ -4858,13 +4858,13 @@ = test:do_test(
       WHERE = b=3D47
          OR = c=3D31031
          OR = a=3D38
-         OR (f GLOB '?jklm*' AND f = GLOB 'ijkl*')
-         OR (g=3D'srqponm' = AND f GLOB 'fghij*')
+         OR (f LIKE = '_jklm%' AND f LIKE 'ijkl%')
+         OR = (g=3D'srqponm' AND f LIKE 'fghij%')
      =     OR b=3D242
          OR = (d>=3D70.0 AND d<71.0 AND d IS NOT NULL)
    =       OR b=3D352
        =   OR a=3D49
-         OR (g=3D'nmlkjih'= AND f GLOB 'fghij*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.125.1>
@@ -4880,13 = +4880,13 @@ test:do_test(
       WHERE = b=3D47
          OR = c=3D31031
          OR = a=3D38
-         OR (f GLOB '?jklm*' AND f = GLOB 'ijkl*')
-         OR (g=3D'srqponm' = AND f GLOB 'fghij*')
+         OR (f LIKE = '_jklm%' AND f LIKE 'ijkl%')
+         OR = (g=3D'srqponm' AND f LIKE 'fghij%')
      =     OR b=3D242
          OR = (d>=3D70.0 AND d<71.0 AND d IS NOT NULL)
    =       OR b=3D352
        =   OR a=3D49
-         OR (g=3D'nmlkjih'= AND f GLOB 'fghij*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.125.2>
@@ -4969,9 = +4969,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'tuvwx*')
+      WHERE (g=3D'utsrqpo' AND f = LIKE 'tuvwx%')
          OR = b=3D528
-         OR (g=3D'gfedcba' AND f = GLOB 'nopqr*')
+         OR (g=3D'gfedcba' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.128.1>
@@ -4984,9 +4984,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR b=3D528
-         = OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'nopqr%')
  =  ]])
     end, {
    =      -- <where7-2.128.2>
@@ -5031,7 = +5031,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D71.0 AND = d<72.0 AND d IS NOT NULL)
        =   OR 1000000<b
-         OR = (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR = a=3D24
   ]])
@@ -5048,7 +5048,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D71.0 AND = d<72.0 AND d IS NOT NULL)
        =   OR 1000000<b
-         OR = (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR = a=3D24
   ]])
@@ -5071,8 +5071,8 @@ = test:do_test(
          OR = a=3D14
          OR (d>=3D61.0 AND = d<62.0 AND d IS NOT NULL)
        =   OR b=3D440
-         OR = (g=3D'xwvutsr' AND f GLOB 'fghij*')
-       =   OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
+   =       OR (f LIKE '_abcd%' AND f LIKE = 'zabc%')
   ]])
     end, = {
         -- = <where7-2.131.1>
@@ -5093,8 +5093,8 @@ = test:do_test(
          OR = a=3D14
          OR (d>=3D61.0 AND = d<62.0 AND d IS NOT NULL)
        =   OR b=3D440
-         OR = (g=3D'xwvutsr' AND f GLOB 'fghij*')
-       =   OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
+   =       OR (f LIKE '_abcd%' AND f LIKE = 'zabc%')
   ]])
     end, = {
         -- = <where7-2.131.2>
@@ -5226,9 +5226,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D27
-   =       OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+ =         OR (f LIKE '_uvwx%' AND f LIKE = 'tuvw%')
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D1045
        =   OR a=3D84
          OR = f=3D'qrstuvwxy'
@@ -5245,9 +5245,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D27
-   =       OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+ =         OR (f LIKE '_uvwx%' AND f LIKE = 'tuvw%')
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D1045
        =   OR a=3D84
          OR = f=3D'qrstuvwxy'
@@ -5266,7 +5266,7 @@ = test:do_test(
       WHERE = b=3D704
          OR = b=3D949
          OR (d>=3D72.0 = AND d<73.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
    =       OR c=3D24024
        =   OR b=3D553
          OR = a=3D18
@@ -5286,7 +5286,7 @@ test:do_test(
  =      WHERE b=3D704
        =   OR b=3D949
          OR = (d>=3D72.0 AND d<73.0 AND d IS NOT NULL)
-     =     OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'wxyza%')
          OR = c=3D24024
          OR = b=3D553
          OR = a=3D18
@@ -5303,8 +5303,8 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?cdef*' AND f = GLOB 'bcde*')
-         OR (g=3D'ihgfedc' = AND f GLOB 'efghi*')
+      WHERE (f LIKE = '_cdef%' AND f LIKE 'bcde%')
+         OR = (g=3D'ihgfedc' AND f LIKE 'efghi%')
      =     OR b=3D902
          OR = (d>=3D61.0 AND d<62.0 AND d IS NOT NULL)
    =       OR b=3D25
@@ -5323,8 +5323,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?cdef*' AND f GLOB 'bcde*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
+     =  WHERE (f LIKE '_cdef%' AND f LIKE 'bcde%')
+   =       OR (g=3D'ihgfedc' AND f LIKE = 'efghi%')
          OR = b=3D902
          OR (d>=3D61.0 = AND d<62.0 AND d IS NOT NULL)
        =   OR b=3D25
@@ -5405,8 +5405,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?qrst*' AND f GLOB 'pqrs*')
-       =   OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+     =  WHERE (f LIKE '_qrst%' AND f LIKE 'pqrs%')
+   =       OR (f LIKE '_cdef%' AND f LIKE = 'bcde%')
          OR = b=3D641
          OR ((a BETWEEN 36 = AND 38) AND a!=3D37)
   ]])
@@ -5421,8 = +5421,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?qrst*' AND f GLOB = 'pqrs*')
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+      WHERE (f LIKE '_qrst%' = AND f LIKE 'pqrs%')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR b=3D641
          OR ((a = BETWEEN 36 AND 38) AND a!=3D37)
   ]])
@@ = -5442,9 +5442,9 @@ test:do_test(
        =   OR ((a BETWEEN 44 AND 46) AND a!=3D45)
    =       OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
          OR b=3D11
- =         OR (g=3D'qponmlk' AND f GLOB = 'opqrs*')
+         OR (g=3D'qponmlk' AND = f LIKE 'opqrs%')
          OR = a=3D52
-         OR (g=3D'utsrqpo' AND f = GLOB 'wxyza*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'wxyza%')
          OR = a=3D13
          OR (d>=3D65.0 AND = d<66.0 AND d IS NOT NULL)
   ]])
@@ = -5464,9 +5464,9 @@ test:do_test(
        =   OR ((a BETWEEN 44 AND 46) AND a!=3D45)
    =       OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
          OR b=3D11
- =         OR (g=3D'qponmlk' AND f GLOB = 'opqrs*')
+         OR (g=3D'qponmlk' AND = f LIKE 'opqrs%')
          OR = a=3D52
-         OR (g=3D'utsrqpo' AND f = GLOB 'wxyza*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'wxyza%')
          OR = a=3D13
          OR (d>=3D65.0 AND = d<66.0 AND d IS NOT NULL)
   ]])
@@ = -5487,7 +5487,7 @@ test:do_test(
        =   OR b=3D1045
          OR = (d>=3D24.0 AND d<25.0 AND d IS NOT NULL)
    =       OR f=3D'uvwxyzabc'
-       =   OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
+     =     OR (f LIKE '_zabc%' AND f LIKE 'yzab%')
  =  ]])
     end, {
    =      -- <where7-2.143.1>
@@ -5506,7 = +5506,7 @@ test:do_test(
          OR = b=3D1045
          OR (d>=3D24.0 = AND d<25.0 AND d IS NOT NULL)
        =   OR f=3D'uvwxyzabc'
-         OR (f = GLOB '?zabc*' AND f GLOB 'yzab*')
+       =   OR (f LIKE '_zabc%' AND f LIKE 'yzab%')
  =  ]])
     end, {
    =      -- <where7-2.143.2>
@@ -5562,9 = +5562,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D91
- =         OR (g=3D'utsrqpo' AND f GLOB = 'wxyza*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'wxyza%')
          OR = (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
-     =     OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'mnopq%')
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
          OR = (d>=3D85.0 AND d<86.0 AND d IS NOT NULL)
    =       OR b=3D102
@@ -5584,9 +5584,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D91
-   =       OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'wxyza%')
          OR (d>=3D21.0 = AND d<22.0 AND d IS NOT NULL)
-         = OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 89 AND 91) AND = a!=3D90)
          OR (d>=3D85.0 = AND d<86.0 AND d IS NOT NULL)
        =   OR b=3D102
@@ -5605,8 +5605,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'vutsrqp' AND f GLOB 'opqrs*')
-       =   OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'vutsrqp' AND f LIKE 'opqrs%')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
          OR = b=3D990
          OR = a=3D52
          OR (d>=3D38.0 AND = d<39.0 AND d IS NOT NULL)
@@ -5622,8 +5622,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'vutsrqp' AND f GLOB 'opqrs*')
-       =   OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'vutsrqp' AND f LIKE 'opqrs%')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
          OR = b=3D990
          OR = a=3D52
          OR (d>=3D38.0 AND = d<39.0 AND d IS NOT NULL)
@@ -5683,13 +5683,13 @@ = test:do_test(
          OR = b=3D421
          OR ((a BETWEEN 22 = AND 24) AND a!=3D23)
          OR = (d>=3D2.0 AND d<3.0 AND d IS NOT NULL)
-     =     OR (g=3D'srqponm' AND f GLOB 'defgh*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'defgh%')
          OR (d>=3D89.0 = AND d<90.0 AND d IS NOT NULL)
        =   OR (d>=3D24.0 AND d<25.0 AND d IS NOT = NULL)
          OR = c=3D22022
          OR = b=3D825
          OR ((a BETWEEN 17 = AND 19) AND a!=3D18)
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (f LIKE '_hijk%' AND f LIKE 'ghij%')
  =  ]])
     end, {
    =      -- <where7-2.148.1>
@@ -5706,13 = +5706,13 @@ test:do_test(
          = OR b=3D421
          OR ((a BETWEEN = 22 AND 24) AND a!=3D23)
          OR = (d>=3D2.0 AND d<3.0 AND d IS NOT NULL)
-     =     OR (g=3D'srqponm' AND f GLOB 'defgh*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'defgh%')
          OR (d>=3D89.0 = AND d<90.0 AND d IS NOT NULL)
        =   OR (d>=3D24.0 AND d<25.0 AND d IS NOT = NULL)
          OR = c=3D22022
          OR = b=3D825
          OR ((a BETWEEN 17 = AND 19) AND a!=3D18)
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (f LIKE '_hijk%' AND f LIKE 'ghij%')
  =  ]])
     end, {
    =      -- <where7-2.148.2>
@@ -5729,7 = +5729,7 @@ test:do_test(
          OR = b=3D484
          OR = b=3D1026
          OR = a=3D90
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
          OR = b=3D608
          OR = a=3D32
   ]])
@@ -5748,7 +5748,7 @@ = test:do_test(
          OR = b=3D484
          OR = b=3D1026
          OR = a=3D90
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
          OR = b=3D608
          OR = a=3D32
   ]])
@@ -5771,7 +5771,7 @@ = test:do_test(
          OR = a=3D55
          OR = b=3D773
          OR = b=3D319
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.150.1>
@@ -5792,7 +5792,7 @@ = test:do_test(
          OR = a=3D55
          OR = b=3D773
          OR = b=3D319
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.150.2>
@@ -5805,7 +5805,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR f=3D'mnopqrstu'
      =     OR a=3D62
   ]])
@@ -5820,7 = +5820,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'ijklm%')
          OR = f=3D'mnopqrstu'
          OR = a=3D62
   ]])
@@ -5839,9 +5839,9 @@ = test:do_test(
          OR = b=3D1045
          OR (d>=3D40.0 = AND d<41.0 AND d IS NOT NULL)
        =   OR c=3D13013
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR b=3D124
-         = OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.152.1>
@@ -5858,9 = +5858,9 @@ test:do_test(
          OR = b=3D1045
          OR (d>=3D40.0 = AND d<41.0 AND d IS NOT NULL)
        =   OR c=3D13013
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR b=3D124
-         = OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.152.2>
@@ -5880,7 = +5880,7 @@ test:do_test(
          OR = b=3D421
          OR = b=3D803
          OR = c=3D4004
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
   ]])
  =    end, {
         -- = <where7-2.153.1>
@@ -5900,7 +5900,7 @@ = test:do_test(
          OR = b=3D421
          OR = b=3D803
          OR = c=3D4004
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
   ]])
  =    end, {
         -- = <where7-2.153.2>
@@ -5913,9 +5913,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?rstu*' AND f GLOB 'qrst*')
+      WHERE = (f LIKE '_rstu%' AND f LIKE 'qrst%')
      =     OR b=3D99
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.154.1>
@@ -5928,9 = +5928,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?rstu*' AND f GLOB = 'qrst*')
+      WHERE (f LIKE '_rstu%' AND f = LIKE 'qrst%')
          OR = b=3D99
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
   ]])
    =  end, {
         -- = <where7-2.154.2>
@@ -5972,9 +5972,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D795
-   =       OR (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+ =         OR (g=3D'yxwvuts' AND f LIKE = 'cdefg%')
          OR = f=3D'jklmnopqr'
-         OR (f GLOB = '?defg*' AND f GLOB 'cdef*')
+         OR = (f LIKE '_defg%' AND f LIKE 'cdef%')
      =     OR (d>=3D51.0 AND d<52.0 AND d IS NOT = NULL)
          OR = b=3D1056
   ]])
@@ -5990,9 +5990,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D795
-   =       OR (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+ =         OR (g=3D'yxwvuts' AND f LIKE = 'cdefg%')
          OR = f=3D'jklmnopqr'
-         OR (f GLOB = '?defg*' AND f GLOB 'cdef*')
+         OR = (f LIKE '_defg%' AND f LIKE 'cdef%')
      =     OR (d>=3D51.0 AND d<52.0 AND d IS NOT = NULL)
          OR = b=3D1056
   ]])
@@ -6146,7 +6146,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D23
-   =       OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR = b=3D641
          OR = b=3D352
          OR = b=3D179
@@ -6166,7 +6166,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE a=3D23
-         OR = (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
    =       OR b=3D641
        =   OR b=3D352
          OR = b=3D179
@@ -6189,7 +6189,7 @@ test:do_test(
  =         OR b=3D1078
      =     OR ((a BETWEEN 11 AND 13) AND a!=3D12)
  =         OR c=3D12012
-     =     OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+   =       OR (g=3D'hgfedcb' AND f LIKE = 'ghijk%')
          OR = b=3D319
          OR = c=3D5005
          OR = 1000000<b
@@ -6211,7 +6211,7 @@ = test:do_test(
          OR = b=3D1078
          OR ((a BETWEEN 11 = AND 13) AND a!=3D12)
          OR = c=3D12012
-         OR (g=3D'hgfedcb' AND = f GLOB 'ghijk*')
+         OR (g=3D'hgfedcb'= AND f LIKE 'ghijk%')
          OR = b=3D319
          OR = c=3D5005
          OR = 1000000<b
@@ -6230,8 +6230,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE f=3D'cdefghijk'
- =         OR (f GLOB '?stuv*' AND f GLOB = 'rstu*')
-         OR (g=3D'ihgfedc' AND f = GLOB 'defgh*')
+         OR (f LIKE = '_stuv%' AND f LIKE 'rstu%')
+         OR = (g=3D'ihgfedc' AND f LIKE 'defgh%')
      =     OR (d>=3D59.0 AND d<60.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -6246,8 +6246,8 @@ test:do_test(
    =      return count_steps_sort([[
    =   SELECT a FROM t3
       WHERE = f=3D'cdefghijk'
-         OR (f GLOB = '?stuv*' AND f GLOB 'rstu*')
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (f LIKE '_stuv%' AND f LIKE 'rstu%')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =         OR (d>=3D59.0 AND d<60.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -6297,13 +6297,13 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'ijklm*')
-         OR (g=3D'rqponml' AND = f GLOB 'jklmn*')
+      WHERE (g=3D'hgfedcb' = AND f LIKE 'ijklm%')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
      =     OR b=3D891
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR b=3D484
        =   OR a=3D62
-         OR (g=3D'ihgfedc'= AND f GLOB 'defgh*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =  ]])
     end, {
    =      -- <where7-2.165.1>
@@ -6316,13 = +6316,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'ijklm*')
-         OR (g=3D'rqponml' AND = f GLOB 'jklmn*')
+      WHERE (g=3D'hgfedcb' = AND f LIKE 'ijklm%')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
      =     OR b=3D891
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR b=3D484
        =   OR a=3D62
-         OR (g=3D'ihgfedc'= AND f GLOB 'defgh*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =  ]])
     end, {
    =      -- <where7-2.165.2>
@@ -6336,11 = +6336,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D363
- =         OR (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'zabcd%')
          OR ((a = BETWEEN 58 AND 60) AND a!=3D59)
        =   OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL)
  =         OR (d>=3D46.0 AND d<47.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = a=3D39
          OR (d>=3D54.0 AND = d<55.0 AND d IS NOT NULL)
   ]])
@@ = -6356,11 +6356,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D363
- =         OR (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'zabcd%')
          OR ((a = BETWEEN 58 AND 60) AND a!=3D59)
        =   OR (d>=3D2.0 AND d<3.0 AND d IS NOT NULL)
  =         OR (d>=3D46.0 AND d<47.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = a=3D39
          OR (d>=3D54.0 AND = d<55.0 AND d IS NOT NULL)
   ]])
@@ = -6378,7 +6378,7 @@ test:do_test(
      =  WHERE c=3D30030
          OR = (d>=3D52.0 AND d<53.0 AND d IS NOT NULL)
    =       OR b=3D850
-         = OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
+       =   OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.167.1>
@@ -6394,7 = +6394,7 @@ test:do_test(
       WHERE = c=3D30030
          OR (d>=3D52.0 = AND d<53.0 AND d IS NOT NULL)
        =   OR b=3D850
-         OR (f GLOB = '?vwxy*' AND f GLOB 'uvwx*')
+         OR = (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.167.2>
@@ -6540,7 = +6540,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D333
- =         OR (g=3D'nmlkjih' AND f GLOB = 'bcdef*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'bcdef%')
          OR = (d>=3D62.0 AND d<63.0 AND d IS NOT NULL)
    =       OR b=3D407
        =   OR a=3D5
@@ -6559,7 +6559,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D333
-   =       OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
          OR (d>=3D62.0 = AND d<63.0 AND d IS NOT NULL)
        =   OR b=3D407
          OR = a=3D5
@@ -6580,7 +6580,7 @@ test:do_test(
  =      WHERE b<0
        =   OR b=3D352
          OR = b=3D517
-         OR (g=3D'fedcbaz' AND f = GLOB 'tuvwx*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
          OR ((a = BETWEEN 12 AND 14) AND a!=3D13)
        =   OR b=3D1012
          OR ((a = BETWEEN 11 AND 13) AND a!=3D12)
@@ -6599,7 +6599,7 @@ = test:do_test(
       WHERE = b<0
          OR = b=3D352
          OR = b=3D517
-         OR (g=3D'fedcbaz' AND f = GLOB 'tuvwx*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
          OR ((a = BETWEEN 12 AND 14) AND a!=3D13)
        =   OR b=3D1012
          OR ((a = BETWEEN 11 AND 13) AND a!=3D12)
@@ -6615,11 +6615,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR c<=3D10
-       =   OR (g=3D'vutsrqp' AND f GLOB 'opqrs*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'opqrs%')
  =         OR a=3D32
-       =   OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+     =     OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
  =         OR d<0.0
  =  ]])
     end, {
@@ -6633,11 = +6633,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'pqrst%')
          OR = c<=3D10
-         OR (g=3D'vutsrqp' AND = f GLOB 'opqrs*')
+         OR (g=3D'vutsrqp'= AND f LIKE 'opqrs%')
          OR = a=3D32
-         OR (g=3D'wvutsrq' AND f = GLOB 'mnopq*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'mnopq%')
          OR = d<0.0
   ]])
     end, = {
@@ -6653,9 +6653,9 @@ test:do_test(
    =   SELECT a FROM t2
       WHERE ((a = BETWEEN 20 AND 22) AND a!=3D21)
        =   OR b=3D1045
-         OR = (g=3D'ihgfedc' AND f GLOB 'abcde*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'abcde%')
    =       OR a=3D26
-         = OR (g=3D'gfedcba' AND f GLOB 'opqrs*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.175.1>
@@ -6670,9 = +6670,9 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 20 AND 22) AND = a!=3D21)
          OR = b=3D1045
-         OR (g=3D'ihgfedc' AND f = GLOB 'abcde*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'abcde%')
          OR = a=3D26
-         OR (g=3D'gfedcba' AND f = GLOB 'opqrs*')
+         OR (g=3D'gfedcba' = AND f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.175.2>
@@ -6714,7 +6714,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D3.0 AND d<4.0 = AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR c=3D32032
        =   OR b=3D289
          OR ((a = BETWEEN 17 AND 19) AND a!=3D18)
@@ -6732,7 +6732,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D3.0 AND d<4.0 = AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR c=3D32032
        =   OR b=3D289
          OR ((a = BETWEEN 17 AND 19) AND a!=3D18)
@@ -6752,7 +6752,7 @@ = test:do_test(
       WHERE ((a BETWEEN 15 = AND 17) AND a!=3D16)
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR b=3D33
-         OR (f GLOB = '?stuv*' AND f GLOB 'rstu*')
+         OR = (f LIKE '_stuv%' AND f LIKE 'rstu%')
  =  ]])
     end, {
    =      -- <where7-2.178.1>
@@ -6768,7 = +6768,7 @@ test:do_test(
       WHERE ((a = BETWEEN 15 AND 17) AND a!=3D16)
        =   OR ((a BETWEEN 57 AND 59) AND a!=3D58)
    =       OR b=3D33
-         = OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
+       =   OR (f LIKE '_stuv%' AND f LIKE 'rstu%')
  =  ]])
     end, {
    =      -- <where7-2.178.2>
@@ -6783,15 = +6783,15 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D828
  =         OR b=3D341
-       =   OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
+     =     OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
  =         OR b=3D902
      =     OR ((a BETWEEN 64 AND 66) AND a!=3D65)
  =         OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
-         OR (g=3D'fedcbaz' AND f = GLOB 'rstuv*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'rstuv%')
          OR = b=3D242
-         OR (g=3D'yxwvuts' AND f = GLOB 'cdefg*')
+         OR (g=3D'yxwvuts' = AND f LIKE 'cdefg%')
          OR = (d>=3D91.0 AND d<92.0 AND d IS NOT NULL)
-     =     OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'qrstu%')
   ]])
     end, = {
         -- = <where7-2.179.1>
@@ -6806,15 +6806,15 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D828
  =         OR b=3D341
-       =   OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
+     =     OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
  =         OR b=3D902
      =     OR ((a BETWEEN 64 AND 66) AND a!=3D65)
  =         OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
-         OR (g=3D'fedcbaz' AND f = GLOB 'rstuv*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'rstuv%')
          OR = b=3D242
-         OR (g=3D'yxwvuts' AND f = GLOB 'cdefg*')
+         OR (g=3D'yxwvuts' = AND f LIKE 'cdefg%')
          OR = (d>=3D91.0 AND d<92.0 AND d IS NOT NULL)
-     =     OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'qrstu%')
   ]])
     end, = {
         -- = <where7-2.179.2>
@@ -6827,7 +6827,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'nmlkjih' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%')
    =       OR b=3D982
        =   OR b=3D781
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
@@ -6845,7 +6845,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'nmlkjih' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'nmlkjih' AND f LIKE 'efghi%')
    =       OR b=3D982
        =   OR b=3D781
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
@@ -6863,13 +6863,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%')
    =       OR a=3D31
-         = OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
+       =   OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
    =       OR ((a BETWEEN 57 AND 59) AND = a!=3D58)
          OR = a=3D76
          OR (d>=3D23.0 AND = d<24.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR b=3D176
  =  ]])
     end, {
@@ -6883,13 = +6883,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'rstuv%')
          OR = a=3D31
-         OR (f GLOB '?jklm*' AND f = GLOB 'ijkl*')
+         OR (f LIKE = '_jklm%' AND f LIKE 'ijkl%')
        =   OR ((a BETWEEN 57 AND 59) AND a!=3D58)
    =       OR a=3D76
        =   OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL)
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'jihgfed' AND = f LIKE 'wxyza%')
          OR = b=3D176
   ]])
     end, = {
@@ -6903,11 +6903,11 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'ponmlkj' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'ponmlkj' AND f = LIKE 'vwxyz%')
          OR ((a = BETWEEN 59 AND 61) AND a!=3D60)
-         = OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR (d>=3D60.0 AND d<61.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'mnopq*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'mnopq%')
          OR = b=3D14
          OR ((a BETWEEN 88 = AND 90) AND a!=3D89)
          OR = f=3D'zabcdefgh'
@@ -6923,11 +6923,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 59 AND 61) AND a!=3D60)
- =         OR (g=3D'nmlkjih' AND f GLOB = 'defgh*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'defgh%')
          OR = (d>=3D60.0 AND d<61.0 AND d IS NOT NULL)
-     =     OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'mnopq%')
          OR = b=3D14
          OR ((a BETWEEN 88 = AND 90) AND a!=3D89)
          OR = f=3D'zabcdefgh'
@@ -6943,7 +6943,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%')
    =       OR b=3D286
        =   OR (d>=3D31.0 AND d<32.0 AND d IS NOT = NULL)
          OR b=3D91
@@ = -6960,7 +6960,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR = b=3D286
          OR (d>=3D31.0 = AND d<32.0 AND d IS NOT NULL)
        =   OR b=3D91
@@ -6977,9 +6977,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR c=3D19019
-       =   OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+     =     OR (f LIKE '_xyza%' AND f LIKE 'wxyz%')
  =         OR b=3D374
  =  ]])
     end, {
@@ -6993,9 = +6993,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'nopqr*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'nopqr%')
          OR = c=3D19019
-         OR (f GLOB '?xyza*' = AND f GLOB 'wxyz*')
+         OR (f LIKE = '_xyza%' AND f LIKE 'wxyz%')
        =   OR b=3D374
   ]])
    =  end, {
@@ -7010,7 +7010,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE g IS NULL
- =         OR (g=3D'onmlkji' AND f GLOB = 'wxyza*')
+         OR (g=3D'onmlkji' AND = f LIKE 'wxyza%')
   ]])
    =  end, {
         -- = <where7-2.185.1>
@@ -7024,7 +7024,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE g IS NULL
- =         OR (g=3D'onmlkji' AND f GLOB = 'wxyza*')
+         OR (g=3D'onmlkji' AND = f LIKE 'wxyza%')
   ]])
    =  end, {
         -- = <where7-2.185.2>
@@ -7067,10 +7067,10 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 66 AND 68) AND = a!=3D67)
          OR = b=3D564
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR b=3D234
          OR = b=3D641
-         OR (f GLOB '?opqr*' AND = f GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR (d>=3D5.0 AND = d<6.0 AND d IS NOT NULL)
          = OR a=3D98
@@ -7088,10 +7088,10 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 66 AND 68) AND = a!=3D67)
          OR = b=3D564
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR b=3D234
          OR = b=3D641
-         OR (f GLOB '?opqr*' AND = f GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR (d>=3D5.0 AND = d<6.0 AND d IS NOT NULL)
          = OR a=3D98
@@ -7111,12 +7111,12 @@ = test:do_test(
          OR = b=3D44
          OR = b=3D539
          OR = c=3D11011
-         OR (g=3D'fedcbaz' AND = f GLOB 'rstuv*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'rstuv%')
          OR = b=3D69
          OR = b=3D1001
          OR (d>=3D26.0 = AND d<27.0 AND d IS NOT NULL)
        =   OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL)
- =         OR (g=3D'ihgfedc' AND f GLOB = 'defgh*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'defgh%')
          OR ((a = BETWEEN 32 AND 34) AND a!=3D33)
  =  ]])
     end, {
@@ -7134,12 = +7134,12 @@ test:do_test(
          = OR b=3D44
          OR = b=3D539
          OR = c=3D11011
-         OR (g=3D'fedcbaz' AND = f GLOB 'rstuv*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'rstuv%')
          OR = b=3D69
          OR = b=3D1001
          OR (d>=3D26.0 = AND d<27.0 AND d IS NOT NULL)
        =   OR (d>=3D23.0 AND d<24.0 AND d IS NOT NULL)
- =         OR (g=3D'ihgfedc' AND f GLOB = 'defgh*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'defgh%')
          OR ((a = BETWEEN 32 AND 34) AND a!=3D33)
  =  ]])
     end, {
@@ -7224,7 = +7224,7 @@ test:do_test(
       WHERE = c=3D23023
          OR (d>=3D83.0 = AND d<84.0 AND d IS NOT NULL)
        =   OR a=3D66
-         OR (g=3D'onmlkji'= AND f GLOB 'zabcd*')
+         OR = (g=3D'onmlkji' AND f LIKE 'zabcd%')
      =     OR a=3D51
          OR = a=3D23
          OR = c=3D4004
@@ -7243,7 +7243,7 @@ test:do_test(
  =      WHERE c=3D23023
      =     OR (d>=3D83.0 AND d<84.0 AND d IS NOT = NULL)
          OR a=3D66
- =         OR (g=3D'onmlkji' AND f GLOB = 'zabcd*')
+         OR (g=3D'onmlkji' AND = f LIKE 'zabcd%')
          OR = a=3D51
          OR = a=3D23
          OR = c=3D4004
@@ -7260,7 +7260,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D36
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'rqponml' AND f LIKE 'lmnop%')
    =       OR a=3D80
  =  ]])
     end, {
@@ -7275,7 = +7275,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D36
- =         OR (g=3D'rqponml' AND f GLOB = 'lmnop*')
+         OR (g=3D'rqponml' AND = f LIKE 'lmnop%')
          OR = a=3D80
   ]])
     end, = {
@@ -7289,7 +7289,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?jklm*' AND f GLOB = 'ijkl*')
+      WHERE (f LIKE '_jklm%' AND f = LIKE 'ijkl%')
          OR ((a = BETWEEN 37 AND 39) AND a!=3D38)
        =   OR a=3D55
          OR = f=3D'efghijklm'
@@ -7310,7 +7310,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?jklm*' AND f GLOB 'ijkl*')
+      WHERE = (f LIKE '_jklm%' AND f LIKE 'ijkl%')
      =     OR ((a BETWEEN 37 AND 39) AND a!=3D38)
  =         OR a=3D55
      =     OR f=3D'efghijklm'
@@ -7333,11 +7333,11 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D87.0 AND = d<88.0 AND d IS NOT NULL)
        =   OR b=3D836
-         OR (f GLOB = '?defg*' AND f GLOB 'cdef*')
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (f LIKE '_defg%' AND f LIKE 'cdef%')
+     =     OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
  =         OR a=3D91
      =     OR b=3D594
-         OR = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.194.1>
@@ -7352,11 = +7352,11 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D87.0 AND = d<88.0 AND d IS NOT NULL)
        =   OR b=3D836
-         OR (f GLOB = '?defg*' AND f GLOB 'cdef*')
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (f LIKE '_defg%' AND f LIKE 'cdef%')
+     =     OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
  =         OR a=3D91
      =     OR b=3D594
-         OR = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.194.2>
@@ -7369,8 = +7369,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'yzabc*')
-         OR (g=3D'wvutsrq' AND = f GLOB 'mnopq*')
+      WHERE (g=3D'tsrqpon' = AND f LIKE 'yzabc%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'mnopq%')
      =     OR ((a BETWEEN 62 AND 64) AND a!=3D63)
  =         OR c=3D6006
      =     OR ((a BETWEEN 50 AND 52) AND a!=3D51)
@@ = -7389,8 +7389,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'yzabc*')
-         OR (g=3D'wvutsrq' AND = f GLOB 'mnopq*')
+      WHERE (g=3D'tsrqpon' = AND f LIKE 'yzabc%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'mnopq%')
      =     OR ((a BETWEEN 62 AND 64) AND a!=3D63)
  =         OR c=3D6006
      =     OR ((a BETWEEN 50 AND 52) AND a!=3D51)
@@ = -7415,10 +7415,10 @@ test:do_test(
        =   OR b=3D121
          OR = (d>=3D44.0 AND d<45.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 12 AND 14) AND a!=3D13)
- =         OR (g=3D'utsrqpo' AND f GLOB = 'stuvw*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'stuvw%')
          OR = b=3D660
          OR = b=3D792
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'ghijk%')
   ]])
    =  end, {
         -- = <where7-2.196.1>
@@ -7437,10 +7437,10 @@ = test:do_test(
          OR = b=3D121
          OR (d>=3D44.0 = AND d<45.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 12 AND 14) AND a!=3D13)
-     =     OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'stuvw%')
          OR = b=3D660
          OR = b=3D792
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'ghijk%')
   ]])
    =  end, {
         -- = <where7-2.196.2>
@@ -7456,10 +7456,10 @@ = test:do_test(
       WHERE = b=3D1089
          OR = b=3D495
          OR = b=3D157
-         OR (f GLOB '?vwxy*' AND = f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL)
- =         OR (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
-         OR (g=3D'xwvutsr' AND = f GLOB 'hijkl*')
+         OR (g=3D'yxwvuts'= AND f LIKE 'bcdef%')
+         OR = (g=3D'xwvutsr' AND f LIKE 'hijkl%')
      =     OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR = f=3D'wxyzabcde'
   ]])
@@ -7477,10 = +7477,10 @@ test:do_test(
       WHERE = b=3D1089
          OR = b=3D495
          OR = b=3D157
-         OR (f GLOB '?vwxy*' AND = f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR (d>=3D59.0 AND d<60.0 AND d IS NOT NULL)
- =         OR (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
-         OR (g=3D'xwvutsr' AND = f GLOB 'hijkl*')
+         OR (g=3D'yxwvuts'= AND f LIKE 'bcdef%')
+         OR = (g=3D'xwvutsr' AND f LIKE 'hijkl%')
      =     OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR = f=3D'wxyzabcde'
   ]])
@@ -7497,7 +7497,7 = @@ test:do_test(
      SELECT a FROM = t2
       WHERE = f=3D'bcdefghij'
          OR ((a = BETWEEN 40 AND 42) AND a!=3D41)
-         = OR (g=3D'srqponm' AND f GLOB 'ghijk*')
+       =   OR (g=3D'srqponm' AND f LIKE 'ghijk%')
    =       OR b=3D157
        =   OR b=3D267
          OR = c=3D34034
@@ -7515,7 +7515,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE f=3D'bcdefghij'
          = OR ((a BETWEEN 40 AND 42) AND a!=3D41)
-       =   OR (g=3D'srqponm' AND f GLOB 'ghijk*')
+     =     OR (g=3D'srqponm' AND f LIKE 'ghijk%')
  =         OR b=3D157
      =     OR b=3D267
          OR = c=3D34034
@@ -7534,7 +7534,7 @@ test:do_test(
  =      WHERE a=3D19
        =   OR a=3D23
          OR = c<=3D10
-         OR (g=3D'lkjihgf' AND = f GLOB 'opqrs*')
+         OR (g=3D'lkjihgf'= AND f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.199.1>
@@ -7550,7 +7550,7 @@ = test:do_test(
       WHERE = a=3D19
          OR = a=3D23
          OR = c<=3D10
-         OR (g=3D'lkjihgf' AND = f GLOB 'opqrs*')
+         OR (g=3D'lkjihgf'= AND f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.199.2>
@@ -7567,7 +7567,7 @@ = test:do_test(
          OR = b=3D792
          OR = b=3D803
          OR b=3D36
-=         OR (f GLOB '?cdef*' AND f GLOB = 'bcde*')
+         OR (f LIKE '_cdef%' AND = f LIKE 'bcde%')
   ]])
    =  end, {
         -- = <where7-2.200.1>
@@ -7584,7 +7584,7 @@ = test:do_test(
          OR = b=3D792
          OR = b=3D803
          OR b=3D36
-=         OR (f GLOB '?cdef*' AND f GLOB = 'bcde*')
+         OR (f LIKE '_cdef%' AND = f LIKE 'bcde%')
   ]])
    =  end, {
         -- = <where7-2.200.2>
@@ -7597,11 +7597,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR ((a BETWEEN 76 = AND 78) AND a!=3D77)
          OR = f=3D'jklmnopqr'
-         OR (g=3D'onmlkji' = AND f GLOB 'yzabc*')
+         OR = (g=3D'onmlkji' AND f LIKE 'yzabc%')
      =     OR b=3D891
          OR = a=3D40
          OR (d>=3D67.0 AND = d<68.0 AND d IS NOT NULL)
@@ -7617,11 +7617,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR ((a BETWEEN 76 = AND 78) AND a!=3D77)
          OR = f=3D'jklmnopqr'
-         OR (g=3D'onmlkji' = AND f GLOB 'yzabc*')
+         OR = (g=3D'onmlkji' AND f LIKE 'yzabc%')
      =     OR b=3D891
          OR = a=3D40
          OR (d>=3D67.0 AND = d<68.0 AND d IS NOT NULL)
@@ -7644,7 +7644,7 @@ = test:do_test(
          OR = d>1e10
          OR = b=3D429
          OR (d>=3D54.0 = AND d<55.0 AND d IS NOT NULL)
-         = OR (g=3D'jihgfed' AND f GLOB 'yzabc*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
    =       OR c=3D10010
        =   OR ((a BETWEEN 83 AND 85) AND a!=3D84)
  =  ]])
@@ -7666,7 +7666,7 @@ test:do_test(
  =         OR d>1e10
      =     OR b=3D429
          OR = (d>=3D54.0 AND d<55.0 AND d IS NOT NULL)
-     =     OR (g=3D'jihgfed' AND f GLOB 'yzabc*')
+   =       OR (g=3D'jihgfed' AND f LIKE = 'yzabc%')
          OR = c=3D10010
          OR ((a BETWEEN 83 = AND 85) AND a!=3D84)
   ]])
@@ -7681,14 = +7681,14 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'defgh*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'defgh%')
          OR = a=3D22
          OR = a=3D26
          OR = a=3D81
          OR = a=3D53
          OR ((a BETWEEN 92 = AND 94) AND a!=3D93)
          OR = c=3D30030
-         OR (g=3D'wvutsrq' AND = f GLOB 'ijklm*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'ijklm%')
          OR = a=3D82
          OR = b=3D594
   ]])
@@ -7703,14 +7703,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'defgh*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'defgh%')
    =       OR a=3D22
        =   OR a=3D26
          OR = a=3D81
          OR = a=3D53
          OR ((a BETWEEN 92 = AND 94) AND a!=3D93)
          OR = c=3D30030
-         OR (g=3D'wvutsrq' AND = f GLOB 'ijklm*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'ijklm%')
          OR = a=3D82
          OR = b=3D594
   ]])
@@ -7727,14 +7727,14 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 34 AND 36) AND = a!=3D35)
          OR (d>=3D57.0 = AND d<58.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR a=3D83
-         = OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-       =   OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+     =     OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = (d>=3D12.0 AND d<13.0 AND d IS NOT NULL)
    =       OR b=3D1092
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR b=3D25
  =  ]])
     end, {
@@ -7750,14 = +7750,14 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 34 AND 36) AND = a!=3D35)
          OR (d>=3D57.0 = AND d<58.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR a=3D83
-         = OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-       =   OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+     =     OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = (d>=3D12.0 AND d<13.0 AND d IS NOT NULL)
    =       OR b=3D1092
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR b=3D25
  =  ]])
     end, {
@@ -7773,9 = +7773,9 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D20
  =         OR b=3D421
-       =   OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
  =         OR a=3D50
-       =   OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
  =         OR (d>=3D53.0 AND d<54.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -7791,9 +7791,9 @@ test:do_test(
    =   SELECT a FROM t3
       WHERE = a=3D20
          OR b=3D421
-=         OR (g=3D'xwvutsr' AND f GLOB = 'fghij*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'fghij%')
          OR = a=3D50
-         OR (g=3D'qponmlk' AND f = GLOB 'opqrs*')
+         OR (g=3D'qponmlk' = AND f LIKE 'opqrs%')
          OR = (d>=3D53.0 AND d<54.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -7808,7 = +7808,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D960
- =         OR (f GLOB '?opqr*' AND f GLOB = 'nopq*')
+         OR (f LIKE '_opqr%' AND = f LIKE 'nopq%')
   ]])
    =  end, {
         -- = <where7-2.206.1>
@@ -7822,7 +7822,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D960
-   =       OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
+ =         OR (f LIKE '_opqr%' AND f LIKE = 'nopq%')
   ]])
     end, = {
         -- = <where7-2.206.2>
@@ -7899,7 +7899,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%')
    =       OR b=3D957
        =   OR ((a BETWEEN 48 AND 50) AND a!=3D49)
  =  ]])
@@ -7914,7 +7914,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = b=3D957
          OR ((a BETWEEN 48 = AND 50) AND a!=3D49)
   ]])
@@ -7961,7 = +7961,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
        =   OR b=3D11
-         OR (g=3D'fedcbaz'= AND f GLOB 'stuvw*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'stuvw%')
      =     OR ((a BETWEEN 14 AND 16) AND a!=3D15)
  =         OR (d>=3D38.0 AND d<39.0 AND d IS NOT = NULL)
          OR a=3D99
@@ = -7979,7 +7979,7 @@ test:do_test(
      SELECT a = FROM t3
       WHERE (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
        =   OR b=3D11
-         OR (g=3D'fedcbaz'= AND f GLOB 'stuvw*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'stuvw%')
      =     OR ((a BETWEEN 14 AND 16) AND a!=3D15)
  =         OR (d>=3D38.0 AND d<39.0 AND d IS NOT = NULL)
          OR a=3D99
@@ = -7997,12 +7997,12 @@ test:do_test(
      SELECT = a FROM t2
       WHERE = f=3D'fghijklmn'
          OR = a=3D16
-         OR (g=3D'xwvutsr' AND f = GLOB 'defgh*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'defgh%')
          OR ((a = BETWEEN 60 AND 62) AND a!=3D61)
        =   OR ((a BETWEEN 90 AND 92) AND a!=3D91)
    =       OR ((a BETWEEN 9 AND 11) AND = a!=3D10)
          OR (d>=3D52.0 = AND d<53.0 AND d IS NOT NULL)
-         = OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D80
  =  ]])
     end, {
@@ -8018,12 = +8018,12 @@ test:do_test(
      SELECT a FROM = t3
       WHERE = f=3D'fghijklmn'
          OR = a=3D16
-         OR (g=3D'xwvutsr' AND f = GLOB 'defgh*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'defgh%')
          OR ((a = BETWEEN 60 AND 62) AND a!=3D61)
        =   OR ((a BETWEEN 90 AND 92) AND a!=3D91)
    =       OR ((a BETWEEN 9 AND 11) AND = a!=3D10)
          OR (d>=3D52.0 = AND d<53.0 AND d IS NOT NULL)
-         = OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D80
  =  ]])
     end, {
@@ -8037,10 = +8037,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'mnopq%')
          OR = a=3D44
          OR a=3D43
- =         OR (g=3D'lkjihgf' AND f GLOB = 'opqrs*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'opqrs%')
          OR = b=3D25
   ]])
     end, = {
@@ -8054,10 +8054,10 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'mnopq%')
          OR = a=3D44
          OR a=3D43
- =         OR (g=3D'lkjihgf' AND f GLOB = 'opqrs*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'opqrs%')
          OR = b=3D25
   ]])
     end, = {
@@ -8134,10 +8134,10 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'opqrs*')
+         OR (g=3D'gfedcba' AND = f LIKE 'opqrs%')
          OR = b=3D1015
          OR = c=3D16016
-         OR (f GLOB '?uvwx*' = AND f GLOB 'tuvw*')
+         OR (f LIKE = '_uvwx%' AND f LIKE 'tuvw%')
        =   OR f=3D'abcdefghi'
          = OR b=3D605
          OR = a=3D63
@@ -8154,10 +8154,10 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE (d>=3D3.0 AND d<4.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'opqrs*')
+         OR (g=3D'gfedcba' AND = f LIKE 'opqrs%')
          OR = b=3D1015
          OR = c=3D16016
-         OR (f GLOB '?uvwx*' = AND f GLOB 'tuvw*')
+         OR (f LIKE = '_uvwx%' AND f LIKE 'tuvw%')
        =   OR f=3D'abcdefghi'
          = OR b=3D605
          OR = a=3D63
@@ -8173,7 +8173,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
+      WHERE (g=3D'yxwvuts' AND f = LIKE 'bcdef%')
          OR = (d>=3D44.0 AND d<45.0 AND d IS NOT NULL)
    =       OR b=3D641
        =   OR b=3D795
@@ -8189,7 +8189,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+     =  WHERE (g=3D'yxwvuts' AND f LIKE 'bcdef%')
    =       OR (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
          OR = b=3D641
          OR = b=3D795
@@ -8281,7 +8281,7 @@ test:do_test(
  =         OR b=3D1089
      =     OR ((a BETWEEN 69 AND 71) AND a!=3D70)
  =         OR f IS NULL
-     =     OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+   =       OR (f LIKE '_ghij%' AND f LIKE = 'fghi%')
   ]])
     end, = {
         -- = <where7-2.220.1>
@@ -8302,7 +8302,7 @@ = test:do_test(
          OR = b=3D1089
          OR ((a BETWEEN 69 = AND 71) AND a!=3D70)
          OR f = IS NULL
-         OR (f GLOB '?ghij*' AND = f GLOB 'fghi*')
+         OR (f LIKE = '_ghij%' AND f LIKE 'fghi%')
   ]])
  =    end, {
         -- = <where7-2.220.2>
@@ -8317,15 +8317,15 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1026
  =         OR b=3D407
-       =   OR (g=3D'srqponm' AND f GLOB 'fghij*')
+     =     OR (g=3D'srqponm' AND f LIKE 'fghij%')
  =         OR b=3D564
      =     OR c=3D23023
          = OR b=3D891
          OR = c=3D22022
          OR ((a BETWEEN 22 = AND 24) AND a!=3D23)
          OR ((a = BETWEEN 9 AND 11) AND a!=3D10)
-         = OR (g=3D'rqponml' AND f GLOB 'ijklm*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'rqponml' AND f LIKE 'ijklm%')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.221.1>
@@ -8340,15 +8340,15 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D1026
  =         OR b=3D407
-       =   OR (g=3D'srqponm' AND f GLOB 'fghij*')
+     =     OR (g=3D'srqponm' AND f LIKE 'fghij%')
  =         OR b=3D564
      =     OR c=3D23023
          = OR b=3D891
          OR = c=3D22022
          OR ((a BETWEEN 22 = AND 24) AND a!=3D23)
          OR ((a = BETWEEN 9 AND 11) AND a!=3D10)
-         = OR (g=3D'rqponml' AND f GLOB 'ijklm*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'rqponml' AND f LIKE 'ijklm%')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.221.2>
@@ -8395,7 +8395,7 @@ = test:do_test(
          OR ((a = BETWEEN 79 AND 81) AND a!=3D80)
        =   OR c=3D18018
          OR = b=3D792
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR (d>=3D8.0 AND d<9.0 AND d IS NOT = NULL)
          OR (d>=3D91.0 AND = d<92.0 AND d IS NOT NULL)
@@ -8417,7 +8417,7 @@ = test:do_test(
          OR ((a = BETWEEN 79 AND 81) AND a!=3D80)
        =   OR c=3D18018
          OR = b=3D792
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR (d>=3D8.0 AND d<9.0 AND d IS NOT = NULL)
          OR (d>=3D91.0 AND = d<92.0 AND d IS NOT NULL)
@@ -8437,10 +8437,10 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D429
  =         OR (d>=3D33.0 AND d<34.0 AND d IS NOT = NULL)
-         OR (f GLOB '?fghi*' AND f = GLOB 'efgh*')
-         OR (g=3D'qponmlk' = AND f GLOB 'opqrs*')
+         OR (f LIKE = '_fghi%' AND f LIKE 'efgh%')
+         OR = (g=3D'qponmlk' AND f LIKE 'opqrs%')
      =     OR b=3D1070
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.224.1>
@@ -8455,10 = +8455,10 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D429
  =         OR (d>=3D33.0 AND d<34.0 AND d IS NOT = NULL)
-         OR (f GLOB '?fghi*' AND f = GLOB 'efgh*')
-         OR (g=3D'qponmlk' = AND f GLOB 'opqrs*')
+         OR (f LIKE = '_fghi%' AND f LIKE 'efgh%')
+         OR = (g=3D'qponmlk' AND f LIKE 'opqrs%')
      =     OR b=3D1070
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.224.2>
@@ -8471,7 = +8471,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D572
   ]])
     end, = {
@@ -8485,7 +8485,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D572
   ]])
     end, = {
@@ -8501,7 +8501,7 @@ test:do_test(
    =   SELECT a FROM t2
       WHERE ((a = BETWEEN 62 AND 64) AND a!=3D63)
        =   OR f=3D'abcdefghi'
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
  =  ]])
     end, {
    =      -- <where7-2.226.1>
@@ -8516,7 = +8516,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 62 AND 64) AND = a!=3D63)
          OR = f=3D'abcdefghi'
-         OR (g=3D'wvutsrq' = AND f GLOB 'ijklm*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'ijklm%')
  =  ]])
     end, {
    =      -- <where7-2.226.2>
@@ -8562,7 = +8562,7 @@ test:do_test(
          OR = a=3D1
          OR ((a BETWEEN 75 AND = 77) AND a!=3D76)
          OR = a=3D75
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 59 AND 61) AND a!=3D60)
  =  ]])
     end, {
@@ -8581,7 = +8581,7 @@ test:do_test(
          OR = a=3D1
          OR ((a BETWEEN 75 AND = 77) AND a!=3D76)
          OR = a=3D75
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 59 AND 61) AND a!=3D60)
  =  ]])
     end, {
@@ -8595,9 = +8595,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'gfedcba' AND f GLOB = 'nopqr*')
-         OR (f GLOB '?jklm*' = AND f GLOB 'ijkl*')
-         OR = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%')
+   =       OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
+ =         OR (g=3D'mlkjihg' AND f LIKE = 'ijklm%')
          OR = b=3D231
          OR = a=3D87
   ]])
@@ -8612,9 +8612,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'gfedcba' AND f GLOB 'nopqr*')
-       =   OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+   =    WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%')
+ =         OR (f LIKE '_jklm%' AND f LIKE = 'ijkl%')
+         OR (g=3D'mlkjihg' AND f = LIKE 'ijklm%')
          OR = b=3D231
          OR = a=3D87
   ]])
@@ -8630,8 +8630,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D77
-   =       OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
- =         OR (g=3D'rqponml' AND f GLOB = 'hijkl*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'nopqr%')
+         OR (g=3D'rqponml'= AND f LIKE 'hijkl%')
          OR = c=3D24024
          OR = c=3D5005
   ]])
@@ -8647,8 +8647,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D77
-   =       OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
- =         OR (g=3D'rqponml' AND f GLOB = 'hijkl*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'nopqr%')
+         OR (g=3D'rqponml'= AND f LIKE 'hijkl%')
          OR = c=3D24024
          OR = c=3D5005
   ]])
@@ -8663,13 +8663,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%')
    =       OR ((a BETWEEN 89 AND 91) AND a!=3D90)
- =         OR (g=3D'srqponm' AND f GLOB = 'defgh*')
+         OR (g=3D'srqponm' AND = f LIKE 'defgh%')
          OR ((a = BETWEEN 64 AND 66) AND a!=3D65)
        =   OR b=3D682
          OR = (d>=3D34.0 AND d<35.0 AND d IS NOT NULL)
-     =     OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+   =       OR (g=3D'lkjihgf' AND f LIKE = 'nopqr%')
          OR (d>=3D22.0 = AND d<23.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -8683,13 = +8683,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'ijklm%')
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
-         = OR (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 64 AND 66) AND = a!=3D65)
          OR = b=3D682
          OR (d>=3D34.0 = AND d<35.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR (d>=3D22.0 AND d<23.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -8707,7 +8707,7 @@ test:do_test(
    =       OR b=3D121
        =   OR c=3D2002
          OR ((a = BETWEEN 84 AND 86) AND a!=3D85)
-         = OR (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.232.1>
@@ -8724,7 = +8724,7 @@ test:do_test(
          OR = b=3D121
          OR = c=3D2002
          OR ((a BETWEEN 84 = AND 86) AND a!=3D85)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.232.2>
@@ -8740,8 = +8740,8 @@ test:do_test(
       WHERE = (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
    =       OR f=3D'abcdefghi'
      =     OR b=3D267
-         OR = (g=3D'ihgfedc' AND f GLOB 'abcde*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'abcde%')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'uvwxy%')
          OR = a=3D82
          OR = a=3D54
          OR (d>=3D16.0 AND = d<17.0 AND d IS NOT NULL)
@@ -8761,8 +8761,8 @@ = test:do_test(
       WHERE (d>=3D55.0 = AND d<56.0 AND d IS NOT NULL)
        =   OR f=3D'abcdefghi'
          = OR b=3D267
-         OR (g=3D'ihgfedc' AND = f GLOB 'abcde*')
-         OR (g=3D'utsrqpo'= AND f GLOB 'uvwxy*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'abcde%')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR a=3D82
        =   OR a=3D54
          OR = (d>=3D16.0 AND d<17.0 AND d IS NOT NULL)
@@ -8815,9 = +8815,9 @@ test:do_test(
          OR = ((a BETWEEN 31 AND 33) AND a!=3D32)
      =     OR (d>=3D94.0 AND d<95.0 AND d IS NOT = NULL)
          OR = 1000000<b
-         OR (f GLOB '?pqrs*' = AND f GLOB 'opqr*')
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (f LIKE '_pqrs%' AND f LIKE 'opqr%')
+   =       OR (g=3D'rqponml' AND f LIKE 'lmnop%')
+ =         OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
   ]])
     end, = {
         -- = <where7-2.235.1>
@@ -8836,9 +8836,9 @@ = test:do_test(
          OR ((a = BETWEEN 31 AND 33) AND a!=3D32)
        =   OR (d>=3D94.0 AND d<95.0 AND d IS NOT = NULL)
          OR = 1000000<b
-         OR (f GLOB '?pqrs*' = AND f GLOB 'opqr*')
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (f LIKE '_pqrs%' AND f LIKE 'opqr%')
+   =       OR (g=3D'rqponml' AND f LIKE 'lmnop%')
+ =         OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
   ]])
     end, = {
         -- = <where7-2.235.2>
@@ -8853,7 +8853,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1001
  =         OR b=3D168
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
  =         OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -8869,7 +8869,7 @@ test:do_test(
    =   SELECT a FROM t3
       WHERE = b=3D1001
          OR = b=3D168
-         OR (f GLOB '?ijkl*' AND = f GLOB 'hijk*')
+         OR (f LIKE = '_ijkl%' AND f LIKE 'hijk%')
        =   OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -8884,8 +8884,8 @@ test:do_test(
    =      return count_steps_sort([[
    =   SELECT a FROM t2
       WHERE = a=3D51
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
-         OR (g=3D'edcbazy' = AND f GLOB 'uvwxy*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'stuvw%')
+       =   OR (g=3D'edcbazy' AND f LIKE 'uvwxy%')
    =       OR b=3D330
  =  ]])
     end, {
@@ -8900,8 = +8900,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE a=3D51
- =         OR (g=3D'fedcbaz' AND f GLOB = 'stuvw*')
-         OR (g=3D'edcbazy' AND = f GLOB 'uvwxy*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'stuvw%')
+         OR = (g=3D'edcbazy' AND f LIKE 'uvwxy%')
      =     OR b=3D330
   ]])
  =    end, {
@@ -8915,13 +8915,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D704
        =   OR a=3D62
          OR = f=3D'pqrstuvwx'
          OR = b=3D495
          OR = c=3D26026
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = b<0
          OR = b=3D597
   ]])
@@ -8936,13 +8936,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D704
        =   OR a=3D62
          OR = f=3D'pqrstuvwx'
          OR = b=3D495
          OR = c=3D26026
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = b<0
          OR = b=3D597
   ]])
@@ -8992,7 +8992,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D14014
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'rstuv%')
          OR = b=3D572
          OR = c=3D15015
   ]])
@@ -9008,7 +9008,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE c=3D14014
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'rstuv%')
          OR = b=3D572
          OR = c=3D15015
   ]])
@@ -9023,9 +9023,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
+      WHERE = (f LIKE '_efgh%' AND f LIKE 'defg%')
      =     OR b=3D850
-         OR = (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 15 AND 17) AND = a!=3D16)
          OR = b=3D88
          OR = f=3D'hijklmnop'
@@ -9044,9 +9044,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
+      WHERE = (f LIKE '_efgh%' AND f LIKE 'defg%')
      =     OR b=3D850
-         OR = (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 15 AND 17) AND = a!=3D16)
          OR = b=3D88
          OR = f=3D'hijklmnop'
@@ -9073,8 +9073,8 @@ = test:do_test(
          OR = b=3D374
          OR = b=3D938
          OR = b=3D773
-         OR (g=3D'jihgfed' AND f = GLOB 'zabcd*')
-         OR (g=3D'mlkjihg' = AND f GLOB 'ghijk*')
+         OR = (g=3D'jihgfed' AND f LIKE 'zabcd%')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
  =  ]])
     end, {
    =      -- <where7-2.242.1>
@@ -9095,8 = +9095,8 @@ test:do_test(
          OR = b=3D374
          OR = b=3D938
          OR = b=3D773
-         OR (g=3D'jihgfed' AND f = GLOB 'zabcd*')
-         OR (g=3D'mlkjihg' = AND f GLOB 'ghijk*')
+         OR = (g=3D'jihgfed' AND f LIKE 'zabcd%')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
  =  ]])
     end, {
    =      -- <where7-2.242.2>
@@ -9109,7 = +9109,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'rstuv%')
          OR = b=3D146
   ]])
     end, = {
@@ -9123,7 +9123,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'rstuv%')
          OR = b=3D146
   ]])
     end, = {
@@ -9171,7 +9171,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+      WHERE (f LIKE '_uvwx%' AND f = LIKE 'tuvw%')
          OR = b=3D399
          OR = b=3D1004
          OR = c=3D16016
@@ -9193,7 +9193,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (f GLOB '?uvwx*' AND f = GLOB 'tuvw*')
+      WHERE (f LIKE '_uvwx%' AND = f LIKE 'tuvw%')
          OR = b=3D399
          OR = b=3D1004
          OR = c=3D16016
@@ -9222,8 +9222,8 @@ test:do_test(
  =         OR b=3D861
      =     OR (d>=3D90.0 AND d<91.0 AND d IS NOT = NULL)
          OR b=3D949
- =         OR (g=3D'utsrqpo' AND f GLOB = 'stuvw*')
-         OR (g=3D'nmlkjih' AND = f GLOB 'cdefg*')
+         OR (g=3D'utsrqpo'= AND f LIKE 'stuvw%')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
  =  ]])
     end, {
    =      -- <where7-2.246.1>
@@ -9243,8 = +9243,8 @@ test:do_test(
          OR = b=3D861
          OR (d>=3D90.0 = AND d<91.0 AND d IS NOT NULL)
        =   OR b=3D949
-         OR = (g=3D'utsrqpo' AND f GLOB 'stuvw*')
-       =   OR (g=3D'nmlkjih' AND f GLOB 'cdefg*')
+     =     OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'cdefg%')
   ]])
     end, = {
         -- = <where7-2.246.2>
@@ -9257,7 +9257,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%')
    =       OR a=3D83
        =   OR c=3D26026
          OR = a=3D49
@@ -9276,7 +9276,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'hijkl*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'hijkl%')
          OR = a=3D83
          OR = c=3D26026
          OR = a=3D49
@@ -9328,7 +9328,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D451
-         OR (f GLOB = '?jklm*' AND f GLOB 'ijkl*')
+         OR = (f LIKE '_jklm%' AND f LIKE 'ijkl%')
  =  ]])
     end, {
    =      -- <where7-2.249.1>
@@ -9342,7 = +9342,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D451
- =         OR (f GLOB '?jklm*' AND f GLOB = 'ijkl*')
+         OR (f LIKE '_jklm%' AND = f LIKE 'ijkl%')
   ]])
    =  end, {
         -- = <where7-2.249.2>
@@ -9356,7 +9356,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D47
-   =       OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+ =         OR (f LIKE '_cdef%' AND f LIKE = 'bcde%')
   ]])
     end, = {
         -- = <where7-2.250.1>
@@ -9370,7 +9370,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D47
-   =       OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+ =         OR (f LIKE '_cdef%' AND f LIKE = 'bcde%')
   ]])
     end, = {
         -- = <where7-2.250.2>
@@ -9384,7 +9384,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D1037
- =         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
        =   OR b=3D344
          OR = (d>=3D86.0 AND d<87.0 AND d IS NOT NULL)
@@ -9401,7 = +9401,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D1037
- =         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
        =   OR b=3D344
          OR = (d>=3D86.0 AND d<87.0 AND d IS NOT NULL)
@@ -9419,7 = +9419,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D506
  =         OR ((a BETWEEN 20 AND 22) AND = a!=3D21)
-         OR (g=3D'hgfedcb' AND f = GLOB 'ijklm*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'ijklm%')
          OR = b=3D429
          OR = b=3D275
   ]])
@@ -9436,7 +9436,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D506
  =         OR ((a BETWEEN 20 AND 22) AND = a!=3D21)
-         OR (g=3D'hgfedcb' AND f = GLOB 'ijklm*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'ijklm%')
          OR = b=3D429
          OR = b=3D275
   ]])
@@ -9458,7 +9458,7 @@ = test:do_test(
          OR = (d>=3D28.0 AND d<29.0 AND d IS NOT NULL)
    =       OR a=3D60
        =   OR b=3D80
-         OR (g=3D'ponmlkj'= AND f GLOB 'vwxyz*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
      =     OR b=3D616
   ]])
  =    end, {
@@ -9479,7 +9479,7 @@ = test:do_test(
          OR = (d>=3D28.0 AND d<29.0 AND d IS NOT NULL)
    =       OR a=3D60
        =   OR b=3D80
-         OR (g=3D'ponmlkj'= AND f GLOB 'vwxyz*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
      =     OR b=3D616
   ]])
  =    end, {
@@ -9521,13 +9521,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%')
    =       OR a=3D43
        =   OR ((a BETWEEN 64 AND 66) AND a!=3D65)
    =       OR b=3D586
        =   OR c=3D17017
-         OR = (g=3D'onmlkji' AND f GLOB 'yzabc*')
-       =   OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_wxyz%' AND f LIKE = 'vwxy%')
          OR = a=3D87
          OR = b=3D968
   ]])
@@ -9542,13 +9542,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%')
    =       OR a=3D43
        =   OR ((a BETWEEN 64 AND 66) AND a!=3D65)
    =       OR b=3D586
        =   OR c=3D17017
-         OR = (g=3D'onmlkji' AND f GLOB 'yzabc*')
-       =   OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_wxyz%' AND f LIKE = 'vwxy%')
          OR = a=3D87
          OR = b=3D968
   ]])
@@ -9597,8 +9597,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'rqponml' AND f GLOB 'jklmn*')
-       =   OR (g=3D'xwvutsr' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'rqponml' AND f LIKE 'jklmn%')
+   =       OR (g=3D'xwvutsr' AND f LIKE = 'efghi%')
          OR = c>=3D34035
          OR = b=3D850
          OR ((a BETWEEN 32 = AND 34) AND a!=3D33)
@@ -9620,8 +9620,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'rqponml' AND f GLOB 'jklmn*')
-       =   OR (g=3D'xwvutsr' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'rqponml' AND f LIKE 'jklmn%')
+   =       OR (g=3D'xwvutsr' AND f LIKE = 'efghi%')
          OR = c>=3D34035
          OR = b=3D850
          OR ((a BETWEEN 32 = AND 34) AND a!=3D33)
@@ -9705,7 +9705,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%')
    =       OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR = b=3D993
   ]])
@@ -9720,7 +9720,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'qponmlk' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%')
    =       OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
          OR = b=3D993
   ]])
@@ -9739,7 +9739,7 @@ = test:do_test(
          OR = a=3D22
          OR = b=3D289
          OR = b=3D795
-         OR (g=3D'gfedcba' AND f = GLOB 'nopqr*')
+         OR (g=3D'gfedcba' = AND f LIKE 'nopqr%')
          OR = b=3D242
          OR = a=3D59
          OR = b=3D1045
@@ -9760,7 +9760,7 @@ test:do_test(
  =         OR a=3D22
      =     OR b=3D289
          OR = b=3D795
-         OR (g=3D'gfedcba' AND f = GLOB 'nopqr*')
+         OR (g=3D'gfedcba' = AND f LIKE 'nopqr%')
          OR = b=3D242
          OR = a=3D59
          OR = b=3D1045
@@ -9778,9 +9778,9 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D245
-         OR = (g=3D'wvutsrq' AND f GLOB 'klmno*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'klmno%')
    =       OR c=3D3003
-         = OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+       =   OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
    =       OR ((a BETWEEN 68 AND 70) AND = a!=3D69)
          OR (d>=3D1.0 = AND d<2.0 AND d IS NOT NULL)
        =   OR (d>=3D33.0 AND d<34.0 AND d IS NOT NULL)
@@ = -9798,9 +9798,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D245
- =         OR (g=3D'wvutsrq' AND f GLOB = 'klmno*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'klmno%')
          OR = c=3D3003
-         OR (f GLOB '?bcde*' AND = f GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR (d>=3D33.0 AND = d<34.0 AND d IS NOT NULL)
@@ -9817,15 +9817,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR b=3D220
        =   OR b=3D443
-         OR (f GLOB = '?tuvw*' AND f GLOB 'stuv*')
+         OR = (f LIKE '_tuvw%' AND f LIKE 'stuv%')
      =     OR a=3D62
-         OR (f = GLOB '?tuvw*' AND f GLOB 'stuv*')
+       =   OR (f LIKE '_tuvw%' AND f LIKE 'stuv%')
    =       OR b=3D1023
        =   OR a=3D100
-         OR = (g=3D'nmlkjih' AND f GLOB 'defgh*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR (d>=3D97.0 AND d<98.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -9839,15 +9839,15 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'jklmn%')
          OR = b=3D220
          OR = b=3D443
-         OR (f GLOB '?tuvw*' AND = f GLOB 'stuv*')
+         OR (f LIKE = '_tuvw%' AND f LIKE 'stuv%')
        =   OR a=3D62
-         OR (f GLOB = '?tuvw*' AND f GLOB 'stuv*')
+         OR = (f LIKE '_tuvw%' AND f LIKE 'stuv%')
      =     OR b=3D1023
          = OR a=3D100
-         OR (g=3D'nmlkjih' AND = f GLOB 'defgh*')
+         OR (g=3D'nmlkjih'= AND f LIKE 'defgh%')
          OR = (d>=3D97.0 AND d<98.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -9863,8 = +9863,8 @@ test:do_test(
      SELECT a FROM = t2
       WHERE c=3D11011
  =         OR f=3D'tuvwxyzab'
-     =     OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
-   =       OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+ =         OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
+         OR (g=3D'hgfedcb' AND = f LIKE 'ghijk%')
   ]])
    =  end, {
         -- = <where7-2.264.1>
@@ -9879,8 +9879,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE c=3D11011
  =         OR f=3D'tuvwxyzab'
-     =     OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
-   =       OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+ =         OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
+         OR (g=3D'hgfedcb' AND = f LIKE 'ghijk%')
   ]])
    =  end, {
         -- = <where7-2.264.2>
@@ -10005,15 +10005,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D443
        =   OR b=3D33
          OR = b=3D762
          OR = b=3D575
          OR = c=3D16016
-         OR (g=3D'kjihgfe' AND = f GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'uvwxy%')
          OR = ((a BETWEEN 41 AND 43) AND a!=3D42)
-       =   OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
  =         OR b=3D1092
  =  ]])
     end, {
@@ -10027,15 = +10027,15 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ponmlkj' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'ponmlkj' AND f = LIKE 'uvwxy%')
          OR = b=3D443
          OR = b=3D33
          OR = b=3D762
          OR = b=3D575
          OR = c=3D16016
-         OR (g=3D'kjihgfe' AND = f GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'uvwxy%')
          OR = ((a BETWEEN 41 AND 43) AND a!=3D42)
-       =   OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
  =         OR b=3D1092
  =  ]])
     end, {
@@ -10051,14 = +10051,14 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D806
  =         OR b=3D872
-       =   OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
  =         OR f=3D'uvwxyzabc'
    =       OR b=3D748
        =   OR b=3D586
          OR ((a = BETWEEN 15 AND 17) AND a!=3D16)
-         = OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 32 AND 34) AND a!=3D33)
- =         OR (g=3D'vutsrqp' AND f GLOB = 'pqrst*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'pqrst%')
          OR = b=3D891
   ]])
     end, = {
@@ -10074,14 +10074,14 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE b=3D806
          OR = b=3D872
-         OR (g=3D'ihgfedc' AND f = GLOB 'cdefg*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'cdefg%')
          OR = f=3D'uvwxyzabc'
          OR = b=3D748
          OR = b=3D586
          OR ((a BETWEEN 15 = AND 17) AND a!=3D16)
-         OR = (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 32 AND 34) AND a!=3D33)
- =         OR (g=3D'vutsrqp' AND f GLOB = 'pqrst*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'pqrst%')
          OR = b=3D891
   ]])
     end, = {
@@ -10097,8 +10097,8 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D693
          OR = f=3D'fghijklmn'
-         OR (g=3D'rqponml' = AND f GLOB 'hijkl*')
-         OR = (g=3D'qponmlk' AND f GLOB 'nopqr*')
+       =   OR (g=3D'rqponml' AND f LIKE 'hijkl%')
+     =     OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
  =         OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR = a=3D96
   ]])
@@ -10115,8 +10115,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D693
  =         OR f=3D'fghijklmn'
-     =     OR (g=3D'rqponml' AND f GLOB 'hijkl*')
-   =       OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'hijkl%')
+         OR (g=3D'qponmlk' AND = f LIKE 'nopqr%')
          OR ((a = BETWEEN 71 AND 73) AND a!=3D72)
        =   OR a=3D96
   ]])
@@ -10131,7 = +10131,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'ijklm%')
          OR = b=3D451
          OR ((a BETWEEN 96 = AND 98) AND a!=3D97)
          OR ((a = BETWEEN 97 AND 99) AND a!=3D98)
@@ -10148,7 +10148,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR b=3D451
        =   OR ((a BETWEEN 96 AND 98) AND a!=3D97)
    =       OR ((a BETWEEN 97 AND 99) AND a!=3D98)
@@ = -10165,16 +10165,16 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'bcdef*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'bcdef%')
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
    =       OR a=3D75
        =   OR b=3D960
-         OR = (g=3D'tsrqpon' AND f GLOB 'yzabc*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'yzabc%')
    =       OR b=3D616
        =   OR b=3D330
          OR ((a = BETWEEN 16 AND 18) AND a!=3D17)
        =   OR a=3D26
-         OR (g=3D'kjihgfe'= AND f GLOB 'uvwxy*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.272.1>
@@ -10187,16 = +10187,16 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'bcdef*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'bcdef%')
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
    =       OR a=3D75
        =   OR b=3D960
-         OR = (g=3D'tsrqpon' AND f GLOB 'yzabc*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'yzabc%')
    =       OR b=3D616
        =   OR b=3D330
          OR ((a = BETWEEN 16 AND 18) AND a!=3D17)
        =   OR a=3D26
-         OR (g=3D'kjihgfe'= AND f GLOB 'uvwxy*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.272.2>
@@ -10210,7 = +10210,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D762
- =         OR (g=3D'nmlkjih' AND f GLOB = 'bcdef*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'bcdef%')
   ]])
    =  end, {
         -- = <where7-2.273.1>
@@ -10224,7 +10224,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D762
-   =       OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
   ]])
     end, = {
         -- = <where7-2.273.2>
@@ -10310,7 +10310,7 @@ = test:do_test(
          OR = b=3D176
          OR ((a BETWEEN 34 = AND 36) AND a!=3D35)
          OR = b=3D220
-         OR (g=3D'tsrqpon' AND f = GLOB 'yzabc*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'yzabc%')
          OR = a=3D4
   ]])
     end, = {
@@ -10329,7 +10329,7 @@ test:do_test(
  =         OR b=3D176
      =     OR ((a BETWEEN 34 AND 36) AND a!=3D35)
  =         OR b=3D220
-       =   OR (g=3D'tsrqpon' AND f GLOB 'yzabc*')
+     =     OR (g=3D'tsrqpon' AND f LIKE 'yzabc%')
  =         OR a=3D4
  =  ]])
     end, {
@@ -10344,7 = +10344,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE a=3D29
- =         OR (g=3D'utsrqpo' AND f GLOB = 'tuvwx*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'tuvwx%')
          OR = b=3D979
          OR = b=3D275
          OR ((a BETWEEN 56 = AND 58) AND a!=3D57)
@@ -10364,7 +10364,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D29
-   =       OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
          OR = b=3D979
          OR = b=3D275
          OR ((a BETWEEN 56 = AND 58) AND a!=3D57)
@@ -10384,11 +10384,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 43 AND 45) AND = a!=3D44)
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
-         OR (g=3D'nmlkjih' = AND f GLOB 'fghij*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'rstuv%')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR ((a BETWEEN 57 AND 59) AND = a!=3D58)
          OR = f=3D'fghijklmn'
-         OR (g=3D'rqponml' = AND f GLOB 'klmno*')
+         OR = (g=3D'rqponml' AND f LIKE 'klmno%')
      =     OR ((a BETWEEN 4 AND 6) AND a!=3D5)
  =         OR a=3D74
      =     OR ((a BETWEEN 7 AND 9) AND a!=3D8)
@@ -10405,11 = +10405,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 43 AND = 45) AND a!=3D44)
-         OR (g=3D'kjihgfe'= AND f GLOB 'rstuv*')
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'rstuv%')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =         OR ((a BETWEEN 57 AND 59) AND = a!=3D58)
          OR = f=3D'fghijklmn'
-         OR (g=3D'rqponml' = AND f GLOB 'klmno*')
+         OR = (g=3D'rqponml' AND f LIKE 'klmno%')
      =     OR ((a BETWEEN 4 AND 6) AND a!=3D5)
  =         OR a=3D74
      =     OR ((a BETWEEN 7 AND 9) AND a!=3D8)
@@ -10426,10 = +10426,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 80 AND = 82) AND a!=3D81)
-         OR (f GLOB = '?jklm*' AND f GLOB 'ijkl*')
+         OR = (f LIKE '_jklm%' AND f LIKE 'ijkl%')
      =     OR (d>=3D42.0 AND d<43.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 49 AND = 51) AND a!=3D50)
-         OR (g=3D'ihgfedc'= AND f GLOB 'bcdef*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'bcdef%')
  =  ]])
     end, {
    =      -- <where7-2.279.1>
@@ -10443,10 = +10443,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 80 AND = 82) AND a!=3D81)
-         OR (f GLOB = '?jklm*' AND f GLOB 'ijkl*')
+         OR = (f LIKE '_jklm%' AND f LIKE 'ijkl%')
      =     OR (d>=3D42.0 AND d<43.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 49 AND = 51) AND a!=3D50)
-         OR (g=3D'ihgfedc'= AND f GLOB 'bcdef*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'bcdef%')
  =  ]])
     end, {
    =      -- <where7-2.279.2>
@@ -10495,11 = +10495,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'ghijk%')
          OR = c=3D23023
          OR = b=3D377
          OR = b=3D858
-         OR (g=3D'nmlkjih' AND f = GLOB 'fghij*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.281.1>
@@ -10512,11 +10512,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR c=3D23023
        =   OR b=3D377
          OR = b=3D858
-         OR (g=3D'nmlkjih' AND f = GLOB 'fghij*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.281.2>
@@ -10532,13 +10532,13 @@ = test:do_test(
       WHERE (d>=3D38.0 = AND d<39.0 AND d IS NOT NULL)
        =   OR b=3D322
          OR = (d>=3D19.0 AND d<20.0 AND d IS NOT NULL)
-     =     OR (g=3D'fedcbaz' AND f GLOB 'pqrst*')
-   =       OR (g=3D'onmlkji' AND f GLOB 'wxyza*')
+ =         OR (g=3D'fedcbaz' AND f LIKE = 'pqrst%')
+         OR (g=3D'onmlkji' AND = f LIKE 'wxyza%')
          OR = b=3D432
          OR = b=3D55
          OR = a=3D53
          OR (d>=3D74.0 AND = d<75.0 AND d IS NOT NULL)
-         OR = (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+       =   OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
    =       OR b=3D25
  =  ]])
     end, {
@@ -10555,13 = +10555,13 @@ test:do_test(
       WHERE = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR b=3D322
        =   OR (d>=3D19.0 AND d<20.0 AND d IS NOT NULL)
- =         OR (g=3D'fedcbaz' AND f GLOB = 'pqrst*')
-         OR (g=3D'onmlkji' AND = f GLOB 'wxyza*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'pqrst%')
+         OR = (g=3D'onmlkji' AND f LIKE 'wxyza%')
      =     OR b=3D432
          OR = b=3D55
          OR = a=3D53
          OR (d>=3D74.0 AND = d<75.0 AND d IS NOT NULL)
-         OR = (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+       =   OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
    =       OR b=3D25
  =  ]])
     end, {
@@ -10576,7 = +10576,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D484
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'jihgfed' AND = f LIKE 'wxyza%')
          OR = b=3D616
          OR = c=3D5005
          OR ((a BETWEEN 27 = AND 29) AND a!=3D28)
@@ -10593,7 +10593,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D484
-   =       OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+ =         OR (g=3D'jihgfed' AND f LIKE = 'wxyza%')
          OR = b=3D616
          OR = c=3D5005
          OR ((a BETWEEN 27 = AND 29) AND a!=3D28)
@@ -10610,11 +10610,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D916
-   =       OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
+ =         OR (f LIKE '_opqr%' AND f LIKE = 'nopq%')
          OR = b=3D1048
          OR = c=3D6006
          OR = b=3D762
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR ((a BETWEEN 59 AND 61) AND a!=3D60)
    =       OR b=3D751
        =   OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
@@ = -10631,11 +10631,11 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE = b=3D916
-         OR (f GLOB '?opqr*' AND = f GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR b=3D1048
          OR = c=3D6006
          OR = b=3D762
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR ((a BETWEEN 59 AND 61) AND a!=3D60)
    =       OR b=3D751
        =   OR (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
@@ = -10656,7 +10656,7 @@ test:do_test(
        =   OR b=3D275
          OR = b=3D396
          OR = c=3D4004
-         OR (g=3D'vutsrqp' AND f = GLOB 'opqrs*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'opqrs%')
          OR = b=3D319
          OR ((a BETWEEN 83 = AND 85) AND a!=3D84)
          OR = a=3D3
@@ -10678,7 +10678,7 @@ test:do_test(
  =         OR b=3D275
      =     OR b=3D396
          OR = c=3D4004
-         OR (g=3D'vutsrqp' AND f = GLOB 'opqrs*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'opqrs%')
          OR = b=3D319
          OR ((a BETWEEN 83 = AND 85) AND a!=3D84)
          OR = a=3D3
@@ -10695,16 +10695,16 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'lmnop*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'lmnop%')
          OR = b=3D718
          OR = f=3D'vwxyzabcd'
          OR = (d>=3D98.0 AND d<99.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
-   =       OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'tuvwx%')
+         OR (f LIKE '_uvwx%' = AND f LIKE 'tuvw%')
          OR = (d>=3D22.0 AND d<23.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 66 AND 68) AND a!=3D67)
- =         OR (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
-         OR (f GLOB '?klmn*' = AND f GLOB 'jklm*')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
+       =   OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
    =       OR (d>=3D11.0 AND d<12.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -10718,16 +10718,16 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'lmnop*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'lmnop%')
          OR = b=3D718
          OR = f=3D'vwxyzabcd'
          OR = (d>=3D98.0 AND d<99.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
-   =       OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'tuvwx%')
+         OR (f LIKE '_uvwx%' = AND f LIKE 'tuvw%')
          OR = (d>=3D22.0 AND d<23.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 66 AND 68) AND a!=3D67)
- =         OR (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
-         OR (f GLOB '?klmn*' = AND f GLOB 'jklm*')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
+       =   OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
    =       OR (d>=3D11.0 AND d<12.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -10920,9 +10920,9 @@ test:do_test(
  =         OR b=3D231
      =     OR b=3D212
          OR = (d>=3D36.0 AND d<37.0 AND d IS NOT NULL)
-     =     OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'klmno%')
          OR = c=3D30030
-         OR (g=3D'onmlkji' AND = f GLOB 'abcde*')
+         OR (g=3D'onmlkji'= AND f LIKE 'abcde%')
   ]])
    =  end, {
         -- = <where7-2.292.1>
@@ -10940,9 +10940,9 @@ = test:do_test(
          OR = b=3D231
          OR = b=3D212
          OR (d>=3D36.0 = AND d<37.0 AND d IS NOT NULL)
-         = OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR c=3D30030
-       =   OR (g=3D'onmlkji' AND f GLOB 'abcde*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'abcde%')
  =  ]])
     end, {
    =      -- <where7-2.292.2>
@@ -10996,8 = +10996,8 @@ test:do_test(
          = OR f=3D'vwxyzabcd'
          OR = b=3D762
          OR a=3D60
-=         OR (g=3D'srqponm' AND f GLOB = 'efghi*')
-         OR (g=3D'xwvutsr' AND = f GLOB 'efghi*')
+         OR (g=3D'srqponm'= AND f LIKE 'efghi%')
+         OR = (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.294.1>
@@ -11015,8 = +11015,8 @@ test:do_test(
          = OR f=3D'vwxyzabcd'
          OR = b=3D762
          OR a=3D60
-=         OR (g=3D'srqponm' AND f GLOB = 'efghi*')
-         OR (g=3D'xwvutsr' AND = f GLOB 'efghi*')
+         OR (g=3D'srqponm'= AND f LIKE 'efghi%')
+         OR = (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.294.2>
@@ -11029,14 = +11029,14 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'ghijk%')
          OR = a=3D3
          OR (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
-         OR = (f GLOB '?opqr*' AND f GLOB 'nopq*')
+       =   OR (f LIKE '_opqr%' AND f LIKE 'nopq%')
    =       OR b=3D498
        =   OR a=3D100
          OR = (d>=3D31.0 AND d<32.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'rstuv%')
          OR = a=3D69
   ]])
     end, = {
@@ -11050,14 +11050,14 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'ghijk%')
          OR = a=3D3
          OR (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
-         OR = (f GLOB '?opqr*' AND f GLOB 'nopq*')
+       =   OR (f LIKE '_opqr%' AND f LIKE 'nopq%')
    =       OR b=3D498
        =   OR a=3D100
          OR = (d>=3D31.0 AND d<32.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'rstuv%')
          OR = a=3D69
   ]])
     end, = {
@@ -11071,12 +11071,12 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'efghi%')
          OR = b=3D300
          OR (d>=3D7.0 AND = d<8.0 AND d IS NOT NULL)
          = OR b=3D58
          OR ((a BETWEEN 55 = AND 57) AND a!=3D56)
-         OR = (g=3D'nmlkjih' AND f GLOB 'defgh*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR b=3D286
        =   OR b=3D234
          OR ((a = BETWEEN 43 AND 45) AND a!=3D44)
@@ -11094,12 +11094,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D300
        =   OR (d>=3D7.0 AND d<8.0 AND d IS NOT NULL)
  =         OR b=3D58
      =     OR ((a BETWEEN 55 AND 57) AND a!=3D56)
-   =       OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'defgh%')
          OR = b=3D286
          OR = b=3D234
          OR ((a BETWEEN 43 = AND 45) AND a!=3D44)
@@ -11121,12 +11121,12 @@ = test:do_test(
          OR ((a = BETWEEN 72 AND 74) AND a!=3D73)
        =   OR ((a BETWEEN 23 AND 25) AND a!=3D24)
    =       OR b=3D594
-         = OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+       =   OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
    =       OR ((a BETWEEN 37 AND 39) AND = a!=3D38)
          OR ((a BETWEEN 56 = AND 58) AND a!=3D57)
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL)
- =         OR (f GLOB '?ghij*' AND f GLOB = 'fghi*')
+         OR (f LIKE '_ghij%' AND = f LIKE 'fghi%')
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
  =  ]])
     end, {
@@ -11144,12 = +11144,12 @@ test:do_test(
          = OR ((a BETWEEN 72 AND 74) AND a!=3D73)
      =     OR ((a BETWEEN 23 AND 25) AND a!=3D24)
  =         OR b=3D594
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
  =         OR ((a BETWEEN 37 AND 39) AND = a!=3D38)
          OR ((a BETWEEN 56 = AND 58) AND a!=3D57)
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL)
- =         OR (f GLOB '?ghij*' AND f GLOB = 'fghi*')
+         OR (f LIKE '_ghij%' AND = f LIKE 'fghi%')
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
  =  ]])
     end, {
@@ -11164,8 = +11164,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D949
- =         OR (g=3D'xwvutsr' AND f GLOB = 'fghij*')
-         OR (g=3D'vutsrqp' AND = f GLOB 'opqrs*')
+         OR (g=3D'xwvutsr'= AND f LIKE 'fghij%')
+         OR = (g=3D'vutsrqp' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.298.1>
@@ -11179,8 = +11179,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D949
- =         OR (g=3D'xwvutsr' AND f GLOB = 'fghij*')
-         OR (g=3D'vutsrqp' AND = f GLOB 'opqrs*')
+         OR (g=3D'xwvutsr'= AND f LIKE 'fghij%')
+         OR = (g=3D'vutsrqp' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.298.2>
@@ -11195,13 = +11195,13 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D960
  =         OR a=3D44
-       =   OR (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
  =         OR a=3D39
      =     OR b=3D828
          OR = ((a BETWEEN 3 AND 5) AND a!=3D4)
        =   OR d<0.0
          OR = b=3D770
-         OR (f GLOB '?tuvw*' AND = f GLOB 'stuv*')
+         OR (f LIKE = '_tuvw%' AND f LIKE 'stuv%')
        =   OR b=3D594
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
   ]])
@@ = -11218,13 +11218,13 @@ test:do_test(
      = SELECT a FROM t3
       WHERE = b=3D960
          OR a=3D44
-=         OR (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'ghijk%')
          OR = a=3D39
          OR = b=3D828
          OR ((a BETWEEN 3 = AND 5) AND a!=3D4)
          OR = d<0.0
          OR = b=3D770
-         OR (f GLOB '?tuvw*' AND = f GLOB 'stuv*')
+         OR (f LIKE = '_tuvw%' AND f LIKE 'stuv%')
        =   OR b=3D594
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
   ]])
@@ = -11278,7 +11278,7 @@ test:do_test(
      =  WHERE b=3D1081
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
        =   OR b=3D1004
-         OR = (g=3D'gfedcba' AND f GLOB 'nopqr*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 29 AND 31) AND = a!=3D30)
          OR = b=3D660
          OR = b=3D957
@@ -11298,7 +11298,7 @@ test:do_test(
  =      WHERE b=3D1081
        =   OR ((a BETWEEN 66 AND 68) AND a!=3D67)
    =       OR b=3D1004
-         = OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 29 AND 31) AND = a!=3D30)
          OR = b=3D660
          OR = b=3D957
@@ -11320,9 +11320,9 @@ test:do_test(
  =         OR f=3D'yzabcdefg'
    =       OR b=3D880
        =   OR a=3D63
-         OR (g=3D'ponmlkj'= AND f GLOB 'stuvw*')
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
-       =   OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
+   =       OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'ijklm%')
   ]])
     end, = {
         -- = <where7-2.302.1>
@@ -11340,9 +11340,9 @@ = test:do_test(
          OR = f=3D'yzabcdefg'
          OR = b=3D880
          OR a=3D63
-=         OR (g=3D'ponmlkj' AND f GLOB = 'stuvw*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'ghijk*')
-         OR (g=3D'hgfedcb'= AND f GLOB 'ijklm*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'stuvw%')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
+     =     OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
  =  ]])
     end, {
    =      -- <where7-2.302.2>
@@ -11357,12 = +11357,12 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D69
  =         OR b=3D1103
-       =   OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+     =     OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
  =         OR f=3D'wxyzabcde'
-     =     OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
-   =       OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+ =         OR (f LIKE '_tuvw%' AND f LIKE = 'stuv%')
+         OR (g=3D'gfedcba' AND f = LIKE 'klmno%')
          OR = f=3D'pqrstuvwx'
-         OR (g=3D'jihgfed' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'jihgfed' AND f LIKE 'vwxyz%')
      =     OR a=3D59
          OR = b=3D946
   ]])
@@ -11379,12 +11379,12 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D69
  =         OR b=3D1103
-       =   OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+     =     OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
  =         OR f=3D'wxyzabcde'
-     =     OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
-   =       OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+ =         OR (f LIKE '_tuvw%' AND f LIKE = 'stuv%')
+         OR (g=3D'gfedcba' AND f = LIKE 'klmno%')
          OR = f=3D'pqrstuvwx'
-         OR (g=3D'jihgfed' = AND f GLOB 'vwxyz*')
+         OR = (g=3D'jihgfed' AND f LIKE 'vwxyz%')
      =     OR a=3D59
          OR = b=3D946
   ]])
@@ -11400,7 +11400,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR a=3D68
        =   OR ((a BETWEEN 14 AND 16) AND a!=3D15)
  =  ]])
@@ -11416,7 +11416,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR a=3D68
        =   OR ((a BETWEEN 14 AND 16) AND a!=3D15)
  =  ]])
@@ -11432,7 +11432,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D10.0 AND = d<11.0 AND d IS NOT NULL)
-         OR = (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.305.1>
@@ -11446,7 = +11446,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D10.0 AND = d<11.0 AND d IS NOT NULL)
-         OR = (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.305.2>
@@ -11526,12 = +11526,12 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 21 AND = 23) AND a!=3D22)
-         OR (g=3D'vutsrqp'= AND f GLOB 'opqrs*')
+         OR = (g=3D'vutsrqp' AND f LIKE 'opqrs%')
      =     OR c=3D14014
          = OR b=3D990
-         OR (g=3D'nmlkjih' AND = f GLOB 'efghi*')
+         OR (g=3D'nmlkjih'= AND f LIKE 'efghi%')
          OR = c=3D14014
-         OR (g=3D'vutsrqp' AND = f GLOB 'nopqr*')
+         OR (g=3D'vutsrqp'= AND f LIKE 'nopqr%')
          OR = b=3D740
          OR = c=3D3003
   ]])
@@ -11547,12 +11547,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 21 AND 23) AND = a!=3D22)
-         OR (g=3D'vutsrqp' AND f = GLOB 'opqrs*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'opqrs%')
          OR = c=3D14014
          OR = b=3D990
-         OR (g=3D'nmlkjih' AND f = GLOB 'efghi*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'efghi%')
          OR = c=3D14014
-         OR (g=3D'vutsrqp' AND = f GLOB 'nopqr*')
+         OR (g=3D'vutsrqp'= AND f LIKE 'nopqr%')
          OR = b=3D740
          OR = c=3D3003
   ]])
@@ -11640,7 +11640,7 @@ = test:do_test(
          OR = a=3D4
          OR = b=3D311
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
-         OR = (g=3D'tsrqpon' AND f GLOB 'bcdef*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
    =       OR b=3D396
  =  ]])
     end, {
@@ -11663,7 = +11663,7 @@ test:do_test(
          = OR a=3D4
          OR = b=3D311
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
-         OR = (g=3D'tsrqpon' AND f GLOB 'bcdef*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
    =       OR b=3D396
  =  ]])
     end, {
@@ -11679,7 = +11679,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D82
  =         OR b=3D333
-       =   OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+     =     OR (f LIKE '_xyza%' AND f LIKE 'wxyz%')
  =         OR b=3D99
      =     OR a=3D63
          OR = a=3D35
@@ -11698,7 +11698,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE a=3D82
          OR = b=3D333
-         OR (f GLOB '?xyza*' AND = f GLOB 'wxyz*')
+         OR (f LIKE = '_xyza%' AND f LIKE 'wxyz%')
        =   OR b=3D99
          OR = a=3D63
          OR a=3D35
@@= -11803,9 +11803,9 @@ test:do_test(
      =     OR f=3D'hijklmnop'
        =   OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR (d>=3D26.0 AND = d<27.0 AND d IS NOT NULL)
-         OR = (g=3D'ihgfedc' AND f GLOB 'cdefg*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
-     =     OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+   =       OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'wxyza%')
+         OR (f LIKE '_mnop%' = AND f LIKE 'lmno%')
          OR = b=3D817
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
   ]])
@@ = -11824,9 +11824,9 @@ test:do_test(
        =   OR f=3D'hijklmnop'
          = OR (d>=3D45.0 AND d<46.0 AND d IS NOT NULL)
  =         OR (d>=3D26.0 AND d<27.0 AND d IS NOT = NULL)
-         OR (g=3D'ihgfedc' AND f = GLOB 'cdefg*')
-         OR (g=3D'utsrqpo' = AND f GLOB 'wxyza*')
-         OR (f GLOB = '?mnop*' AND f GLOB 'lmno*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'cdefg%')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
+     =     OR (f LIKE '_mnop%' AND f LIKE 'lmno%')
  =         OR b=3D817
      =     OR (d>=3D20.0 AND d<21.0 AND d IS NOT = NULL)
   ]])
@@ -11841,12 +11841,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR b=3D311
        =   OR (d>=3D61.0 AND d<62.0 AND d IS NOT = NULL)
          OR a=3D48
- =         OR (g=3D'ponmlkj' AND f GLOB = 'rstuv*')
-         OR (g=3D'ponmlkj' AND = f GLOB 'vwxyz*')
+         OR (g=3D'ponmlkj'= AND f LIKE 'rstuv%')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
      =     OR c=3D32032
          = OR f=3D'opqrstuvw'
          OR = b=3D300
@@ -11864,12 +11864,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR b=3D311
        =   OR (d>=3D61.0 AND d<62.0 AND d IS NOT = NULL)
          OR a=3D48
- =         OR (g=3D'ponmlkj' AND f GLOB = 'rstuv*')
-         OR (g=3D'ponmlkj' AND = f GLOB 'vwxyz*')
+         OR (g=3D'ponmlkj'= AND f LIKE 'rstuv%')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
      =     OR c=3D32032
          = OR f=3D'opqrstuvw'
          OR = b=3D300
@@ -11889,7 +11889,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE (d>=3D95.0 AND d<96.0 AND d IS NOT = NULL)
          OR b=3D1070
-=         OR (g=3D'edcbazy' AND f GLOB = 'vwxyz*')
+         OR (g=3D'edcbazy' AND = f LIKE 'vwxyz%')
          OR = (d>=3D45.0 AND d<46.0 AND d IS NOT NULL)
    =       OR (d>=3D22.0 AND d<23.0 AND d IS NOT = NULL)
          OR a=3D22
@@ = -11912,7 +11912,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE (d>=3D95.0 AND = d<96.0 AND d IS NOT NULL)
        =   OR b=3D1070
-         OR = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
    =       OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR (d>=3D22.0 AND = d<23.0 AND d IS NOT NULL)
        =   OR a=3D22
@@ -11934,7 +11934,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D8.0 AND d<9.0 = AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR a=3D21
        =   OR b=3D1026
          OR ((a = BETWEEN 34 AND 36) AND a!=3D35)
@@ -11952,7 +11952,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D8.0 AND d<9.0 = AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR a=3D21
        =   OR b=3D1026
          OR ((a = BETWEEN 34 AND 36) AND a!=3D35)
@@ -11975,7 +11975,7 @@ = test:do_test(
          OR = a=3D29
          OR = c=3D15015
          OR = a=3D87
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
   ]])
    =  end, {
         -- = <where7-2.319.1>
@@ -11994,7 +11994,7 @@ = test:do_test(
          OR = a=3D29
          OR = c=3D15015
          OR = a=3D87
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
   ]])
    =  end, {
         -- = <where7-2.319.2>
@@ -12042,7 +12042,7 @@ = test:do_test(
          OR = a=3D91
          OR = b=3D1015
          OR (d>=3D12.0 = AND d<13.0 AND d IS NOT NULL)
-         = OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
    =       OR ((a BETWEEN 91 AND 93) AND = a!=3D92)
   ]])
     end, = {
@@ -12061,7 +12061,7 @@ test:do_test(
  =         OR a=3D91
      =     OR b=3D1015
          = OR (d>=3D12.0 AND d<13.0 AND d IS NOT NULL)
-   =       OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'cdefg%')
          OR ((a BETWEEN 91 = AND 93) AND a!=3D92)
   ]])
    =  end, {
@@ -12076,12 +12076,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D7
-   =       OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+ =         OR (g=3D'yxwvuts' AND f LIKE = 'bcdef%')
          OR = b=3D1015
          OR = b=3D839
-         OR (g=3D'rqponml' AND f = GLOB 'klmno*')
+         OR (g=3D'rqponml' = AND f LIKE 'klmno%')
          OR = b=3D410
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
        =   OR a=3D71
   ]])
    =  end, {
@@ -12096,12 +12096,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D7
-   =       OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+ =         OR (g=3D'yxwvuts' AND f LIKE = 'bcdef%')
          OR = b=3D1015
          OR = b=3D839
-         OR (g=3D'rqponml' AND f = GLOB 'klmno*')
+         OR (g=3D'rqponml' = AND f LIKE 'klmno%')
          OR = b=3D410
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
        =   OR a=3D71
   ]])
    =  end, {
@@ -12118,12 +12118,12 @@ = test:do_test(
       WHERE = b=3D880
          OR = b=3D982
          OR a=3D52
-=         OR (g=3D'onmlkji' AND f GLOB = 'abcde*')
+         OR (g=3D'onmlkji' AND = f LIKE 'abcde%')
          OR = a=3D24
          OR ((a BETWEEN 47 = AND 49) AND a!=3D48)
-         OR = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
-     =     OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
+   =       OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'cdefg%')
+         OR (f LIKE '_zabc%' = AND f LIKE 'yzab%')
   ]])
    =  end, {
         -- = <where7-2.323.1>
@@ -12139,12 +12139,12 @@ = test:do_test(
       WHERE = b=3D880
          OR = b=3D982
          OR a=3D52
-=         OR (g=3D'onmlkji' AND f GLOB = 'abcde*')
+         OR (g=3D'onmlkji' AND = f LIKE 'abcde%')
          OR = a=3D24
          OR ((a BETWEEN 47 = AND 49) AND a!=3D48)
-         OR = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
-     =     OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
+   =       OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'cdefg%')
+         OR (f LIKE '_zabc%' = AND f LIKE 'yzab%')
   ]])
    =  end, {
         -- = <where7-2.323.2>
@@ -12158,9 +12158,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 67 AND 69) AND = a!=3D68)
-         OR (g=3D'utsrqpo' AND f = GLOB 'wxyza*')
-         OR (g=3D'lkjihgf' = AND f GLOB 'pqrst*')
-         OR (f GLOB = '?ghij*' AND f GLOB 'fghi*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'wxyza%')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
+     =     OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
  =  ]])
     end, {
    =      -- <where7-2.324.1>
@@ -12174,9 = +12174,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 67 AND = 69) AND a!=3D68)
-         OR (g=3D'utsrqpo'= AND f GLOB 'wxyza*')
-         OR = (g=3D'lkjihgf' AND f GLOB 'pqrst*')
-       =   OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+     =     OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
+   =       OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
+ =         OR (f LIKE '_ghij%' AND f LIKE = 'fghi%')
   ]])
     end, = {
         -- = <where7-2.324.2>
@@ -12192,7 +12192,7 @@ = test:do_test(
       WHERE = f=3D'abcdefghi'
          OR = a=3D5
          OR b=3D124
- =         OR (g=3D'kjihgfe' AND f GLOB = 'rstuv*')
+         OR (g=3D'kjihgfe' AND = f LIKE 'rstuv%')
          OR = b=3D432
          OR = 1000000<b
          OR = a=3D58
@@ -12214,7 +12214,7 @@ test:do_test(
  =      WHERE f=3D'abcdefghi'
      =     OR a=3D5
          OR = b=3D124
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'rstuv%')
          OR = b=3D432
          OR = 1000000<b
          OR = a=3D58
@@ -12271,7 +12271,7 @@ test:do_test(
  =         OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR (d>=3D28.0 AND = d<29.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 63 AND 65) AND a!=3D64)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR = f=3D'uvwxyzabc'
   ]])
    =  end, {
@@ -12293,7 +12293,7 @@ = test:do_test(
          OR = (d>=3D54.0 AND d<55.0 AND d IS NOT NULL)
    =       OR (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 63 AND = 65) AND a!=3D64)
-         OR (g=3D'kjihgfe'= AND f GLOB 'qrstu*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'qrstu%')
      =     OR f=3D'uvwxyzabc'
  =  ]])
     end, {
@@ -12308,16 = +12308,16 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 57 AND = 59) AND a!=3D58)
-         OR (f GLOB = '?pqrs*' AND f GLOB 'opqr*')
+         OR = (f LIKE '_pqrs%' AND f LIKE 'opqr%')
      =     OR b=3D564
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 56 AND 58) AND = a!=3D57)
          OR = b=3D77
-         OR (g=3D'nmlkjih' AND f = GLOB 'efghi*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'efghi%')
          OR = b=3D968
          OR = b=3D847
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
-         OR (g=3D'lkjihgf' = AND f GLOB 'opqrs*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'hijkl%')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.328.1>
@@ -12331,16 = +12331,16 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 57 AND = 59) AND a!=3D58)
-         OR (f GLOB = '?pqrs*' AND f GLOB 'opqr*')
+         OR = (f LIKE '_pqrs%' AND f LIKE 'opqr%')
      =     OR b=3D564
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 56 AND 58) AND = a!=3D57)
          OR = b=3D77
-         OR (g=3D'nmlkjih' AND f = GLOB 'efghi*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'efghi%')
          OR = b=3D968
          OR = b=3D847
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
-         OR (g=3D'lkjihgf' = AND f GLOB 'opqrs*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'hijkl%')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'opqrs%')
  =  ]])
     end, {
    =      -- <where7-2.328.2>
@@ -12421,7 = +12421,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D72.0 AND = d<73.0 AND d IS NOT NULL)
        =   OR b=3D693
-         OR = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR b=3D968
        =   OR ((a BETWEEN 63 AND 65) AND a!=3D64)
    =       OR b=3D132
@@ -12441,7 +12441,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D72.0 AND = d<73.0 AND d IS NOT NULL)
        =   OR b=3D693
-         OR = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR b=3D968
        =   OR ((a BETWEEN 63 AND 65) AND a!=3D64)
    =       OR b=3D132
@@ -12496,11 +12496,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D190
-   =       OR (g=3D'mlkjihg' AND f GLOB 'hijkl*')
+ =         OR (g=3D'mlkjihg' AND f LIKE = 'hijkl%')
          OR = b=3D924
          OR (d>=3D40.0 = AND d<41.0 AND d IS NOT NULL)
        =   OR b=3D759
-         OR = (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'bcdef%')
  =  ]])
     end, {
    =      -- <where7-2.333.1>
@@ -12514,11 = +12514,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D190
- =         OR (g=3D'mlkjihg' AND f GLOB = 'hijkl*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'hijkl%')
          OR = b=3D924
          OR (d>=3D40.0 = AND d<41.0 AND d IS NOT NULL)
        =   OR b=3D759
-         OR = (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'bcdef%')
  =  ]])
     end, {
    =      -- <where7-2.333.2>
@@ -12576,12 = +12576,12 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE c=3D26026
- =         OR (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'ijklm*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'uvwxy%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ijklm%')
      =     OR c=3D17017
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
-       =   OR (g=3D'srqponm' AND f GLOB 'ghijk*')
-     =     OR (g=3D'jihgfed' AND f GLOB 'zabcd*')
+   =       OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+ =         OR (g=3D'srqponm' AND f LIKE = 'ghijk%')
+         OR (g=3D'jihgfed' AND = f LIKE 'zabcd%')
          OR ((a = BETWEEN 2 AND 4) AND a!=3D3)
        =   OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
   ]])
@@ -12597,12 +12597,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE c=3D26026
- =         OR (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'ijklm*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'uvwxy%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ijklm%')
      =     OR c=3D17017
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
-       =   OR (g=3D'srqponm' AND f GLOB 'ghijk*')
-     =     OR (g=3D'jihgfed' AND f GLOB 'zabcd*')
+   =       OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+ =         OR (g=3D'srqponm' AND f LIKE = 'ghijk%')
+         OR (g=3D'jihgfed' AND = f LIKE 'zabcd%')
          OR ((a = BETWEEN 2 AND 4) AND a!=3D3)
        =   OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
   ]])
@@ -12662,9 +12662,9 @@ = test:do_test(
          OR = (d>=3D100.0 AND d<101.0 AND d IS NOT NULL)
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR b=3D300
- =         OR (g=3D'yxwvuts' AND f GLOB = 'cdefg*')
+         OR (g=3D'yxwvuts' AND = f LIKE 'cdefg%')
          OR = a=3D41
-         OR (g=3D'onmlkji' AND f = GLOB 'xyzab*')
+         OR (g=3D'onmlkji' = AND f LIKE 'xyzab%')
          OR = b=3D135
          OR = b=3D605
   ]])
@@ -12684,9 +12684,9 @@ = test:do_test(
          OR = (d>=3D100.0 AND d<101.0 AND d IS NOT NULL)
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR b=3D300
- =         OR (g=3D'yxwvuts' AND f GLOB = 'cdefg*')
+         OR (g=3D'yxwvuts' AND = f LIKE 'cdefg%')
          OR = a=3D41
-         OR (g=3D'onmlkji' AND f = GLOB 'xyzab*')
+         OR (g=3D'onmlkji' = AND f LIKE 'xyzab%')
          OR = b=3D135
          OR = b=3D605
   ]])
@@ -12701,16 +12701,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?stuv*' AND f GLOB 'rstu*')
-       =   OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
-     =     OR (g=3D'srqponm' AND f GLOB 'efghi*')
-   =       OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+ =      WHERE (f LIKE '_stuv%' AND f LIKE = 'rstu%')
+         OR (f LIKE '_fghi%' AND = f LIKE 'efgh%')
+         OR (g=3D'srqponm' = AND f LIKE 'efghi%')
+         OR = (g=3D'qponmlk' AND f LIKE 'pqrst%')
      =     OR b=3D762
          OR = b=3D484
          OR = b=3D190
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
          OR = (d>=3D74.0 AND d<75.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'jklmn%')
          OR = b=3D1023
   ]])
     end, = {
@@ -12724,16 +12724,16 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (f GLOB '?stuv*' AND f = GLOB 'rstu*')
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
-         OR = (g=3D'srqponm' AND f GLOB 'efghi*')
-       =   OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =  WHERE (f LIKE '_stuv%' AND f LIKE 'rstu%')
+   =       OR (f LIKE '_fghi%' AND f LIKE 'efgh%')
+ =         OR (g=3D'srqponm' AND f LIKE = 'efghi%')
+         OR (g=3D'qponmlk' AND = f LIKE 'pqrst%')
          OR = b=3D762
          OR = b=3D484
          OR = b=3D190
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
          OR = (d>=3D74.0 AND d<75.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'jklmn%')
          OR = b=3D1023
   ]])
     end, = {
@@ -12747,7 +12747,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'efghi%')
          OR = a=3D34
          OR = f=3D'rstuvwxyz'
          OR = (d>=3D10.0 AND d<11.0 AND d IS NOT NULL)
@@ -12764,7 = +12764,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'efghi%')
          OR = a=3D34
          OR = f=3D'rstuvwxyz'
          OR = (d>=3D10.0 AND d<11.0 AND d IS NOT NULL)
@@ -12783,7 = +12783,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D37.0 AND = d<38.0 AND d IS NOT NULL)
        =   OR b=3D1004
-         OR = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR g IS NULL
  =  ]])
     end, {
@@ -12799,7 = +12799,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D37.0 AND = d<38.0 AND d IS NOT NULL)
        =   OR b=3D1004
-         OR = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR g IS NULL
  =  ]])
     end, {
@@ -12822,8 = +12822,8 @@ test:do_test(
          = OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
  =         OR a=3D44
      =     OR a=3D23
-         OR = (g=3D'ihgfedc' AND f GLOB 'abcde*')
-       =   OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'abcde%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
   ]])
     end, = {
         -- = <where7-2.341.1>
@@ -12845,8 +12845,8 @@ = test:do_test(
          OR = (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
    =       OR a=3D44
        =   OR a=3D23
-         OR (g=3D'ihgfedc'= AND f GLOB 'abcde*')
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'abcde%')
+     =     OR (g=3D'rqponml' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.341.2>
@@ -12864,8 = +12864,8 @@ test:do_test(
          = OR a=3D11
          OR ((a BETWEEN 12 = AND 14) AND a!=3D13)
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
-         = OR (g=3D'ihgfedc' AND f GLOB 'bcdef*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'abcde*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
+   =       OR (g=3D'ihgfedc' AND f LIKE = 'abcde%')
          OR = a=3D13
          OR = a=3D15
          OR (d>=3D29.0 AND = d<30.0 AND d IS NOT NULL)
@@ -12887,8 +12887,8 @@ = test:do_test(
          OR = a=3D11
          OR ((a BETWEEN 12 = AND 14) AND a!=3D13)
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
-         = OR (g=3D'ihgfedc' AND f GLOB 'bcdef*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'abcde*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
+   =       OR (g=3D'ihgfedc' AND f LIKE = 'abcde%')
          OR = a=3D13
          OR = a=3D15
          OR (d>=3D29.0 AND = d<30.0 AND d IS NOT NULL)
@@ -13019,16 +13019,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'gfedcba' AND f GLOB 'klmno*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 9 AND 11) AND a!=3D10)
- =         OR (g=3D'rqponml' AND f GLOB = 'hijkl*')
+         OR (g=3D'rqponml' AND = f LIKE 'hijkl%')
          OR = a=3D48
          OR = b=3D113
          OR ((a BETWEEN 20 = AND 22) AND a!=3D21)
          OR = b=3D880
          OR ((a BETWEEN 85 = AND 87) AND a!=3D86)
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
   ]])
     end, = {
         -- = <where7-2.346.1>
@@ -13041,16 +13041,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'gfedcba' AND f GLOB 'klmno*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 9 AND 11) AND a!=3D10)
- =         OR (g=3D'rqponml' AND f GLOB = 'hijkl*')
+         OR (g=3D'rqponml' AND = f LIKE 'hijkl%')
          OR = a=3D48
          OR = b=3D113
          OR ((a BETWEEN 20 = AND 22) AND a!=3D21)
          OR = b=3D880
          OR ((a BETWEEN 85 = AND 87) AND a!=3D86)
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
   ]])
     end, = {
         -- = <where7-2.346.2>
@@ -13065,10 +13065,10 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D517
  =         OR b=3D187
-       =   OR (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
  =         OR b=3D1092
      =     OR ((a BETWEEN 84 AND 86) AND a!=3D85)
-   =       OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+ =         OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.347.1>
@@ -13083,10 +13083,10 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D517
  =         OR b=3D187
-       =   OR (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
  =         OR b=3D1092
      =     OR ((a BETWEEN 84 AND 86) AND a!=3D85)
-   =       OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+ =         OR (g=3D'ponmlkj' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.347.2>
@@ -13259,7 +13259,7 @@ = test:do_test(
          OR = a=3D30
          OR = c=3D3003
          OR (d>=3D88.0 = AND d<89.0 AND d IS NOT NULL)
-         = OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
+       =   OR (f LIKE '_yzab%' AND f LIKE 'xyza%')
    =       OR b=3D564
        =   OR b=3D55
          OR = a=3D38
@@ -13281,7 +13281,7 @@ test:do_test(
  =         OR a=3D30
      =     OR c=3D3003
          = OR (d>=3D88.0 AND d<89.0 AND d IS NOT NULL)
-   =       OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
+ =         OR (f LIKE '_yzab%' AND f LIKE = 'xyza%')
          OR = b=3D564
          OR = b=3D55
          OR a=3D38
@@= -13328,7 +13328,7 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = b=3D792
-         OR (g=3D'wvutsrq' AND f = GLOB 'jklmn*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'jklmn%')
   ]])
    =  end, {
         -- = <where7-2.354.1>
@@ -13342,7 +13342,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D792
-   =       OR (g=3D'wvutsrq' AND f GLOB 'jklmn*')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'jklmn%')
   ]])
     end, = {
         -- = <where7-2.354.2>
@@ -13357,9 +13357,9 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D73.0 AND = d<74.0 AND d IS NOT NULL)
        =   OR c=3D21021
-         OR = (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR f=3D'zabcdefgh'
-       =   OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+     =     OR (g=3D'yxwvuts' AND f LIKE 'bcdef%')
  =         OR b=3D781
      =     OR a=3D64
          OR = (d>=3D11.0 AND d<12.0 AND d IS NOT NULL)
@@ -13377,9 = +13377,9 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D73.0 AND = d<74.0 AND d IS NOT NULL)
        =   OR c=3D21021
-         OR = (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR f=3D'zabcdefgh'
-       =   OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+     =     OR (g=3D'yxwvuts' AND f LIKE 'bcdef%')
  =         OR b=3D781
      =     OR a=3D64
          OR = (d>=3D11.0 AND d<12.0 AND d IS NOT NULL)
@@ -13395,12 = +13395,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'pqrst%')
          OR = (d>=3D90.0 AND d<91.0 AND d IS NOT NULL)
    =       OR a=3D34
-         = OR (g=3D'rqponml' AND f GLOB 'ijklm*')
-       =   OR (g=3D'rqponml' AND f GLOB 'klmno*')
-     =     OR (g=3D'srqponm' AND f GLOB 'defgh*')
+   =       OR (g=3D'rqponml' AND f LIKE 'ijklm%')
+ =         OR (g=3D'rqponml' AND f LIKE = 'klmno%')
+         OR (g=3D'srqponm' AND = f LIKE 'defgh%')
          OR = b=3D319
          OR = b=3D330
          OR ((a BETWEEN 28 = AND 30) AND a!=3D29)
@@ -13416,12 +13416,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+     =  WHERE (g=3D'lkjihgf' AND f LIKE 'pqrst%')
    =       OR (d>=3D90.0 AND d<91.0 AND d IS NOT = NULL)
          OR a=3D34
- =         OR (g=3D'rqponml' AND f GLOB = 'ijklm*')
-         OR (g=3D'rqponml' AND = f GLOB 'klmno*')
-         OR (g=3D'srqponm'= AND f GLOB 'defgh*')
+         OR = (g=3D'rqponml' AND f LIKE 'ijklm%')
+       =   OR (g=3D'rqponml' AND f LIKE 'klmno%')
+     =     OR (g=3D'srqponm' AND f LIKE 'defgh%')
  =         OR b=3D319
      =     OR b=3D330
          OR = ((a BETWEEN 28 AND 30) AND a!=3D29)
@@ -13437,8 +13437,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'pqrst*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
          OR = a=3D45
          OR (d>=3D81.0 AND = d<82.0 AND d IS NOT NULL)
   ]])
@@ = -13453,8 +13453,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'pqrst*')
-         OR (f GLOB '?qrst*' = AND f GLOB 'pqrs*')
+      WHERE (g=3D'qponmlk' = AND f LIKE 'pqrst%')
+         OR (f LIKE = '_qrst%' AND f LIKE 'pqrs%')
        =   OR a=3D45
          OR = (d>=3D81.0 AND d<82.0 AND d IS NOT NULL)
  =  ]])
@@ -13470,7 +13470,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D53.0 AND = d<54.0 AND d IS NOT NULL)
-         OR = (g=3D'nmlkjih' AND f GLOB 'cdefg*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'cdefg%')
    =       OR b=3D165
        =   OR b=3D836
   ]])
@@ -13486,7 = +13486,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D53.0 AND = d<54.0 AND d IS NOT NULL)
-         OR = (g=3D'nmlkjih' AND f GLOB 'cdefg*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'cdefg%')
    =       OR b=3D165
        =   OR b=3D836
   ]])
@@ -13503,7 = +13503,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1034
  =         OR f=3D'vwxyzabcd'
-     =     OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
          OR ((a BETWEEN 57 = AND 59) AND a!=3D58)
   ]])
    =  end, {
@@ -13519,7 +13519,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D1034
  =         OR f=3D'vwxyzabcd'
-     =     OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
          OR ((a BETWEEN 57 = AND 59) AND a!=3D58)
   ]])
    =  end, {
@@ -13575,12 +13575,12 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D37
  =         OR b=3D88
-       =   OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+     =     OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
  =         OR c=3D23023
      =     OR (d>=3D67.0 AND d<68.0 AND d IS NOT = NULL)
          OR = a=3D56
          OR ((a BETWEEN 13 = AND 15) AND a!=3D14)
-         OR (f GLOB = '?rstu*' AND f GLOB 'qrst*')
+         OR = (f LIKE '_rstu%' AND f LIKE 'qrst%')
      =     OR f=3D'ijklmnopq'
        =   OR ((a BETWEEN 85 AND 87) AND a!=3D86)
  =  ]])
@@ -13597,12 +13597,12 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D37
  =         OR b=3D88
-       =   OR (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+     =     OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
  =         OR c=3D23023
      =     OR (d>=3D67.0 AND d<68.0 AND d IS NOT = NULL)
          OR = a=3D56
          OR ((a BETWEEN 13 = AND 15) AND a!=3D14)
-         OR (f GLOB = '?rstu*' AND f GLOB 'qrst*')
+         OR = (f LIKE '_rstu%' AND f LIKE 'qrst%')
      =     OR f=3D'ijklmnopq'
        =   OR ((a BETWEEN 85 AND 87) AND a!=3D86)
  =  ]])
@@ -13620,7 +13620,7 @@ = test:do_test(
       WHERE (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 22 AND 24) AND a!=3D23)
    =       OR a=3D74
-         = OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 42 AND 44) AND = a!=3D43)
   ]])
     end, = {
@@ -13637,7 +13637,7 @@ test:do_test(
  =      WHERE (d>=3D97.0 AND d<98.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 22 AND = 24) AND a!=3D23)
          OR = a=3D74
-         OR (g=3D'utsrqpo' AND f = GLOB 'uvwxy*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'uvwxy%')
          OR ((a = BETWEEN 42 AND 44) AND a!=3D43)
  =  ]])
     end, {
@@ -13747,13 = +13747,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'jihgfed' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'vwxyz%')
          OR ((a = BETWEEN 2 AND 4) AND a!=3D3)
        =   OR b=3D212
-         OR = (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'bcdef%')
    =       OR ((a BETWEEN 24 AND 26) AND = a!=3D25)
          OR = a=3D20
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = b=3D627
   ]])
     end, = {
@@ -13767,13 +13767,13 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'jihgfed' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'vwxyz%')
          OR ((a = BETWEEN 2 AND 4) AND a!=3D3)
        =   OR b=3D212
-         OR = (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'bcdef%')
    =       OR ((a BETWEEN 24 AND 26) AND = a!=3D25)
          OR = a=3D20
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = b=3D627
   ]])
     end, = {
@@ -13787,7 +13787,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?jklm*' AND f = GLOB 'ijkl*')
+      WHERE (f LIKE '_jklm%' AND = f LIKE 'ijkl%')
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR b=3D157
        =   OR b=3D1026
@@ -13803,7 +13803,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?jklm*' AND f GLOB 'ijkl*')
+      WHERE = (f LIKE '_jklm%' AND f LIKE 'ijkl%')
      =     OR (d>=3D77.0 AND d<78.0 AND d IS NOT = NULL)
          OR = b=3D157
          OR = b=3D1026
@@ -13823,10 +13823,10 @@ = test:do_test(
          OR = a=3D16
          OR ((a BETWEEN 80 = AND 82) AND a!=3D81)
          OR ((a = BETWEEN 31 AND 33) AND a!=3D32)
-         = OR (g=3D'wvutsrq' AND f GLOB 'lmnop*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'lmnop%')
    =       OR f=3D'zabcdefgh'
-       =   OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
-     =     OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+   =       OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
+ =         OR (g=3D'xwvutsr' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.368.1>
@@ -13843,10 +13843,10 @@ = test:do_test(
          OR = a=3D16
          OR ((a BETWEEN 80 = AND 82) AND a!=3D81)
          OR ((a = BETWEEN 31 AND 33) AND a!=3D32)
-         = OR (g=3D'wvutsrq' AND f GLOB 'lmnop*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'lmnop%')
    =       OR f=3D'zabcdefgh'
-       =   OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
-     =     OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+   =       OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
+ =         OR (g=3D'xwvutsr' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.368.2>
@@ -13895,11 +13895,11 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE f IS NULL
  =         OR a=3D37
-       =   OR (g=3D'onmlkji' AND f GLOB 'wxyza*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
  =         OR ((a BETWEEN 55 AND 57) AND = a!=3D56)
          OR = b=3D168
          OR b=3D22
-=         OR (g=3D'utsrqpo' AND f GLOB = 'vwxyz*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'vwxyz%')
          OR = b=3D506
   ]])
     end, = {
@@ -13915,11 +13915,11 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE f IS NULL
          OR = a=3D37
-         OR (g=3D'onmlkji' AND f = GLOB 'wxyza*')
+         OR (g=3D'onmlkji' = AND f LIKE 'wxyza%')
          OR ((a = BETWEEN 55 AND 57) AND a!=3D56)
        =   OR b=3D168
          OR = b=3D22
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = b=3D506
   ]])
     end, = {
@@ -13935,11 +13935,11 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE a=3D29
          OR ((a = BETWEEN 26 AND 28) AND a!=3D27)
-         = OR (g=3D'kjihgfe' AND f GLOB 'rstuv*')
-       =   OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
-     =     OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+   =       OR (g=3D'kjihgfe' AND f LIKE 'rstuv%')
+ =         OR (g=3D'qponmlk' AND f LIKE = 'qrstu%')
+         OR (f LIKE '_uvwx%' = AND f LIKE 'tuvw%')
          OR = b=3D209
-         OR (f GLOB '?abcd*' AND = f GLOB 'zabc*')
+         OR (f LIKE = '_abcd%' AND f LIKE 'zabc%')
        =   OR b=3D146
   ]])
    =  end, {
@@ -13955,11 +13955,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D29
  =         OR ((a BETWEEN 26 AND 28) AND = a!=3D27)
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
-         OR (g=3D'qponmlk' = AND f GLOB 'qrstu*')
-         OR (f GLOB = '?uvwx*' AND f GLOB 'tuvw*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'rstuv%')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
+     =     OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
  =         OR b=3D209
-       =   OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
+     =     OR (f LIKE '_abcd%' AND f LIKE 'zabc%')
  =         OR b=3D146
  =  ]])
     end, {
@@ -14017,7 = +14017,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = (d>=3D52.0 AND d<53.0 AND d IS NOT NULL)
    =       OR b=3D113
        =   OR ((a BETWEEN 40 AND 42) AND a!=3D41)
@@ -14035,7 = +14035,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = (d>=3D52.0 AND d<53.0 AND d IS NOT NULL)
    =       OR b=3D113
        =   OR ((a BETWEEN 40 AND 42) AND a!=3D41)
@@ -14081,7 = +14081,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'rqponml' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'rqponml' AND f = LIKE 'ijklm%')
          OR = a=3D99
          OR = a=3D100
          OR = b=3D429
@@ -14104,7 +14104,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'rqponml' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'rqponml' AND f = LIKE 'ijklm%')
          OR = a=3D99
          OR = a=3D100
          OR = b=3D429
@@ -14164,9 +14164,9 @@ test:do_test(
  =         OR c=3D6006
      =     OR a=3D18
          OR = c=3D24024
-         OR (g=3D'wvutsrq' AND = f GLOB 'jklmn*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'jklmn%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'rstuv%')
          OR = c=3D19019
          OR (d>=3D87.0 = AND d<88.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 44 AND 46) AND a!=3D45)
@@ -14187,9 = +14187,9 @@ test:do_test(
          = OR c=3D6006
          OR = a=3D18
          OR = c=3D24024
-         OR (g=3D'wvutsrq' AND = f GLOB 'jklmn*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'jklmn%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'rstuv%')
          OR = c=3D19019
          OR (d>=3D87.0 = AND d<88.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 44 AND 46) AND a!=3D45)
@@ -14243,7 = +14243,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D99
  =         OR ((a BETWEEN 85 AND 87) AND = a!=3D86)
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
   ]])
  =    end, {
         -- = <where7-2.379.1>
@@ -14258,7 +14258,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D99
  =         OR ((a BETWEEN 85 AND 87) AND = a!=3D86)
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
   ]])
  =    end, {
         -- = <where7-2.379.2>
@@ -14271,7 +14271,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?hijk*' AND f GLOB 'ghij*')
+      WHERE = (f LIKE '_hijk%' AND f LIKE 'ghij%')
      =     OR ((a BETWEEN 79 AND 81) AND a!=3D80)
  =         OR b=3D715
      =     OR ((a BETWEEN 23 AND 25) AND a!=3D24)
@@ = -14287,7 +14287,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?hijk*' AND f GLOB = 'ghij*')
+      WHERE (f LIKE '_hijk%' AND f = LIKE 'ghij%')
          OR ((a = BETWEEN 79 AND 81) AND a!=3D80)
        =   OR b=3D715
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
@@ -14304,7 +14304,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D97.0 AND = d<98.0 AND d IS NOT NULL)
-         OR = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
    =       OR a=3D46
        =   OR (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
   ]])
@@ -14320,7 +14320,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D97.0 AND = d<98.0 AND d IS NOT NULL)
-         OR = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
    =       OR a=3D46
        =   OR (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
   ]])
@@ -14335,7 +14335,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 97 AND 99) AND = a!=3D98)
          OR (d>=3D18.0 = AND d<19.0 AND d IS NOT NULL)
        =   OR b=3D1056
@@ -14352,7 +14352,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR ((a BETWEEN 97 AND 99) AND = a!=3D98)
          OR (d>=3D18.0 = AND d<19.0 AND d IS NOT NULL)
        =   OR b=3D1056
@@ -14453,7 +14453,7 @@ = test:do_test(
          OR ((a = BETWEEN 39 AND 41) AND a!=3D40)
        =   OR b=3D242
          OR ((a = BETWEEN 32 AND 34) AND a!=3D33)
-         = OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
    =       OR b=3D300
        =   OR ((a BETWEEN 24 AND 26) AND a!=3D25)
    =       OR (d>=3D21.0 AND d<22.0 AND d IS NOT = NULL)
@@ -14476,7 +14476,7 @@ test:do_test(
  =         OR ((a BETWEEN 39 AND 41) AND = a!=3D40)
          OR = b=3D242
          OR ((a BETWEEN 32 = AND 34) AND a!=3D33)
-         OR (f GLOB = '?cdef*' AND f GLOB 'bcde*')
+         OR = (f LIKE '_cdef%' AND f LIKE 'bcde%')
      =     OR b=3D300
          OR = ((a BETWEEN 24 AND 26) AND a!=3D25)
      =     OR (d>=3D21.0 AND d<22.0 AND d IS NOT = NULL)
@@ -14502,7 +14502,7 @@ test:do_test(
  =         OR b=3D1048
      =     OR (d>=3D92.0 AND d<93.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 69 AND = 71) AND a!=3D70)
-         OR (g=3D'ponmlkj'= AND f GLOB 'rstuv*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
      =     OR c=3D19019
   ]])
  =    end, {
@@ -14525,7 +14525,7 @@ = test:do_test(
          OR = b=3D1048
          OR (d>=3D92.0 = AND d<93.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 69 AND 71) AND a!=3D70)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'rstuv%')
          OR = c=3D19019
   ]])
     end, = {
@@ -14608,10 +14608,10 @@ test:do_test(
  =         OR a=3D58
      =     OR b=3D333
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'rstuv%')
          OR = b=3D572
          OR ((a BETWEEN 50 = AND 52) AND a!=3D51)
-         OR (f GLOB = '?ijkl*' AND f GLOB 'hijk*')
+         OR = (f LIKE '_ijkl%' AND f LIKE 'hijk%')
  =  ]])
     end, {
    =      -- <where7-2.389.1>
@@ -14631,10 = +14631,10 @@ test:do_test(
          = OR a=3D58
          OR = b=3D333
          OR (d>=3D49.0 = AND d<50.0 AND d IS NOT NULL)
-         = OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
    =       OR b=3D572
        =   OR ((a BETWEEN 50 AND 52) AND a!=3D51)
-     =     OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+   =       OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
   ]])
     end, = {
         -- = <where7-2.389.2>
@@ -14649,7 +14649,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1034
  =         OR f=3D'lmnopqrst'
-     =     OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'mnopq%')
   ]])
     end, = {
         -- = <where7-2.390.1>
@@ -14664,7 +14664,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D1034
  =         OR f=3D'lmnopqrst'
-     =     OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'mnopq%')
   ]])
     end, = {
         -- = <where7-2.390.2>
@@ -14679,7 +14679,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE c=3D15015
  =         OR (d>=3D87.0 AND d<88.0 AND d IS NOT = NULL)
-         OR (g=3D'mlkjihg' AND f = GLOB 'hijkl*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'hijkl%')
          OR = b=3D58
          OR = b=3D674
          OR = b=3D979
@@ -14697,7 +14697,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE c=3D15015
          OR = (d>=3D87.0 AND d<88.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'hijkl*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'hijkl%')
          OR = b=3D58
          OR = b=3D674
          OR = b=3D979
@@ -14747,9 +14747,9 @@ test:do_test(
  =         OR (d>=3D64.0 AND d<65.0 AND d IS NOT = NULL)
          OR = b=3D630
          OR a=3D19
-=         OR (g=3D'ponmlkj' AND f GLOB = 'stuvw*')
+         OR (g=3D'ponmlkj' AND = f LIKE 'stuvw%')
          OR = f=3D'wxyzabcde'
-         OR (g=3D'ponmlkj' = AND f GLOB 'rstuv*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
      =     OR b=3D377
          OR = (d>=3D48.0 AND d<49.0 AND d IS NOT NULL)
    =       OR a=3D77
@@ -14770,9 +14770,9 @@ = test:do_test(
          OR = (d>=3D64.0 AND d<65.0 AND d IS NOT NULL)
    =       OR b=3D630
        =   OR a=3D19
-         OR (g=3D'ponmlkj'= AND f GLOB 'stuvw*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'stuvw%')
      =     OR f=3D'wxyzabcde'
-         = OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
    =       OR b=3D377
        =   OR (d>=3D48.0 AND d<49.0 AND d IS NOT = NULL)
          OR a=3D77
@@ = -14818,14 +14818,14 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = a=3D64
-         OR (f GLOB '?bcde*' AND f = GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
        =   OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL)
- =         OR (g=3D'srqponm' AND f GLOB = 'cdefg*')
+         OR (g=3D'srqponm' AND = f LIKE 'cdefg%')
          OR = c=3D14014
          OR = b=3D586
          OR = c=3D27027
          OR (d>=3D86.0 = AND d<87.0 AND d IS NOT NULL)
-         = OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.395.1>
@@ -14839,14 = +14839,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE a=3D64
- =         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
          OR = (d>=3D57.0 AND d<58.0 AND d IS NOT NULL)
-     =     OR (g=3D'srqponm' AND f GLOB 'cdefg*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'cdefg%')
          OR = c=3D14014
          OR = b=3D586
          OR = c=3D27027
          OR (d>=3D86.0 = AND d<87.0 AND d IS NOT NULL)
-         = OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.395.2>
@@ -14903,11 = +14903,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'tuvwx*')
-         OR (g=3D'tsrqpon' AND = f GLOB 'zabcd*')
+      WHERE (g=3D'kjihgfe' = AND f LIKE 'tuvwx%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'zabcd%')
      =     OR (d>=3D61.0 AND d<62.0 AND d IS NOT = NULL)
          OR (d>=3D98.0 AND = d<99.0 AND d IS NOT NULL)
-         OR = (g=3D'tsrqpon' AND f GLOB 'bcdef*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
    =       OR a=3D23
        =   OR b=3D737
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
@@ -14926,11 = +14926,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'tuvwx*')
-         OR (g=3D'tsrqpon' AND = f GLOB 'zabcd*')
+      WHERE (g=3D'kjihgfe' = AND f LIKE 'tuvwx%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'zabcd%')
      =     OR (d>=3D61.0 AND d<62.0 AND d IS NOT = NULL)
          OR (d>=3D98.0 AND = d<99.0 AND d IS NOT NULL)
-         OR = (g=3D'tsrqpon' AND f GLOB 'bcdef*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
    =       OR a=3D23
        =   OR b=3D737
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
@@ -14983,10 = +14983,10 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D18
  =         OR b=3D1059
-       =   OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (f LIKE '_abcd%' AND f LIKE 'zabc%')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
          OR (d>=3D9.0 = AND d<10.0 AND d IS NOT NULL)
-         = OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D795
  =  ]])
     end, {
@@ -15002,10 = +15002,10 @@ test:do_test(
      SELECT a FROM = t3
       WHERE a=3D18
  =         OR b=3D1059
-       =   OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (f LIKE '_abcd%' AND f LIKE 'zabc%')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
          OR (d>=3D9.0 = AND d<10.0 AND d IS NOT NULL)
-         = OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D795
  =  ]])
     end, {
@@ -15019,7 = +15019,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?mnop*' AND f GLOB = 'lmno*')
+      WHERE (f LIKE '_mnop%' AND f = LIKE 'lmno%')
          OR = a=3D93
          OR = a=3D11
          OR = f=3D'nopqrstuv'
@@ -15039,7 +15039,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?mnop*' AND f GLOB 'lmno*')
+      WHERE = (f LIKE '_mnop%' AND f LIKE 'lmno%')
      =     OR a=3D93
          OR = a=3D11
          OR = f=3D'nopqrstuv'
@@ -15062,8 +15062,8 @@ = test:do_test(
       WHERE = b=3D685
          OR = a=3D33
          OR ((a BETWEEN 40 = AND 42) AND a!=3D41)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
-       =   OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
          OR ((a = BETWEEN 80 AND 82) AND a!=3D81)
        =   OR b=3D715
@@ -15085,8 +15085,8 @@ = test:do_test(
       WHERE = b=3D685
          OR = a=3D33
          OR ((a BETWEEN 40 = AND 42) AND a!=3D41)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
-       =   OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
          OR ((a = BETWEEN 80 AND 82) AND a!=3D81)
        =   OR b=3D715
@@ -15107,7 +15107,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D89
  =         OR b=3D1037
-       =   OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+     =     OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
  =  ]])
     end, {
    =      -- <where7-2.402.1>
@@ -15122,7 = +15122,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE a=3D89
  =         OR b=3D1037
-       =   OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+     =     OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
  =  ]])
     end, {
    =      -- <where7-2.402.2>
@@ -15179,9 = +15179,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'stuvw*')
-         OR (g=3D'rqponml' AND = f GLOB 'jklmn*')
-         OR (g=3D'lkjihgf'= AND f GLOB 'mnopq*')
+      WHERE (g=3D'kjihgfe'= AND f LIKE 'stuvw%')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'mnopq%')
    =       OR b=3D726
        =   OR ((a BETWEEN 73 AND 75) AND a!=3D74)
    =       OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
@@ -15201,9 +15201,9 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'stuvw*')
-         OR (g=3D'rqponml' AND = f GLOB 'jklmn*')
-         OR (g=3D'lkjihgf'= AND f GLOB 'mnopq*')
+      WHERE (g=3D'kjihgfe'= AND f LIKE 'stuvw%')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'mnopq%')
    =       OR b=3D726
        =   OR ((a BETWEEN 73 AND 75) AND a!=3D74)
    =       OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
@@ -15223,7 +15223,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'uvwxy%')
          OR = b=3D924
          OR = f=3D'lmnopqrst'
          OR = b=3D1048
@@ -15239,7 +15239,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR b=3D924
        =   OR f=3D'lmnopqrst'
          = OR b=3D1048
@@ -15256,7 +15256,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
-         OR = (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
    =       OR b=3D198
        =   OR (d>=3D58.0 AND d<59.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 12 AND = 14) AND a!=3D13)
@@ -15276,7 +15276,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D63.0 AND = d<64.0 AND d IS NOT NULL)
-         OR = (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
    =       OR b=3D198
        =   OR (d>=3D58.0 AND d<59.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 12 AND = 14) AND a!=3D13)
@@ -15341,7 +15341,7 @@ = test:do_test(
          OR = b=3D630
          OR = a=3D55
          OR = c=3D26026
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = (d>=3D23.0 AND d<24.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -15359,7 = +15359,7 @@ test:do_test(
          = OR b=3D630
          OR = a=3D55
          OR = c=3D26026
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = (d>=3D23.0 AND d<24.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -15375,12 = +15375,12 @@ test:do_test(
      SELECT a FROM = t2
       WHERE = f=3D'uvwxyzabc'
          OR = f=3D'xyzabcdef'
-         OR (g=3D'ihgfedc' = AND f GLOB 'bcdef*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'bcdef%')
      =     OR (d>=3D70.0 AND d<71.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
          OR = (d>=3D31.0 AND d<32.0 AND d IS NOT NULL)
    =       OR b=3D69
-         = OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
+       =   OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
  =  ]])
     end, {
    =      -- <where7-2.409.1>
@@ -15395,12 = +15395,12 @@ test:do_test(
      SELECT a FROM = t3
       WHERE = f=3D'uvwxyzabc'
          OR = f=3D'xyzabcdef'
-         OR (g=3D'ihgfedc' = AND f GLOB 'bcdef*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'bcdef%')
      =     OR (d>=3D70.0 AND d<71.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
          OR = (d>=3D31.0 AND d<32.0 AND d IS NOT NULL)
    =       OR b=3D69
-         = OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
+       =   OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
  =  ]])
     end, {
    =      -- <where7-2.409.2>
@@ -15417,7 = +15417,7 @@ test:do_test(
          = OR b=3D454
          OR ((a BETWEEN = 92 AND 94) AND a!=3D93)
          OR = b=3D179
-         OR (f GLOB '?bcde*' AND = f GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
        =   OR f=3D'qrstuvwxy'
   ]])
  =    end, {
@@ -15435,7 +15435,7 @@ = test:do_test(
          OR = b=3D454
          OR ((a BETWEEN 92 = AND 94) AND a!=3D93)
          OR = b=3D179
-         OR (f GLOB '?bcde*' AND = f GLOB 'abcd*')
+         OR (f LIKE = '_bcde%' AND f LIKE 'abcd%')
        =   OR f=3D'qrstuvwxy'
   ]])
  =    end, {
@@ -15452,7 +15452,7 @@ = test:do_test(
       WHERE ((a BETWEEN 6 = AND 8) AND a!=3D7)
          OR = b=3D619
          OR a=3D20
-=         OR (g=3D'vutsrqp' AND f GLOB = 'nopqr*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'nopqr%')
          OR = b=3D946
          OR (d>=3D61.0 = AND d<62.0 AND d IS NOT NULL)
        =   OR a=3D64
@@ -15474,7 +15474,7 @@ = test:do_test(
       WHERE ((a BETWEEN 6 = AND 8) AND a!=3D7)
          OR = b=3D619
          OR a=3D20
-=         OR (g=3D'vutsrqp' AND f GLOB = 'nopqr*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'nopqr%')
          OR = b=3D946
          OR (d>=3D61.0 = AND d<62.0 AND d IS NOT NULL)
        =   OR a=3D64
@@ -15527,8 +15527,8 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D56.0 AND = d<57.0 AND d IS NOT NULL)
        =   OR a=3D32
-         OR (g=3D'qponmlk'= AND f GLOB 'mnopq*')
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'mnopq%')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =         OR c=3D32032
  =  ]])
     end, {
@@ -15544,8 = +15544,8 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D56.0 AND = d<57.0 AND d IS NOT NULL)
        =   OR a=3D32
-         OR (g=3D'qponmlk'= AND f GLOB 'mnopq*')
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'mnopq%')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =         OR c=3D32032
  =  ]])
     end, {
@@ -15654,7 = +15654,7 @@ test:do_test(
       WHERE = (d>=3D32.0 AND d<33.0 AND d IS NOT NULL)
    =       OR a=3D27
        =   OR ((a BETWEEN 55 AND 57) AND a!=3D56)
-     =     OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
   ]])
     end, = {
         -- = <where7-2.417.1>
@@ -15670,7 +15670,7 @@ = test:do_test(
       WHERE (d>=3D32.0 = AND d<33.0 AND d IS NOT NULL)
        =   OR a=3D27
          OR ((a = BETWEEN 55 AND 57) AND a!=3D56)
-         = OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
  =  ]])
     end, {
    =      -- <where7-2.417.2>
@@ -15720,7 = +15720,7 @@ test:do_test(
          = OR b=3D561
          OR = b=3D352
          OR (d>=3D37.0 = AND d<38.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
    =       OR a=3D95
  =  ]])
     end, {
@@ -15743,7 = +15743,7 @@ test:do_test(
          = OR b=3D561
          OR = b=3D352
          OR (d>=3D37.0 = AND d<38.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
    =       OR a=3D95
  =  ]])
     end, {
@@ -15761,7 = +15761,7 @@ test:do_test(
          = OR ((a BETWEEN 10 AND 12) AND a!=3D11)
      =     OR f=3D'ghijklmno'
        =   OR b=3D619
-         OR = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 91 AND 93) AND = a!=3D92)
          OR = b=3D476
          OR = a=3D83
@@ -15782,7 +15782,7 @@ test:do_test(
  =         OR ((a BETWEEN 10 AND 12) AND = a!=3D11)
          OR = f=3D'ghijklmno'
          OR = b=3D619
-         OR (g=3D'edcbazy' AND f = GLOB 'vwxyz*')
+         OR (g=3D'edcbazy' = AND f LIKE 'vwxyz%')
          OR ((a = BETWEEN 91 AND 93) AND a!=3D92)
        =   OR b=3D476
          OR = a=3D83
@@ -15868,8 +15868,8 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D1059
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
-       =   OR (g=3D'rqponml' AND f GLOB 'jklmn*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'jklmn%')
          OR = b=3D47
          OR = b=3D660
          OR ((a BETWEEN 34 = AND 36) AND a!=3D35)
@@ -15887,8 +15887,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D1059
- =         OR (g=3D'jihgfed' AND f GLOB = 'yzabc*')
-         OR (g=3D'rqponml' AND = f GLOB 'jklmn*')
+         OR (g=3D'jihgfed'= AND f LIKE 'yzabc%')
+         OR = (g=3D'rqponml' AND f LIKE 'jklmn%')
      =     OR b=3D47
          OR = b=3D660
          OR ((a BETWEEN 34 = AND 36) AND a!=3D35)
@@ -15936,13 +15936,13 @@ = test:do_test(
       WHERE = b=3D597
          OR = f=3D'lmnopqrst'
          OR = a=3D24
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'stuvw%')
          OR ((a = BETWEEN 31 AND 33) AND a!=3D32)
        =   OR b=3D1023
          OR = a=3D53
          OR = a=3D78
          OR = f=3D'efghijklm'
-         OR (g=3D'rqponml' = AND f GLOB 'lmnop*')
+         OR = (g=3D'rqponml' AND f LIKE 'lmnop%')
      =     OR (d>=3D85.0 AND d<86.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -15959,13 +15959,13 @@ test:do_test(
  =      WHERE b=3D597
        =   OR f=3D'lmnopqrst'
          = OR a=3D24
-         OR (g=3D'fedcbaz' AND = f GLOB 'stuvw*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'stuvw%')
          OR = ((a BETWEEN 31 AND 33) AND a!=3D32)
      =     OR b=3D1023
          = OR a=3D53
          OR = a=3D78
          OR = f=3D'efghijklm'
-         OR (g=3D'rqponml' = AND f GLOB 'lmnop*')
+         OR = (g=3D'rqponml' AND f LIKE 'lmnop%')
      =     OR (d>=3D85.0 AND d<86.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -16012,11 +16012,11 @@ test:do_test(
  =      WHERE f=3D'tuvwxyzab'
      =     OR b=3D388
          OR = ((a BETWEEN 84 AND 86) AND a!=3D85)
-       =   OR (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
  =         OR b=3D957
      =     OR b=3D663
          OR = b=3D847
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
   ]])
    =  end, {
         -- = <where7-2.427.1>
@@ -16032,11 +16032,11 @@ = test:do_test(
       WHERE = f=3D'tuvwxyzab'
          OR = b=3D388
          OR ((a BETWEEN 84 = AND 86) AND a!=3D85)
-         OR = (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
    =       OR b=3D957
        =   OR b=3D663
          OR = b=3D847
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
   ]])
    =  end, {
         -- = <where7-2.427.2>
@@ -16051,7 +16051,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D81.0 AND = d<82.0 AND d IS NOT NULL)
        =   OR a=3D56
-         OR (g=3D'hgfedcb'= AND f GLOB 'ghijk*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'ghijk%')
  =  ]])
     end, {
    =      -- <where7-2.428.1>
@@ -16066,7 = +16066,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D81.0 AND = d<82.0 AND d IS NOT NULL)
        =   OR a=3D56
-         OR (g=3D'hgfedcb'= AND f GLOB 'ghijk*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'ghijk%')
  =  ]])
     end, {
    =      -- <where7-2.428.2>
@@ -16082,7 = +16082,7 @@ test:do_test(
       WHERE = c>=3D34035
          OR = b=3D168
          OR (d>=3D89.0 = AND d<90.0 AND d IS NOT NULL)
-         = OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
  =  ]])
     end, {
    =      -- <where7-2.429.1>
@@ -16098,7 = +16098,7 @@ test:do_test(
       WHERE = c>=3D34035
          OR = b=3D168
          OR (d>=3D89.0 = AND d<90.0 AND d IS NOT NULL)
-         = OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
  =  ]])
     end, {
    =      -- <where7-2.429.2>
@@ -16144,9 = +16144,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE (d>=3D29.0 AND = d<30.0 AND d IS NOT NULL)
-         OR = (g=3D'qponmlk' AND f GLOB 'opqrs*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
    =       OR f=3D'rstuvwxyz'
-       =   OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
  =  ]])
     end, {
    =      -- <where7-2.431.1>
@@ -16160,9 = +16160,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D29.0 AND = d<30.0 AND d IS NOT NULL)
-         OR = (g=3D'qponmlk' AND f GLOB 'opqrs*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
    =       OR f=3D'rstuvwxyz'
-       =   OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
  =  ]])
     end, {
    =      -- <where7-2.431.2>
@@ -16246,7 = +16246,7 @@ test:do_test(
       WHERE = b=3D113
          OR (d>=3D51.0 = AND d<52.0 AND d IS NOT NULL)
        =   OR b=3D113
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
    =       OR ((a BETWEEN 62 AND 64) AND = a!=3D63)
          OR = c=3D6006
          OR (d>=3D14.0 = AND d<15.0 AND d IS NOT NULL)
@@ -16267,7 +16267,7 @@ = test:do_test(
       WHERE = b=3D113
          OR (d>=3D51.0 = AND d<52.0 AND d IS NOT NULL)
        =   OR b=3D113
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
    =       OR ((a BETWEEN 62 AND 64) AND = a!=3D63)
          OR = c=3D6006
          OR (d>=3D14.0 = AND d<15.0 AND d IS NOT NULL)
@@ -16285,7 +16285,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR ((a BETWEEN 8 AND 10) AND a!=3D9)
 =         OR c=3D22022
      =     OR ((a BETWEEN 79 AND 81) AND a!=3D80)
@@ = -16303,7 +16303,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'hijkl*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'hijkl%')
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
        =   OR c=3D22022
          OR ((a = BETWEEN 79 AND 81) AND a!=3D80)
@@ -16322,7 +16322,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 74 AND 76) AND = a!=3D75)
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR b=3D47
          OR ((a = BETWEEN 44 AND 46) AND a!=3D45)
        =   OR a=3D92
@@ -16331,7 +16331,7 @@ = test:do_test(
          OR = c=3D7007
          OR = a=3D93
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
-         OR = (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
  =  ]])
     end, {
    =      -- <where7-2.436.1>
@@ -16345,7 = +16345,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 74 AND = 76) AND a!=3D75)
-         OR (f GLOB = '?pqrs*' AND f GLOB 'opqr*')
+         OR = (f LIKE '_pqrs%' AND f LIKE 'opqr%')
      =     OR b=3D47
          OR = ((a BETWEEN 44 AND 46) AND a!=3D45)
      =     OR a=3D92
@@ -16354,7 +16354,7 @@ = test:do_test(
          OR = c=3D7007
          OR = a=3D93
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
-         OR = (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
  =  ]])
     end, {
    =      -- <where7-2.436.2>
@@ -16367,11 = +16367,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'uvwxy%')
          OR = a=3D13
-         OR (g=3D'fedcbaz' AND f = GLOB 'qrstu*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'qrstu%')
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
-     =     OR (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+   =       OR (g=3D'xwvutsr' AND f LIKE = 'ghijk%')
          OR = c=3D29029
          OR = b=3D311
          OR = b=3D366
@@ -16389,11 +16389,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR a=3D13
-         = OR (g=3D'fedcbaz' AND f GLOB 'qrstu*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'qrstu%')
    =       OR (d>=3D66.0 AND d<67.0 AND d IS NOT = NULL)
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'ghijk%')
          OR = c=3D29029
          OR = b=3D311
          OR = b=3D366
@@ -16453,12 +16453,12 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D82.0 AND = d<83.0 AND d IS NOT NULL)
        =   OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL)
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = (d>=3D36.0 AND d<37.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 63 AND 65) AND = a!=3D64)
          OR = a=3D41
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
-         OR (g=3D'onmlkji' = AND f GLOB 'zabcd*')
+         OR = (g=3D'xwvutsr' AND f LIKE 'ghijk%')
+       =   OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
    =       OR b=3D913
  =  ]])
     end, {
@@ -16474,12 = +16474,12 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D82.0 AND = d<83.0 AND d IS NOT NULL)
        =   OR (d>=3D36.0 AND d<37.0 AND d IS NOT NULL)
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = (d>=3D36.0 AND d<37.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 63 AND 65) AND = a!=3D64)
          OR = a=3D41
-         OR (g=3D'xwvutsr' AND f = GLOB 'ghijk*')
-         OR (g=3D'onmlkji' = AND f GLOB 'zabcd*')
+         OR = (g=3D'xwvutsr' AND f LIKE 'ghijk%')
+       =   OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
    =       OR b=3D913
  =  ]])
     end, {
@@ -16593,12 = +16593,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'jihgfed' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'zabcd%')
          OR = b=3D102
          OR = b=3D212
          OR (d>=3D37.0 = AND d<38.0 AND d IS NOT NULL)
        =   OR b=3D487
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.443.1>
@@ -16611,12 = +16611,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'jihgfed' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'zabcd%')
          OR = b=3D102
          OR = b=3D212
          OR (d>=3D37.0 = AND d<38.0 AND d IS NOT NULL)
        =   OR b=3D487
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.443.2>
@@ -16661,7 = +16661,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D872
  =         OR ((a BETWEEN 58 AND 60) AND = a!=3D59)
-         OR (f GLOB '?wxyz*' AND = f GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D957
          OR = (d>=3D42.0 AND d<43.0 AND d IS NOT NULL)
    =       OR a=3D67
@@ -16680,7 +16680,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D872
  =         OR ((a BETWEEN 58 AND 60) AND = a!=3D59)
-         OR (f GLOB '?wxyz*' AND = f GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D957
          OR = (d>=3D42.0 AND d<43.0 AND d IS NOT NULL)
    =       OR a=3D67
@@ -16700,12 +16700,12 @@ = test:do_test(
       WHERE = b=3D66
          OR = b=3D102
          OR = b=3D396
-         OR (g=3D'vutsrqp' AND f = GLOB 'opqrs*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'opqrs%')
          OR ((a = BETWEEN 7 AND 9) AND a!=3D8)
        =   OR b=3D759
-         OR = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
    =       OR f=3D'ghijklmno'
-       =   OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+     =     OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
  =         OR ((a BETWEEN 90 AND 92) AND = a!=3D91)
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
   ]])
@@ = -16723,12 +16723,12 @@ test:do_test(
      =  WHERE b=3D66
          OR = b=3D102
          OR = b=3D396
-         OR (g=3D'vutsrqp' AND f = GLOB 'opqrs*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'opqrs%')
          OR ((a = BETWEEN 7 AND 9) AND a!=3D8)
        =   OR b=3D759
-         OR = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
    =       OR f=3D'ghijklmno'
-       =   OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+     =     OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
  =         OR ((a BETWEEN 90 AND 92) AND = a!=3D91)
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
   ]])
@@ = -16744,8 +16744,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 69 AND = 71) AND a!=3D70)
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
-         OR = (g=3D'onmlkji' AND f GLOB 'wxyza*')
+       =   OR (f LIKE '_zabc%' AND f LIKE 'yzab%')
+     =     OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
  =         OR a=3D72
      =     OR b=3D1100
          = OR b=3D102
@@ -16763,8 +16763,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 69 AND 71) AND = a!=3D70)
-         OR (f GLOB '?zabc*' AND = f GLOB 'yzab*')
-         OR (g=3D'onmlkji' = AND f GLOB 'wxyza*')
+         OR (f LIKE = '_zabc%' AND f LIKE 'yzab%')
+         OR = (g=3D'onmlkji' AND f LIKE 'wxyza%')
      =     OR a=3D72
          OR = b=3D1100
          OR = b=3D102
@@ -16878,7 +16878,7 @@ test:do_test(
  =      WHERE b=3D47
        =   OR a=3D91
          OR = d>1e10
-         OR (g=3D'srqponm' AND = f GLOB 'cdefg*')
+         OR (g=3D'srqponm'= AND f LIKE 'cdefg%')
   ]])
    =  end, {
         -- = <where7-2.451.1>
@@ -16894,7 +16894,7 @@ = test:do_test(
       WHERE = b=3D47
          OR = a=3D91
          OR = d>1e10
-         OR (g=3D'srqponm' AND = f GLOB 'cdefg*')
+         OR (g=3D'srqponm'= AND f LIKE 'cdefg%')
   ]])
    =  end, {
         -- = <where7-2.451.2>
@@ -16975,13 +16975,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
+      WHERE = (f LIKE '_efgh%' AND f LIKE 'defg%')
      =     OR b=3D619
          OR = ((a BETWEEN 91 AND 93) AND a!=3D92)
      =     OR c=3D11011
          = OR b=3D550
          OR = b=3D1059
-         OR (g=3D'hgfedcb' AND f = GLOB 'ghijk*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'ghijk%')
          OR = (d>=3D78.0 AND d<79.0 AND d IS NOT NULL)
    =       OR (d>=3D18.0 AND d<19.0 AND d IS NOT = NULL)
          OR (d>=3D92.0 AND = d<93.0 AND d IS NOT NULL)
@@ -16998,13 +16998,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
+      WHERE = (f LIKE '_efgh%' AND f LIKE 'defg%')
      =     OR b=3D619
          OR = ((a BETWEEN 91 AND 93) AND a!=3D92)
      =     OR c=3D11011
          = OR b=3D550
          OR = b=3D1059
-         OR (g=3D'hgfedcb' AND f = GLOB 'ghijk*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'ghijk%')
          OR = (d>=3D78.0 AND d<79.0 AND d IS NOT NULL)
    =       OR (d>=3D18.0 AND d<19.0 AND d IS NOT = NULL)
          OR (d>=3D92.0 AND = d<93.0 AND d IS NOT NULL)
@@ -17021,16 +17021,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'edcbazy' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 59 AND 61) AND a!=3D60)
- =         OR (g=3D'ihgfedc' AND f GLOB = 'cdefg*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'cdefg%')
          OR = a=3D78
          OR = a=3D27
          OR = b=3D792
          OR = b=3D946
          OR = c=3D22022
          OR = a=3D23
-         OR (f GLOB '?opqr*' AND f = GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR b=3D388
   ]])
    =  end, {
@@ -17044,16 +17044,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'edcbazy' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 59 AND 61) AND a!=3D60)
- =         OR (g=3D'ihgfedc' AND f GLOB = 'cdefg*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'cdefg%')
          OR = a=3D78
          OR = a=3D27
          OR = b=3D792
          OR = b=3D946
          OR = c=3D22022
          OR = a=3D23
-         OR (f GLOB '?opqr*' AND f = GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR b=3D388
   ]])
    =  end, {
@@ -17070,8 +17070,8 @@ = test:do_test(
       WHERE = c=3D32032
          OR f IS = NULL
          OR ((a BETWEEN 37 AND = 39) AND a!=3D38)
-         OR (g=3D'jihgfed'= AND f GLOB 'wxyza*')
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =         OR b=3D825
  =  ]])
     end, {
@@ -17088,8 = +17088,8 @@ test:do_test(
       WHERE = c=3D32032
          OR f IS = NULL
          OR ((a BETWEEN 37 AND = 39) AND a!=3D38)
-         OR (g=3D'jihgfed'= AND f GLOB 'wxyza*')
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
  =         OR b=3D825
  =  ]])
     end, {
@@ -17104,7 = +17104,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE (d>=3D84.0 AND = d<85.0 AND d IS NOT NULL)
-         OR = (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
+       =   OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
    =       OR ((a BETWEEN 5 AND 7) AND a!=3D6)
  =         OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR = b=3D1078
@@ -17126,7 +17126,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D84.0 AND = d<85.0 AND d IS NOT NULL)
-         OR = (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
+       =   OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
    =       OR ((a BETWEEN 5 AND 7) AND a!=3D6)
  =         OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR = b=3D1078
@@ -17147,11 +17147,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR c=3D25025
        =   OR b=3D550
          OR = (d>=3D22.0 AND d<23.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
   ]])
     end, = {
         -- = <where7-2.458.1>
@@ -17164,11 +17164,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR c=3D25025
        =   OR b=3D550
          OR = (d>=3D22.0 AND d<23.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
   ]])
     end, = {
         -- = <where7-2.458.2>
@@ -17183,7 +17183,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D432
  =         OR f=3D'opqrstuvw'
-     =     OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
   ]])
     end, = {
         -- = <where7-2.459.1>
@@ -17198,7 +17198,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D432
  =         OR f=3D'opqrstuvw'
-     =     OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
   ]])
     end, = {
         -- = <where7-2.459.2>
@@ -17213,7 +17213,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 14 AND 16) AND = a!=3D15)
          OR = b=3D847
-         OR (f GLOB '?mnop*' AND = f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
        =   OR b=3D583
          OR ((a = BETWEEN 63 AND 65) AND a!=3D64)
        =   OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL)
@@ = -17234,7 +17234,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE ((a BETWEEN 14 AND = 16) AND a!=3D15)
          OR = b=3D847
-         OR (f GLOB '?mnop*' AND = f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
        =   OR b=3D583
          OR ((a = BETWEEN 63 AND 65) AND a!=3D64)
        =   OR (d>=3D26.0 AND d<27.0 AND d IS NOT NULL)
@@ = -17299,7 +17299,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'uvwxy%')
          OR = b=3D586
          OR = d<0.0
          OR = c=3D9009
@@ -17315,7 +17315,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR b=3D586
        =   OR d<0.0
          OR = c=3D9009
@@ -17378,7 +17378,7 @@ = test:do_test(
       WHERE ((a BETWEEN 44 = AND 46) AND a!=3D45)
          OR = a=3D53
          OR (d>=3D23.0 AND = d<24.0 AND d IS NOT NULL)
-         OR = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D594
        =   OR b=3D80
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
@@ -17399,7 +17399,7 @@ = test:do_test(
       WHERE ((a BETWEEN 44 = AND 46) AND a!=3D45)
          OR = a=3D53
          OR (d>=3D23.0 AND = d<24.0 AND d IS NOT NULL)
-         OR = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D594
        =   OR b=3D80
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
@@ -17482,9 +17482,9 @@ = test:do_test(
       WHERE = a=3D59
          OR ((a BETWEEN 69 = AND 71) AND a!=3D70)
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
-     =     OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+   =       OR (g=3D'xwvutsr' AND f LIKE = 'fghij%')
          OR = f=3D'wxyzabcde'
-         OR (f GLOB = '?abcd*' AND f GLOB 'zabc*')
+         OR = (f LIKE '_abcd%' AND f LIKE 'zabc%')
      =     OR a=3D70
          OR = ((a BETWEEN 23 AND 25) AND a!=3D24)
      =     OR ((a BETWEEN 14 AND 16) AND a!=3D15)
@@ = -17503,9 +17503,9 @@ test:do_test(
      =  WHERE a=3D59
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
        =   OR (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
- =         OR (g=3D'xwvutsr' AND f GLOB = 'fghij*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'fghij%')
          OR = f=3D'wxyzabcde'
-         OR (f GLOB = '?abcd*' AND f GLOB 'zabc*')
+         OR = (f LIKE '_abcd%' AND f LIKE 'zabc%')
      =     OR a=3D70
          OR = ((a BETWEEN 23 AND 25) AND a!=3D24)
      =     OR ((a BETWEEN 14 AND 16) AND a!=3D15)
@@ = -17522,7 +17522,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE a=3D69
- =         OR (g=3D'ihgfedc' AND f GLOB = 'defgh*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'defgh%')
   ]])
    =  end, {
         -- = <where7-2.468.1>
@@ -17536,7 +17536,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D69
-   =       OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'defgh%')
   ]])
     end, = {
         -- = <where7-2.468.2>
@@ -17552,8 +17552,8 @@ = test:do_test(
       WHERE = a=3D41
          OR = a=3D43
          OR a=3D92
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'klmno*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'rstuv%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.469.1>
@@ -17569,8 = +17569,8 @@ test:do_test(
       WHERE = a=3D41
          OR = a=3D43
          OR a=3D92
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'klmno*')
+         OR (g=3D'fedcbaz'= AND f LIKE 'rstuv%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.469.2>
@@ -17617,7 = +17617,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE = f=3D'fghijklmn'
          OR = f=3D'fghijklmn'
-         OR (g=3D'xwvutsr' = AND f GLOB 'efghi*')
+         OR = (g=3D'xwvutsr' AND f LIKE 'efghi%')
      =     OR b=3D465
          OR = b=3D586
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
@@ -17639,7 +17639,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE = f=3D'fghijklmn'
          OR = f=3D'fghijklmn'
-         OR (g=3D'xwvutsr' = AND f GLOB 'efghi*')
+         OR = (g=3D'xwvutsr' AND f LIKE 'efghi%')
      =     OR b=3D465
          OR = b=3D586
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
@@ -17660,10 +17660,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D34.0 AND = d<35.0 AND d IS NOT NULL)
-         OR = (f GLOB '?abcd*' AND f GLOB 'zabc*')
-       =   OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
-     =     OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
-   =       OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+ =         OR (f LIKE '_abcd%' AND f LIKE = 'zabc%')
+         OR (g=3D'hgfedcb' AND f = LIKE 'hijkl%')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
+         OR = (g=3D'edcbazy' AND f LIKE 'wxyza%')
      =     OR b=3D814
          OR = a=3D20
          OR = 1000000<b
@@ -17681,10 +17681,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D34.0 AND = d<35.0 AND d IS NOT NULL)
-         OR = (f GLOB '?abcd*' AND f GLOB 'zabc*')
-       =   OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
-     =     OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
-   =       OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
+ =         OR (f LIKE '_abcd%' AND f LIKE = 'zabc%')
+         OR (g=3D'hgfedcb' AND f = LIKE 'hijkl%')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
+         OR = (g=3D'edcbazy' AND f LIKE 'wxyza%')
      =     OR b=3D814
          OR = a=3D20
          OR = 1000000<b
@@ -17701,14 +17701,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 53 AND 55) AND = a!=3D54)
          OR = c=3D1001
          OR = b=3D484
          OR (d>=3D65.0 = AND d<66.0 AND d IS NOT NULL)
        =   OR c<=3D10
          OR = a=3D92
-         OR (g=3D'tsrqpon' AND f = GLOB 'zabcd*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'zabcd%')
          OR ((a = BETWEEN 0 AND 2) AND a!=3D1)
        =   OR b=3D1026
   ]])
@@ -17723,14 = +17723,14 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'uvwxy%')
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
        =   OR c=3D1001
          OR = b=3D484
          OR (d>=3D65.0 = AND d<66.0 AND d IS NOT NULL)
        =   OR c<=3D10
          OR = a=3D92
-         OR (g=3D'tsrqpon' AND f = GLOB 'zabcd*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'zabcd%')
          OR ((a = BETWEEN 0 AND 2) AND a!=3D1)
        =   OR b=3D1026
   ]])
@@ -17746,13 = +17746,13 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE a=3D54
- =         OR (g=3D'xwvutsr' AND f GLOB = 'defgh*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'defgh%')
          OR = b=3D993
          OR = c=3D22022
          OR = a=3D68
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = a=3D62
-         OR (f GLOB '?efgh*' AND f = GLOB 'defg*')
+         OR (f LIKE = '_efgh%' AND f LIKE 'defg%')
        =   OR b=3D1015
   ]])
    =  end, {
@@ -17767,13 +17767,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D54
-   =       OR (g=3D'xwvutsr' AND f GLOB 'defgh*')
+ =         OR (g=3D'xwvutsr' AND f LIKE = 'defgh%')
          OR = b=3D993
          OR = c=3D22022
          OR = a=3D68
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = a=3D62
-         OR (f GLOB '?efgh*' AND f = GLOB 'defg*')
+         OR (f LIKE = '_efgh%' AND f LIKE 'defg%')
        =   OR b=3D1015
   ]])
    =  end, {
@@ -17789,7 +17789,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D319
  =         OR a=3D50
-       =   OR (g=3D'srqponm' AND f GLOB 'defgh*')
+     =     OR (g=3D'srqponm' AND f LIKE 'defgh%')
  =         OR (d>=3D55.0 AND d<56.0 AND d IS NOT = NULL)
          OR (d>=3D10.0 AND = d<11.0 AND d IS NOT NULL)
        =   OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL)
@@ = -17808,7 +17808,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE = b=3D319
          OR a=3D50
-=         OR (g=3D'srqponm' AND f GLOB = 'defgh*')
+         OR (g=3D'srqponm' AND = f LIKE 'defgh%')
          OR = (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR (d>=3D92.0 AND = d<93.0 AND d IS NOT NULL)
@@ -17889,14 +17889,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR (d>=3D34.0 AND d<35.0 AND d IS NOT = NULL)
          OR = b=3D407
          OR = b=3D454
-         OR (f GLOB '?klmn*' AND = f GLOB 'jklm*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
        =   OR (d>=3D91.0 AND d<92.0 AND d IS NOT = NULL)
          OR b=3D627
- =         OR (f GLOB '?opqr*' AND f GLOB = 'nopq*')
+         OR (f LIKE '_opqr%' AND = f LIKE 'nopq%')
   ]])
    =  end, {
         -- = <where7-2.478.1>
@@ -17909,14 +17909,14 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR (d>=3D34.0 AND d<35.0 AND d IS NOT = NULL)
          OR = b=3D407
          OR = b=3D454
-         OR (f GLOB '?klmn*' AND = f GLOB 'jklm*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
        =   OR (d>=3D91.0 AND d<92.0 AND d IS NOT = NULL)
          OR b=3D627
- =         OR (f GLOB '?opqr*' AND f GLOB = 'nopq*')
+         OR (f LIKE '_opqr%' AND = f LIKE 'nopq%')
   ]])
    =  end, {
         -- = <where7-2.478.2>
@@ -17933,7 +17933,7 @@ = test:do_test(
          OR = c=3D34034
          OR ((a BETWEEN 24 = AND 26) AND a!=3D25)
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
-         = OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR a=3D67
  =  ]])
     end, {
@@ -17951,7 = +17951,7 @@ test:do_test(
          = OR c=3D34034
          OR ((a BETWEEN = 24 AND 26) AND a!=3D25)
          OR = ((a BETWEEN 18 AND 20) AND a!=3D19)
-       =   OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+     =     OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
  =         OR a=3D67
  =  ]])
     end, {
@@ -17970,7 = +17970,7 @@ test:do_test(
          = OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL)
  =         OR ((a BETWEEN 2 AND 4) AND = a!=3D3)
          OR (d>=3D1.0 AND = d<2.0 AND d IS NOT NULL)
-         OR = (f GLOB '?rstu*' AND f GLOB 'qrst*')
+       =   OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
  =  ]])
     end, {
    =      -- <where7-2.480.1>
@@ -17988,7 = +17988,7 @@ test:do_test(
          = OR (d>=3D81.0 AND d<82.0 AND d IS NOT NULL)
  =         OR ((a BETWEEN 2 AND 4) AND = a!=3D3)
          OR (d>=3D1.0 AND = d<2.0 AND d IS NOT NULL)
-         OR = (f GLOB '?rstu*' AND f GLOB 'qrst*')
+       =   OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
  =  ]])
     end, {
    =      -- <where7-2.480.2>
@@ -18006,12 = +18006,12 @@ test:do_test(
          = OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL)
  =         OR b=3D201
      =     OR a=3D99
-         OR = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR ((a BETWEEN 36 AND 38) AND = a!=3D37)
          OR (d>=3D23.0 = AND d<24.0 AND d IS NOT NULL)
        =   OR b=3D946
          OR = b=3D993
-         OR (g=3D'fedcbaz' AND f = GLOB 'qrstu*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'qrstu%')
   ]])
    =  end, {
         -- = <where7-2.481.1>
@@ -18029,12 +18029,12 @@ = test:do_test(
          OR = (d>=3D46.0 AND d<47.0 AND d IS NOT NULL)
    =       OR b=3D201
        =   OR a=3D99
-         OR (g=3D'utsrqpo'= AND f GLOB 'tuvwx*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
      =     OR ((a BETWEEN 36 AND 38) AND a!=3D37)
  =         OR (d>=3D23.0 AND d<24.0 AND d IS NOT = NULL)
          OR = b=3D946
          OR = b=3D993
-         OR (g=3D'fedcbaz' AND f = GLOB 'qrstu*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'qrstu%')
   ]])
    =  end, {
         -- = <where7-2.481.2>
@@ -18048,7 +18048,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D806
-   =       OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'uvwxy%')
          OR ((a BETWEEN 24 = AND 26) AND a!=3D25)
          OR = b=3D916
          OR = b<0
@@ -18070,7 +18070,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D806
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR ((a BETWEEN 24 AND 26) AND = a!=3D25)
          OR = b=3D916
          OR = b<0
@@ -18093,11 +18093,11 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D836
  =         OR d>1e10
-     =     OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'uvwxy%')
          OR = f=3D'pqrstuvwx'
          OR ((a = BETWEEN 3 AND 5) AND a!=3D4)
        =   OR f=3D'abcdefghi'
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR a=3D33
        =   OR ((a BETWEEN 19 AND 21) AND a!=3D20)
    =       OR ((a BETWEEN 88 AND 90) AND a!=3D89)
@@ = -18116,11 +18116,11 @@ test:do_test(
      = SELECT a FROM t3
       WHERE = b=3D836
          OR = d>1e10
-         OR (g=3D'utsrqpo' AND = f GLOB 'uvwxy*')
+         OR (g=3D'utsrqpo'= AND f LIKE 'uvwxy%')
          OR = f=3D'pqrstuvwx'
          OR ((a = BETWEEN 3 AND 5) AND a!=3D4)
        =   OR f=3D'abcdefghi'
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR a=3D33
        =   OR ((a BETWEEN 19 AND 21) AND a!=3D20)
    =       OR ((a BETWEEN 88 AND 90) AND a!=3D89)
@@ = -18140,10 +18140,10 @@ test:do_test(
      =  WHERE a=3D48
          OR = a=3D92
          OR a=3D1
- =         OR (f GLOB '?fghi*' AND f GLOB = 'efgh*')
+         OR (f LIKE '_fghi%' AND = f LIKE 'efgh%')
          OR = (d>=3D28.0 AND d<29.0 AND d IS NOT NULL)
    =       OR (d>=3D7.0 AND d<8.0 AND d IS NOT = NULL)
-         OR (g=3D'rqponml' AND f = GLOB 'lmnop*')
+         OR (g=3D'rqponml' = AND f LIKE 'lmnop%')
          OR = b=3D905
          OR ((a BETWEEN 51 = AND 53) AND a!=3D52)
   ]])
@@ -18161,10 = +18161,10 @@ test:do_test(
       WHERE = a=3D48
          OR = a=3D92
          OR a=3D1
- =         OR (f GLOB '?fghi*' AND f GLOB = 'efgh*')
+         OR (f LIKE '_fghi%' AND = f LIKE 'efgh%')
          OR = (d>=3D28.0 AND d<29.0 AND d IS NOT NULL)
    =       OR (d>=3D7.0 AND d<8.0 AND d IS NOT = NULL)
-         OR (g=3D'rqponml' AND f = GLOB 'lmnop*')
+         OR (g=3D'rqponml' = AND f LIKE 'lmnop%')
          OR = b=3D905
          OR ((a BETWEEN 51 = AND 53) AND a!=3D52)
   ]])
@@ -18215,12 = +18215,12 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D740
  =         OR b=3D564
-       =   OR (g=3D'onmlkji' AND f GLOB 'zabcd*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
  =         OR a=3D11
      =     OR ((a BETWEEN 44 AND 46) AND a!=3D45)
  =         OR b=3D322
      =     OR (d>=3D6.0 AND d<7.0 AND d IS NOT = NULL)
-         OR (g=3D'utsrqpo' AND f = GLOB 'wxyza*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'wxyza%')
          OR = b=3D902
          OR = c>=3D34035
   ]])
@@ -18237,12 = +18237,12 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D740
  =         OR b=3D564
-       =   OR (g=3D'onmlkji' AND f GLOB 'zabcd*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'zabcd%')
  =         OR a=3D11
      =     OR ((a BETWEEN 44 AND 46) AND a!=3D45)
  =         OR b=3D322
      =     OR (d>=3D6.0 AND d<7.0 AND d IS NOT = NULL)
-         OR (g=3D'utsrqpo' AND f = GLOB 'wxyza*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'wxyza%')
          OR = b=3D902
          OR = c>=3D34035
   ]])
@@ -18264,7 +18264,7 = @@ test:do_test(
          OR = a=3D48
          OR = b=3D927
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
-         OR = (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
    =       OR f=3D'abcdefghi'
      =     OR b=3D91
          OR = b=3D55
@@ -18287,7 +18287,7 @@ test:do_test(
  =         OR a=3D48
      =     OR b=3D927
          OR = ((a BETWEEN 89 AND 91) AND a!=3D90)
-       =   OR (g=3D'fedcbaz' AND f GLOB 'stuvw*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'stuvw%')
  =         OR f=3D'abcdefghi'
    =       OR b=3D91
        =   OR b=3D55
@@ -18303,7 +18303,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'srqponm' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR ((a BETWEEN 88 AND 90) AND = a!=3D89)
          OR = a=3D20
          OR b=3D11
@@= -18319,7 +18319,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'srqponm' AND f GLOB = 'efghi*')
+      WHERE (g=3D'srqponm' AND f = LIKE 'efghi%')
          OR ((a = BETWEEN 88 AND 90) AND a!=3D89)
        =   OR a=3D20
          OR = b=3D11
@@ -18338,7 +18338,7 @@ test:do_test(
  =      WHERE (d>=3D27.0 AND d<28.0 AND d IS NOT = NULL)
          OR = b=3D55
          OR (d>=3D13.0 AND = d<14.0 AND d IS NOT NULL)
-         OR = (g=3D'onmlkji' AND f GLOB 'abcde*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'abcde%')
    =       OR a=3D50
        =   OR (d>=3D73.0 AND d<74.0 AND d IS NOT = NULL)
          OR (d>=3D51.0 AND = d<52.0 AND d IS NOT NULL)
@@ -18358,7 +18358,7 @@ = test:do_test(
       WHERE (d>=3D27.0 = AND d<28.0 AND d IS NOT NULL)
        =   OR b=3D55
          OR = (d>=3D13.0 AND d<14.0 AND d IS NOT NULL)
-     =     OR (g=3D'onmlkji' AND f GLOB 'abcde*')
+   =       OR (g=3D'onmlkji' AND f LIKE = 'abcde%')
          OR = a=3D50
          OR (d>=3D73.0 AND = d<74.0 AND d IS NOT NULL)
        =   OR (d>=3D51.0 AND d<52.0 AND d IS NOT NULL)
@@ = -18375,8 +18375,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'rqponml' AND f GLOB = 'ijklm*')
-         OR (f GLOB '?xyza*' = AND f GLOB 'wxyz*')
+      WHERE (g=3D'rqponml' = AND f LIKE 'ijklm%')
+         OR (f LIKE = '_xyza%' AND f LIKE 'wxyz%')
   ]])
  =    end, {
         -- = <where7-2.490.1>
@@ -18389,8 +18389,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'rqponml' AND f GLOB 'ijklm*')
-       =   OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+     =  WHERE (g=3D'rqponml' AND f LIKE 'ijklm%')
+   =       OR (f LIKE '_xyza%' AND f LIKE = 'wxyz%')
   ]])
     end, = {
         -- = <where7-2.490.2>
@@ -18405,7 +18405,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D704
  =         OR b=3D924
-       =   OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+     =     OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =         OR b=3D113
  =  ]])
     end, {
@@ -18421,7 = +18421,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D704
  =         OR b=3D924
-       =   OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+     =     OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =         OR b=3D113
  =  ]])
     end, {
@@ -18503,11 = +18503,11 @@ test:do_test(
          = OR b=3D726
          OR = f=3D'abcdefghi'
          OR = b=3D179
-         OR (g=3D'utsrqpo' AND f = GLOB 'tuvwx*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'tuvwx%')
          OR = b=3D539
          OR = b=3D66
          OR ((a BETWEEN 86 = AND 88) AND a!=3D87)
-         OR (f GLOB = '?klmn*' AND f GLOB 'jklm*')
+         OR = (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.494.1>
@@ -18524,11 = +18524,11 @@ test:do_test(
          = OR b=3D726
          OR = f=3D'abcdefghi'
          OR = b=3D179
-         OR (g=3D'utsrqpo' AND f = GLOB 'tuvwx*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'tuvwx%')
          OR = b=3D539
          OR = b=3D66
          OR ((a BETWEEN 86 = AND 88) AND a!=3D87)
-         OR (f GLOB = '?klmn*' AND f GLOB 'jklm*')
+         OR = (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.494.2>
@@ -18573,11 = +18573,11 @@ test:do_test(
          = OR b=3D682
          OR = b=3D443
          OR = b=3D836
-         OR (f GLOB '?opqr*' AND = f GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR (d>=3D11.0 AND d<12.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
          OR = b=3D110
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
   ]])
  =    end, {
         -- = <where7-2.496.1>
@@ -18594,11 +18594,11 @@ = test:do_test(
          OR = b=3D682
          OR = b=3D443
          OR = b=3D836
-         OR (f GLOB '?opqr*' AND = f GLOB 'nopq*')
+         OR (f LIKE = '_opqr%' AND f LIKE 'nopq%')
        =   OR (d>=3D11.0 AND d<12.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 51 AND = 53) AND a!=3D52)
          OR = b=3D110
-         OR (f GLOB '?defg*' AND = f GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
   ]])
  =    end, {
         -- = <where7-2.496.2>
@@ -18611,15 +18611,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?zabc*' AND f GLOB 'yzab*')
+      WHERE = (f LIKE '_zabc%' AND f LIKE 'yzab%')
      =     OR b=3D462
          OR = ((a BETWEEN 4 AND 6) AND a!=3D5)
        =   OR a=3D22
          OR = b=3D594
-         OR (f GLOB '?tuvw*' AND = f GLOB 'stuv*')
+         OR (f LIKE = '_tuvw%' AND f LIKE 'stuv%')
        =   OR (d>=3D57.0 AND d<58.0 AND d IS NOT NULL)
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'jklmn*')
+         OR (g=3D'jihgfed'= AND f LIKE 'wxyza%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
  =  ]])
     end, {
    =      -- <where7-2.497.1>
@@ -18632,15 = +18632,15 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?zabc*' AND f GLOB = 'yzab*')
+      WHERE (f LIKE '_zabc%' AND f = LIKE 'yzab%')
          OR = b=3D462
          OR ((a BETWEEN 4 = AND 6) AND a!=3D5)
          OR = a=3D22
          OR b=3D594
-=         OR (f GLOB '?tuvw*' AND f GLOB = 'stuv*')
+         OR (f LIKE '_tuvw%' AND = f LIKE 'stuv%')
          OR = (d>=3D57.0 AND d<58.0 AND d IS NOT NULL)
-     =     OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
-   =       OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+ =         OR (g=3D'jihgfed' AND f LIKE = 'wxyza%')
+         OR (g=3D'mlkjihg' AND = f LIKE 'jklmn%')
   ]])
    =  end, {
         -- = <where7-2.497.2>
@@ -18653,11 +18653,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%')
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = f=3D'vwxyzabcd'
-         OR (g=3D'vutsrqp' = AND f GLOB 'nopqr*')
+         OR = (g=3D'vutsrqp' AND f LIKE 'nopqr%')
      =     OR a=3D37
          OR = a=3D50
   ]])
@@ -18672,11 +18672,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%')
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = f=3D'vwxyzabcd'
-         OR (g=3D'vutsrqp' = AND f GLOB 'nopqr*')
+         OR = (g=3D'vutsrqp' AND f LIKE 'nopqr%')
      =     OR a=3D37
          OR = a=3D50
   ]])
@@ -18693,10 +18693,10 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 83 AND 85) AND = a!=3D84)
          OR = b=3D784
-         OR (f GLOB '?vwxy*' AND = f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR b=3D825
          OR = a=3D80
-         OR (g=3D'tsrqpon' AND f = GLOB 'xyzab*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'xyzab%')
          OR = (d>=3D97.0 AND d<98.0 AND d IS NOT NULL)
    =       OR b=3D531
        =   OR a=3D100
@@ -18714,10 +18714,10 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 83 AND 85) AND = a!=3D84)
          OR = b=3D784
-         OR (f GLOB '?vwxy*' AND = f GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR b=3D825
          OR = a=3D80
-         OR (g=3D'tsrqpon' AND f = GLOB 'xyzab*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'xyzab%')
          OR = (d>=3D97.0 AND d<98.0 AND d IS NOT NULL)
    =       OR b=3D531
        =   OR a=3D100
@@ -18733,7 +18733,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR b=3D220
        =   OR (d>=3D53.0 AND d<54.0 AND d IS NOT = NULL)
   ]])
@@ -18748,7 +18748,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR b=3D220
        =   OR (d>=3D53.0 AND d<54.0 AND d IS NOT = NULL)
   ]])
@@ -18797,9 +18797,9 @@ = test:do_test(
          OR = b=3D894
          OR = c=3D28028
          OR = b=3D905
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
-         OR (g=3D'kjihgfe' = AND f GLOB 'stuvw*')
-         OR (f GLOB = '?bcde*' AND f GLOB 'abcd*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
+     =     OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
  =         OR b=3D1037
  =  ]])
     end, {
@@ -18817,9 = +18817,9 @@ test:do_test(
          = OR b=3D894
          OR = c=3D28028
          OR = b=3D905
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
-         OR (g=3D'kjihgfe' = AND f GLOB 'stuvw*')
-         OR (f GLOB = '?bcde*' AND f GLOB 'abcd*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
+     =     OR (f LIKE '_bcde%' AND f LIKE 'abcd%')
  =         OR b=3D1037
  =  ]])
     end, {
@@ -18863,9 = +18863,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'wvutsrq' AND f = LIKE 'mnopq%')
          OR = b=3D861
-         OR (g=3D'rqponml' AND f = GLOB 'lmnop*')
+         OR (g=3D'rqponml' = AND f LIKE 'lmnop%')
   ]])
    =  end, {
         -- = <where7-2.504.1>
@@ -18878,9 +18878,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'mnopq%')
    =       OR b=3D861
-         = OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'rqponml' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.504.2>
@@ -18894,13 = +18894,13 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D704
- =         OR (g=3D'wvutsrq' AND f GLOB = 'klmno*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'klmno%')
          OR = (d>=3D51.0 AND d<52.0 AND d IS NOT NULL)
    =       OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
          OR b=3D25
- =         OR (g=3D'jihgfed' AND f GLOB = 'zabcd*')
+         OR (g=3D'jihgfed' AND = f LIKE 'zabcd%')
          OR = b=3D487
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 77 AND 79) AND a!=3D78)
        =   OR (d>=3D23.0 AND d<24.0 AND d IS NOT = NULL)
          OR (d>=3D84.0 AND = d<85.0 AND d IS NOT NULL)
@@ -18917,13 +18917,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D704
-   =       OR (g=3D'wvutsrq' AND f GLOB 'klmno*')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'klmno%')
          OR (d>=3D51.0 = AND d<52.0 AND d IS NOT NULL)
        =   OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
          OR b=3D25
- =         OR (g=3D'jihgfed' AND f GLOB = 'zabcd*')
+         OR (g=3D'jihgfed' AND = f LIKE 'zabcd%')
          OR = b=3D487
-         OR (g=3D'hgfedcb' AND f = GLOB 'fghij*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'fghij%')
          OR ((a = BETWEEN 77 AND 79) AND a!=3D78)
        =   OR (d>=3D23.0 AND d<24.0 AND d IS NOT = NULL)
          OR (d>=3D84.0 AND = d<85.0 AND d IS NOT NULL)
@@ -18940,16 +18940,16 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D19
-   =       OR (g=3D'onmlkji' AND f GLOB 'xyzab*')
+ =         OR (g=3D'onmlkji' AND f LIKE = 'xyzab%')
          OR = b=3D674
          OR (d>=3D60.0 = AND d<61.0 AND d IS NOT NULL)
        =   OR b=3D355
          OR ((a = BETWEEN 72 AND 74) AND a!=3D73)
-         = OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR c=3D28028
        =   OR b=3D649
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
-       =   OR (g=3D'srqponm' AND f GLOB 'fghij*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
+   =       OR (g=3D'srqponm' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.506.1>
@@ -18963,16 +18963,16 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D19
-   =       OR (g=3D'onmlkji' AND f GLOB 'xyzab*')
+ =         OR (g=3D'onmlkji' AND f LIKE = 'xyzab%')
          OR = b=3D674
          OR (d>=3D60.0 = AND d<61.0 AND d IS NOT NULL)
        =   OR b=3D355
          OR ((a = BETWEEN 72 AND 74) AND a!=3D73)
-         = OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR c=3D28028
        =   OR b=3D649
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
-       =   OR (g=3D'srqponm' AND f GLOB 'fghij*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
+   =       OR (g=3D'srqponm' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.506.2>
@@ -19020,7 +19020,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D135
-   =       OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'uvwxy%')
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
   ]])
    =  end, {
@@ -19035,7 +19035,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D135
-   =       OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'uvwxy%')
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
   ]])
    =  end, {
@@ -19049,8 +19049,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-       =   OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+   =       OR (f LIKE '_klmn%' AND f LIKE = 'jklm%')
   ]])
     end, = {
         -- = <where7-2.509.1>
@@ -19063,8 +19063,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'ijklm*')
-       =   OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'ijklm%')
+   =       OR (f LIKE '_klmn%' AND f LIKE = 'jklm%')
   ]])
     end, = {
         -- = <where7-2.509.2>
@@ -19077,7 +19077,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR f=3D'ghijklmno'
  =  ]])
     end, {
@@ -19091,7 = +19091,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'wxyza%')
          OR = f=3D'ghijklmno'
   ]])
    =  end, {
@@ -19187,7 +19187,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?lmno*' AND f GLOB 'klmn*')
+      WHERE = (f LIKE '_lmno%' AND f LIKE 'klmn%')
      =     OR ((a BETWEEN 5 AND 7) AND a!=3D6)
  =         OR b=3D99
      =     OR a=3D54
@@ -19203,7 +19203,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?lmno*' AND f GLOB 'klmn*')
+      WHERE = (f LIKE '_lmno%' AND f LIKE 'klmn%')
      =     OR ((a BETWEEN 5 AND 7) AND a!=3D6)
  =         OR b=3D99
      =     OR a=3D54
@@ -19220,7 +19220,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D300
-   =       OR (g=3D'mlkjihg' AND f GLOB 'klmno*')
+ =         OR (g=3D'mlkjihg' AND f LIKE = 'klmno%')
          OR = b=3D319
          OR = f=3D'fghijklmn'
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
@@ -19238,7 = +19238,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D300
- =         OR (g=3D'mlkjihg' AND f GLOB = 'klmno*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'klmno%')
          OR = b=3D319
          OR = f=3D'fghijklmn'
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
@@ -19263,7 = +19263,7 @@ test:do_test(
          = OR ((a BETWEEN 5 AND 7) AND a!=3D6)
      =     OR (d>=3D82.0 AND d<83.0 AND d IS NOT = NULL)
          OR b=3D748
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.515.1>
@@ -19284,7 +19284,7 @@ = test:do_test(
          OR ((a = BETWEEN 5 AND 7) AND a!=3D6)
        =   OR (d>=3D82.0 AND d<83.0 AND d IS NOT = NULL)
          OR b=3D748
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.515.2>
@@ -19333,10 +19333,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR (d>=3D67.0 AND d<68.0 AND d IS NOT = NULL)
          OR b=3D110
- =         OR (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+         OR (g=3D'gfedcba' AND = f LIKE 'nopqr%')
          OR = c=3D26026
          OR (d>=3D69.0 = AND d<70.0 AND d IS NOT NULL)
        =   OR b=3D850
@@ -19353,10 +19353,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'wxyza%')
    =       OR (d>=3D67.0 AND d<68.0 AND d IS NOT = NULL)
          OR b=3D110
- =         OR (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+         OR (g=3D'gfedcba' AND = f LIKE 'nopqr%')
          OR = c=3D26026
          OR (d>=3D69.0 = AND d<70.0 AND d IS NOT NULL)
        =   OR b=3D850
@@ -19375,9 +19375,9 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 74 AND 76) AND = a!=3D75)
          OR ((a BETWEEN 1 = AND 3) AND a!=3D2)
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
-     =     OR (g=3D'mlkjihg' AND f GLOB 'klmno*')
+   =       OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
+         OR (g=3D'mlkjihg' AND = f LIKE 'klmno%')
          OR = b=3D135
          OR = a=3D28
          OR ((a BETWEEN 1 AND = 3) AND a!=3D2)
@@ -19396,9 +19396,9 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 74 AND 76) AND = a!=3D75)
          OR ((a BETWEEN 1 = AND 3) AND a!=3D2)
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
-     =     OR (g=3D'mlkjihg' AND f GLOB 'klmno*')
+   =       OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
+         OR (g=3D'mlkjihg' AND = f LIKE 'klmno%')
          OR = b=3D135
          OR = a=3D28
          OR ((a BETWEEN 1 AND = 3) AND a!=3D2)
@@ -19485,9 +19485,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR (d>=3D61.0 AND d<62.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'pqrst*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'pqrst%')
          OR = a=3D52
   ]])
     end, = {
@@ -19501,9 +19501,9 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'ghijk%')
          OR = (d>=3D61.0 AND d<62.0 AND d IS NOT NULL)
-     =     OR (g=3D'vutsrqp' AND f GLOB 'pqrst*')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'pqrst%')
          OR = a=3D52
   ]])
     end, = {
@@ -19517,7 +19517,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'abcde*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'abcde%')
          OR ((a = BETWEEN 2 AND 4) AND a!=3D3)
        =   OR a=3D86
          OR = c=3D33033
@@ -19535,7 +19535,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ihgfedc' AND f GLOB 'abcde*')
+     =  WHERE (g=3D'ihgfedc' AND f LIKE 'abcde%')
    =       OR ((a BETWEEN 2 AND 4) AND a!=3D3)
  =         OR a=3D86
      =     OR c=3D33033
@@ -19557,7 +19557,7 @@ = test:do_test(
          OR = b=3D517
          OR (d>=3D63.0 = AND d<64.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
-     =     OR (g=3D'srqponm' AND f GLOB 'fghij*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'fghij%')
          OR = f=3D'defghijkl'
          OR = b=3D707
          OR = c>=3D34035
@@ -19580,7 +19580,7 @@ = test:do_test(
          OR = b=3D517
          OR (d>=3D63.0 = AND d<64.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 67 AND 69) AND a!=3D68)
-     =     OR (g=3D'srqponm' AND f GLOB 'fghij*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'fghij%')
          OR = f=3D'defghijkl'
          OR = b=3D707
          OR = c>=3D34035
@@ -19602,7 +19602,7 @@ = test:do_test(
       WHERE (d>=3D96.0 = AND d<97.0 AND d IS NOT NULL)
        =   OR b=3D209
          OR = b=3D399
-         OR (g=3D'fedcbaz' AND f = GLOB 'tuvwx*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
   ]])
    =  end, {
         -- = <where7-2.524.1>
@@ -19618,7 +19618,7 @@ = test:do_test(
       WHERE (d>=3D96.0 = AND d<97.0 AND d IS NOT NULL)
        =   OR b=3D209
          OR = b=3D399
-         OR (g=3D'fedcbaz' AND f = GLOB 'tuvwx*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'tuvwx%')
   ]])
    =  end, {
         -- = <where7-2.524.2>
@@ -19632,11 +19632,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 18 AND 20) AND = a!=3D19)
-         OR (g=3D'qponmlk' AND f = GLOB 'mnopq*')
+         OR (g=3D'qponmlk' = AND f LIKE 'mnopq%')
          OR = b=3D597
          OR a=3D95
-=         OR (g=3D'nmlkjih' AND f GLOB = 'defgh*')
-         OR (f GLOB '?zabc*' = AND f GLOB 'yzab*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'defgh%')
+       =   OR (f LIKE '_zabc%' AND f LIKE 'yzab%')
    =       OR b=3D432
        =   OR (d>=3D92.0 AND d<93.0 AND d IS NOT = NULL)
   ]])
@@ -19652,11 +19652,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 18 AND 20) AND = a!=3D19)
-         OR (g=3D'qponmlk' AND f = GLOB 'mnopq*')
+         OR (g=3D'qponmlk' = AND f LIKE 'mnopq%')
          OR = b=3D597
          OR a=3D95
-=         OR (g=3D'nmlkjih' AND f GLOB = 'defgh*')
-         OR (f GLOB '?zabc*' = AND f GLOB 'yzab*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'defgh%')
+       =   OR (f LIKE '_zabc%' AND f LIKE 'yzab%')
    =       OR b=3D432
        =   OR (d>=3D92.0 AND d<93.0 AND d IS NOT = NULL)
   ]])
@@ -19680,7 +19680,7 @@ = test:do_test(
          OR = c=3D21021
          OR = b=3D330
          OR = b=3D231
-         OR (g=3D'tsrqpon' AND f = GLOB 'bcdef*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'bcdef%')
   ]])
    =  end, {
         -- = <where7-2.526.1>
@@ -19702,7 +19702,7 @@ = test:do_test(
          OR = c=3D21021
          OR = b=3D330
          OR = b=3D231
-         OR (g=3D'tsrqpon' AND f = GLOB 'bcdef*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'bcdef%')
   ]])
    =  end, {
         -- = <where7-2.526.2>
@@ -19715,7 +19715,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'fghij*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'fghij%')
    =       OR ((a BETWEEN 64 AND 66) AND = a!=3D65)
          OR f IS = NULL
   ]])
@@ -19730,7 +19730,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'fghij*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'fghij%')
    =       OR ((a BETWEEN 64 AND 66) AND = a!=3D65)
          OR f IS = NULL
   ]])
@@ -19746,9 +19746,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 99 AND 101) = AND a!=3D100)
-         OR (g=3D'fedcbaz' = AND f GLOB 'pqrst*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'pqrst%')
      =     OR 1000000<b
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR b=3D990
  =  ]])
     end, {
@@ -19763,9 = +19763,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 99 AND = 101) AND a!=3D100)
-         OR = (g=3D'fedcbaz' AND f GLOB 'pqrst*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'pqrst%')
    =       OR 1000000<b
-       =   OR (g=3D'jihgfed' AND f GLOB 'xyzab*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
  =         OR b=3D990
  =  ]])
     end, {
@@ -19781,7 = +19781,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D165
  =         OR a=3D69
-       =   OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
  =  ]])
     end, {
    =      -- <where7-2.529.1>
@@ -19796,7 = +19796,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D165
  =         OR a=3D69
-       =   OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
  =  ]])
     end, {
    =      -- <where7-2.529.2>
@@ -19809,13 = +19809,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'defgh*')
-         OR (g=3D'ponmlkj' AND = f GLOB 'uvwxy*')
+      WHERE (g=3D'nmlkjih' = AND f LIKE 'defgh%')
+         OR = (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
      =     OR b=3D784
          OR = b=3D583
          OR (d>=3D54.0 = AND d<55.0 AND d IS NOT NULL)
        =   OR b=3D814
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR b=3D619
        =   OR (d>=3D80.0 AND d<81.0 AND d IS NOT = NULL)
   ]])
@@ -19830,13 +19830,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'nmlkjih' AND f GLOB 'defgh*')
-       =   OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'uvwxy%')
          OR = b=3D784
          OR = b=3D583
          OR (d>=3D54.0 = AND d<55.0 AND d IS NOT NULL)
        =   OR b=3D814
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR b=3D619
        =   OR (d>=3D80.0 AND d<81.0 AND d IS NOT = NULL)
   ]])
@@ -19853,7 +19853,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D86
  =         OR b=3D484
-       =   OR (g=3D'ihgfedc' AND f GLOB 'bcdef*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
  =         OR b=3D418
      =     OR b=3D509
          OR = a=3D42
@@ -19876,7 +19876,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE a=3D86
          OR = b=3D484
-         OR (g=3D'ihgfedc' AND f = GLOB 'bcdef*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'bcdef%')
          OR = b=3D418
          OR = b=3D509
          OR = a=3D42
@@ -20007,7 +20007,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?klmn*' AND f = GLOB 'jklm*')
+      WHERE (f LIKE '_klmn%' AND = f LIKE 'jklm%')
          OR = c=3D5005
          OR ((a BETWEEN 50 = AND 52) AND a!=3D51)
          OR = a=3D93
@@ -20015,7 +20015,7 @@ test:do_test(
  =         OR b=3D619
      =     OR b=3D234
          OR = b=3D55
-         OR (f GLOB '?wxyz*' AND f = GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR (d>=3D56.0 AND d<57.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -20029,7 +20029,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (f GLOB '?klmn*' AND f = GLOB 'jklm*')
+      WHERE (f LIKE '_klmn%' AND = f LIKE 'jklm%')
          OR = c=3D5005
          OR ((a BETWEEN 50 = AND 52) AND a!=3D51)
          OR = a=3D93
@@ -20037,7 +20037,7 @@ test:do_test(
  =         OR b=3D619
      =     OR b=3D234
          OR = b=3D55
-         OR (f GLOB '?wxyz*' AND f = GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR (d>=3D56.0 AND d<57.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -20053,11 +20053,11 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D355
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'rstuv%')
          OR = b=3D806
          OR = b=3D462
          OR = b=3D531
-         OR (g=3D'lkjihgf' AND f = GLOB 'lmnop*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'lmnop%')
          OR = f=3D'mnopqrstu'
   ]])
    =  end, {
@@ -20073,11 +20073,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D355
  =         OR (d>=3D49.0 AND d<50.0 AND d IS NOT = NULL)
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'rstuv%')
          OR = b=3D806
          OR = b=3D462
          OR = b=3D531
-         OR (g=3D'lkjihgf' AND f = GLOB 'lmnop*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'lmnop%')
          OR = f=3D'mnopqrstu'
   ]])
    =  end, {
@@ -20093,9 +20093,9 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 60 AND 62) AND = a!=3D61)
          OR = f=3D'pqrstuvwx'
-         OR (g=3D'nmlkjih' = AND f GLOB 'efghi*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'efghi%')
      =     OR b=3D495
-         OR = (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
    =       OR a=3D75
  =  ]])
     end, {
@@ -20111,9 = +20111,9 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 60 AND 62) AND = a!=3D61)
          OR = f=3D'pqrstuvwx'
-         OR (g=3D'nmlkjih' = AND f GLOB 'efghi*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'efghi%')
      =     OR b=3D495
-         OR = (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
    =       OR a=3D75
  =  ]])
     end, {
@@ -20127,8 = +20127,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'efghi*')
-         OR (g=3D'utsrqpo' AND = f GLOB 'vwxyz*')
+      WHERE (g=3D'xwvutsr' = AND f LIKE 'efghi%')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR b=3D748
          OR = b=3D913
          OR (d>=3D5.0 AND = d<6.0 AND d IS NOT NULL)
@@ -20145,8 +20145,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'efghi*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'vwxyz%')
          OR = b=3D748
          OR = b=3D913
          OR (d>=3D5.0 AND = d<6.0 AND d IS NOT NULL)
@@ -20167,7 +20167,7 @@ = test:do_test(
          OR = b=3D902
          OR ((a BETWEEN 63 = AND 65) AND a!=3D64)
          OR = b=3D168
-         OR (g=3D'lkjihgf' AND f = GLOB 'pqrst*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'pqrst%')
          OR = a=3D50
          OR = f=3D'uvwxyzabc'
          OR = b=3D836
@@ -20189,7 +20189,7 @@ test:do_test(
  =         OR b=3D902
      =     OR ((a BETWEEN 63 AND 65) AND a!=3D64)
  =         OR b=3D168
-       =   OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
  =         OR a=3D50
      =     OR f=3D'uvwxyzabc'
        =   OR b=3D836
@@ -20243,13 +20243,13 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D814
  =         OR c=3D30030
-     =     OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'opqrs%')
          OR (d>=3D34.0 = AND d<35.0 AND d IS NOT NULL)
        =   OR a=3D16
          OR = b=3D1048
          OR = b=3D113
          OR (d>=3D61.0 = AND d<62.0 AND d IS NOT NULL)
-         = OR (g=3D'xwvutsr' AND f GLOB 'defgh*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'defgh%')
    =       OR b=3D729
        =   OR a=3D54
   ]])
@@ -20266,13 = +20266,13 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D814
  =         OR c=3D30030
-     =     OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'opqrs%')
          OR (d>=3D34.0 = AND d<35.0 AND d IS NOT NULL)
        =   OR a=3D16
          OR = b=3D1048
          OR = b=3D113
          OR (d>=3D61.0 = AND d<62.0 AND d IS NOT NULL)
-         = OR (g=3D'xwvutsr' AND f GLOB 'defgh*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'defgh%')
    =       OR b=3D729
        =   OR a=3D54
   ]])
@@ -20288,15 = +20288,15 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D399
- =         OR (g=3D'kjihgfe' AND f GLOB = 'tuvwx*')
+         OR (g=3D'kjihgfe' AND = f LIKE 'tuvwx%')
          OR = b=3D814
          OR = c=3D22022
          OR (d>=3D8.0 = AND d<9.0 AND d IS NOT NULL)
-         = OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+       =   OR (f LIKE '_mnop%' AND f LIKE 'lmno%')
    =       OR a=3D1
        =   OR b=3D311
          OR = b=3D121
-         OR (f GLOB '?hijk*' AND = f GLOB 'ghij*')
+         OR (f LIKE = '_hijk%' AND f LIKE 'ghij%')
        =   OR b=3D198
   ]])
    =  end, {
@@ -20311,15 +20311,15 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D399
-   =       OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'tuvwx%')
          OR = b=3D814
          OR = c=3D22022
          OR (d>=3D8.0 = AND d<9.0 AND d IS NOT NULL)
-         = OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+       =   OR (f LIKE '_mnop%' AND f LIKE 'lmno%')
    =       OR a=3D1
        =   OR b=3D311
          OR = b=3D121
-         OR (f GLOB '?hijk*' AND = f GLOB 'ghij*')
+         OR (f LIKE = '_hijk%' AND f LIKE 'ghij%')
        =   OR b=3D198
   ]])
    =  end, {
@@ -20403,7 +20403,7 @@ = test:do_test(
          OR = a=3D22
          OR = b=3D594
          OR (d>=3D15.0 = AND d<16.0 AND d IS NOT NULL)
-         = OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+       =   OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
  =  ]])
     end, {
    =      -- <where7-2.545.1>
@@ -20424,7 = +20424,7 @@ test:do_test(
          = OR a=3D22
          OR = b=3D594
          OR (d>=3D15.0 = AND d<16.0 AND d IS NOT NULL)
-         = OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+       =   OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
  =  ]])
     end, {
    =      -- <where7-2.545.2>
@@ -20443,7 = +20443,7 @@ test:do_test(
          = OR (d>=3D25.0 AND d<26.0 AND d IS NOT NULL)
  =         OR (d>=3D69.0 AND d<70.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 3 AND = 5) AND a!=3D4)
-         OR (f GLOB = '?bcde*' AND f GLOB 'abcd*')
+         OR = (f LIKE '_bcde%' AND f LIKE 'abcd%')
      =     OR f=3D'mnopqrstu'
        =   OR (d>=3D17.0 AND d<18.0 AND d IS NOT = NULL)
          OR b=3D902
@@= -20465,7 +20465,7 @@ test:do_test(
      =     OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
          OR (d>=3D69.0 AND = d<70.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 3 AND 5) AND a!=3D4)
-     =     OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+   =       OR (f LIKE '_bcde%' AND f LIKE = 'abcd%')
          OR = f=3D'mnopqrstu'
          OR = (d>=3D17.0 AND d<18.0 AND d IS NOT NULL)
    =       OR b=3D902
@@ -20481,8 +20481,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'onmlkji' AND f GLOB 'zabcd*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =  WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
          OR = a=3D13
   ]])
     end, = {
@@ -20496,8 +20496,8 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'onmlkji' AND f GLOB = 'zabcd*')
-         OR (f GLOB '?qrst*' = AND f GLOB 'pqrs*')
+      WHERE (g=3D'onmlkji' = AND f LIKE 'zabcd%')
+         OR (f LIKE = '_qrst%' AND f LIKE 'pqrs%')
        =   OR a=3D13
   ]])
    =  end, {
@@ -20511,11 +20511,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'edcbazy' AND f LIKE 'wxyza%')
    =       OR b=3D410
-         = OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D418
-         = OR (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR (d>=3D65.0 AND d<66.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -20529,11 +20529,11 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'wxyza%')
          OR = b=3D410
-         OR (g=3D'ihgfedc' AND f = GLOB 'efghi*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'efghi%')
          OR = b=3D418
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
          OR = (d>=3D65.0 AND d<66.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -20552,8 = +20552,8 @@ test:do_test(
          = OR a=3D56
          OR = a=3D46
          OR (d>=3D100.0 = AND d<101.0 AND d IS NOT NULL)
-       =   OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
-     =     OR (g=3D'wvutsrq' AND f GLOB 'klmno*')
+   =       OR (g=3D'mlkjihg' AND f LIKE 'jklmn%')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'klmno%')
          OR (d>=3D41.0 = AND d<42.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -20572,8 = +20572,8 @@ test:do_test(
          = OR a=3D56
          OR = a=3D46
          OR (d>=3D100.0 = AND d<101.0 AND d IS NOT NULL)
-       =   OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
-     =     OR (g=3D'wvutsrq' AND f GLOB 'klmno*')
+   =       OR (g=3D'mlkjihg' AND f LIKE 'jklmn%')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'klmno%')
          OR (d>=3D41.0 = AND d<42.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -20633,7 = +20633,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D539
  =         OR b=3D418
-       =   OR (g=3D'vutsrqp' AND f GLOB 'pqrst*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
  =         OR b=3D759
  =  ]])
     end, {
@@ -20649,7 = +20649,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D539
  =         OR b=3D418
-       =   OR (g=3D'vutsrqp' AND f GLOB 'pqrst*')
+     =     OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
  =         OR b=3D759
  =  ]])
     end, {
@@ -20664,8 = +20664,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D1001
- =         OR (g=3D'wvutsrq' AND f GLOB = 'ijklm*')
-         OR (g=3D'nmlkjih' AND = f GLOB 'cdefg*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'ijklm%')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
      =     OR c=3D34034
          = OR a=3D84
   ]])
@@ -20681,8 +20681,8 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D1001
- =         OR (g=3D'wvutsrq' AND f GLOB = 'ijklm*')
-         OR (g=3D'nmlkjih' AND = f GLOB 'cdefg*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'ijklm%')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
      =     OR c=3D34034
          = OR a=3D84
   ]])
@@ -20702,7 +20702,7 @@ = test:do_test(
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR (d>=3D63.0 = AND d<64.0 AND d IS NOT NULL)
-         = OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+       =   OR (f LIKE '_qrst%' AND f LIKE 'pqrs%')
    =       OR b=3D322
        =   OR (d>=3D60.0 AND d<61.0 AND d IS NOT = NULL)
          OR = c=3D34034
@@ -20724,7 +20724,7 @@ = test:do_test(
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR (d>=3D63.0 = AND d<64.0 AND d IS NOT NULL)
-         = OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+       =   OR (f LIKE '_qrst%' AND f LIKE 'pqrs%')
    =       OR b=3D322
        =   OR (d>=3D60.0 AND d<61.0 AND d IS NOT = NULL)
          OR = c=3D34034
@@ -20742,12 +20742,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D13013
- =         OR (g=3D'fedcbaz' AND f GLOB = 'qrstu*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'qrstu%')
          OR = (d>=3D42.0 AND d<43.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'jklmn%')
          OR = b=3D47
          OR (d>=3D79.0 AND = d<80.0 AND d IS NOT NULL)
-         OR = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'rstuv%')
    =       OR b=3D828
  =  ]])
     end, {
@@ -20762,12 = +20762,12 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE c=3D13013
- =         OR (g=3D'fedcbaz' AND f GLOB = 'qrstu*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'qrstu%')
          OR = (d>=3D42.0 AND d<43.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'jklmn%')
          OR = b=3D47
          OR (d>=3D79.0 AND = d<80.0 AND d IS NOT NULL)
-         OR = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'rstuv%')
    =       OR b=3D828
  =  ]])
     end, {
@@ -20783,7 = +20783,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D451
  =         OR b=3D836
-       =   OR (g=3D'onmlkji' AND f GLOB 'wxyza*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.555.1>
@@ -20798,7 = +20798,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D451
  =         OR b=3D836
-       =   OR (g=3D'onmlkji' AND f GLOB 'wxyza*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.555.2>
@@ -20848,7 = +20848,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE = f=3D'tuvwxyzab'
-         OR (g=3D'nmlkjih' = AND f GLOB 'efghi*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.557.1>
@@ -20862,7 = +20862,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'tuvwxyzab'
-         OR (g=3D'nmlkjih' = AND f GLOB 'efghi*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'efghi%')
  =  ]])
     end, {
    =      -- <where7-2.557.2>
@@ -20881,7 = +20881,7 @@ test:do_test(
          = OR d<0.0
          OR = b=3D982
          OR (d>=3D2.0 AND = d<3.0 AND d IS NOT NULL)
-         OR = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR ((a BETWEEN 97 AND 99) AND = a!=3D98)
          OR e IS = NULL
          OR = c=3D32032
@@ -20904,7 +20904,7 @@ = test:do_test(
          OR = d<0.0
          OR = b=3D982
          OR (d>=3D2.0 AND = d<3.0 AND d IS NOT NULL)
-         OR = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR ((a BETWEEN 97 AND 99) AND = a!=3D98)
          OR e IS = NULL
          OR = c=3D32032
@@ -20922,9 +20922,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D62
-   =       OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
+ =         OR (f LIKE '_yzab%' AND f LIKE = 'xyza%')
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
-         OR = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.559.1>
@@ -20938,9 = +20938,9 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE a=3D62
- =         OR (f GLOB '?yzab*' AND f GLOB = 'xyza*')
+         OR (f LIKE '_yzab%' AND = f LIKE 'xyza%')
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
-         = OR (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.559.2>
@@ -20994,8 = +20994,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D44
- =         OR (g=3D'qponmlk' AND f GLOB = 'mnopq*')
-         OR (g=3D'wvutsrq' AND = f GLOB 'klmno*')
+         OR (g=3D'qponmlk'= AND f LIKE 'mnopq%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.561.1>
@@ -21009,8 = +21009,8 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D44
- =         OR (g=3D'qponmlk' AND f GLOB = 'mnopq*')
-         OR (g=3D'wvutsrq' AND = f GLOB 'klmno*')
+         OR (g=3D'qponmlk'= AND f LIKE 'mnopq%')
+         OR = (g=3D'wvutsrq' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.561.2>
@@ -21026,7 = +21026,7 @@ test:do_test(
       WHERE = b=3D883
          OR = b=3D311
          OR = b=3D880
-         OR (g=3D'qponmlk' AND f = GLOB 'pqrst*')
+         OR (g=3D'qponmlk' = AND f LIKE 'pqrst%')
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR a=3D88
          OR = b=3D154
@@ -21048,7 +21048,7 @@ test:do_test(
  =      WHERE b=3D883
        =   OR b=3D311
          OR = b=3D880
-         OR (g=3D'qponmlk' AND f = GLOB 'pqrst*')
+         OR (g=3D'qponmlk' = AND f LIKE 'pqrst%')
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR a=3D88
          OR = b=3D154
@@ -21067,12 +21067,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'onmlkji' AND f GLOB 'xyzab*')
+     =  WHERE (g=3D'onmlkji' AND f LIKE 'xyzab%')
    =       OR a=3D10
        =   OR b=3D190
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
        =   OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'mnopq*')
+         OR (g=3D'gfedcba' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 67 AND 69) AND a!=3D68)
        =   OR b=3D385
          OR = a=3D82
@@ -21090,12 +21090,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'onmlkji' AND f GLOB 'xyzab*')
+     =  WHERE (g=3D'onmlkji' AND f LIKE 'xyzab%')
    =       OR a=3D10
        =   OR b=3D190
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
        =   OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'mnopq*')
+         OR (g=3D'gfedcba' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 67 AND 69) AND a!=3D68)
        =   OR b=3D385
          OR = a=3D82
@@ -21151,7 +21151,7 @@ test:do_test(
  =         OR a=3D49
      =     OR ((a BETWEEN 33 AND 35) AND a!=3D34)
  =         OR c=3D33033
-     =     OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'stuvw%')
          OR (d>=3D81.0 = AND d<82.0 AND d IS NOT NULL)
        =   OR g IS NULL
          OR = b=3D220
@@ -21174,7 +21174,7 @@ test:do_test(
  =         OR a=3D49
      =     OR ((a BETWEEN 33 AND 35) AND a!=3D34)
  =         OR c=3D33033
-     =     OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'stuvw%')
          OR (d>=3D81.0 = AND d<82.0 AND d IS NOT NULL)
        =   OR g IS NULL
          OR = b=3D220
@@ -21191,7 +21191,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'tuvwx*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'tuvwx%')
          OR = b=3D212
          OR = b=3D418
          OR ((a BETWEEN 31 = AND 33) AND a!=3D32)
@@ -21207,7 +21207,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D212
        =   OR b=3D418
          OR ((a = BETWEEN 31 AND 33) AND a!=3D32)
@@ -21283,8 +21283,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
-       =   OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%')
+   =       OR (f LIKE '_bcde%' AND f LIKE = 'abcd%')
   ]])
     end, = {
         -- = <where7-2.569.1>
@@ -21297,8 +21297,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
-       =   OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'jklmn%')
+   =       OR (f LIKE '_bcde%' AND f LIKE = 'abcd%')
   ]])
     end, = {
         -- = <where7-2.569.2>
@@ -21356,7 +21356,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D18018
- =         OR (g=3D'ihgfedc' AND f GLOB = 'abcde*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'abcde%')
          OR = b=3D410
          OR = b=3D858
          OR (d>=3D49.0 = AND d<50.0 AND d IS NOT NULL)
@@ -21373,7 +21373,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE c=3D18018
- =         OR (g=3D'ihgfedc' AND f GLOB = 'abcde*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'abcde%')
          OR = b=3D410
          OR = b=3D858
          OR (d>=3D49.0 = AND d<50.0 AND d IS NOT NULL)
@@ -21389,7 +21389,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
    =       OR b=3D781
  =  ]])
     end, {
@@ -21403,7 = +21403,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ponmlkj' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'ponmlkj' AND f = LIKE 'vwxyz%')
          OR = b=3D781
   ]])
     end, = {
@@ -21420,10 +21420,10 @@ test:do_test(
  =      WHERE b=3D1070
        =   OR ((a BETWEEN 50 AND 52) AND a!=3D51)
    =       OR a=3D54
-         = OR (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'zabcd%')
    =       OR a=3D9
        =   OR (d>=3D47.0 AND d<48.0 AND d IS NOT NULL)
- =         OR (f GLOB '?ijkl*' AND f GLOB = 'hijk*')
+         OR (f LIKE '_ijkl%' AND = f LIKE 'hijk%')
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -21440,10 = +21440,10 @@ test:do_test(
       WHERE = b=3D1070
          OR ((a BETWEEN 50 = AND 52) AND a!=3D51)
          OR = a=3D54
-         OR (g=3D'tsrqpon' AND f = GLOB 'zabcd*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'zabcd%')
          OR = a=3D9
          OR (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
-         OR = (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+       =   OR (f LIKE '_ijkl%' AND f LIKE 'hijk%')
    =       OR (d>=3D63.0 AND d<64.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -21460,8 +21460,8 @@ test:do_test(
  =      WHERE a=3D55
        =   OR a=3D62
          OR = a=3D63
-         OR (g=3D'onmlkji' AND f = GLOB 'yzabc*')
-         OR (g=3D'rqponml' = AND f GLOB 'ijklm*')
+         OR = (g=3D'onmlkji' AND f LIKE 'yzabc%')
+       =   OR (g=3D'rqponml' AND f LIKE 'ijklm%')
    =       OR ((a BETWEEN 99 AND 101) AND = a!=3D100)
   ]])
     end, = {
@@ -21478,8 +21478,8 @@ test:do_test(
  =      WHERE a=3D55
        =   OR a=3D62
          OR = a=3D63
-         OR (g=3D'onmlkji' AND f = GLOB 'yzabc*')
-         OR (g=3D'rqponml' = AND f GLOB 'ijklm*')
+         OR = (g=3D'onmlkji' AND f LIKE 'yzabc%')
+       =   OR (g=3D'rqponml' AND f LIKE 'ijklm%')
    =       OR ((a BETWEEN 99 AND 101) AND = a!=3D100)
   ]])
     end, = {
@@ -21527,9 +21527,9 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D553
          OR ((a = BETWEEN 21 AND 23) AND a!=3D22)
-         = OR (g=3D'onmlkji' AND f GLOB 'wxyza*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
    =       OR (d>=3D59.0 AND d<60.0 AND d IS NOT = NULL)
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = b=3D583
          OR = a=3D56
   ]])
@@ -21546,9 +21546,9 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D553
  =         OR ((a BETWEEN 21 AND 23) AND = a!=3D22)
-         OR (g=3D'onmlkji' AND f = GLOB 'wxyza*')
+         OR (g=3D'onmlkji' = AND f LIKE 'wxyza%')
          OR = (d>=3D59.0 AND d<60.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'jklmn*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'jklmn%')
          OR = b=3D583
          OR = a=3D56
   ]])
@@ -21565,7 +21565,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D83
  =         OR (d>=3D77.0 AND d<78.0 AND d IS NOT = NULL)
-         OR (g=3D'srqponm' AND f = GLOB 'defgh*')
+         OR (g=3D'srqponm' = AND f LIKE 'defgh%')
          OR = a=3D1
          OR ((a BETWEEN 17 AND = 19) AND a!=3D18)
          OR ((a = BETWEEN 49 AND 51) AND a!=3D50)
@@ -21584,7 +21584,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D83
  =         OR (d>=3D77.0 AND d<78.0 AND d IS NOT = NULL)
-         OR (g=3D'srqponm' AND f = GLOB 'defgh*')
+         OR (g=3D'srqponm' = AND f LIKE 'defgh%')
          OR = a=3D1
          OR ((a BETWEEN 17 AND = 19) AND a!=3D18)
          OR ((a = BETWEEN 49 AND 51) AND a!=3D50)
@@ -21635,7 +21635,7 @@ = test:do_test(
          OR = a=3D92
          OR = a=3D63
          OR (d>=3D60.0 AND = d<61.0 AND d IS NOT NULL)
-         OR = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
  =  ]])
     end, {
    =      -- <where7-2.579.1>
@@ -21652,7 = +21652,7 @@ test:do_test(
          = OR a=3D92
          OR = a=3D63
          OR (d>=3D60.0 AND = d<61.0 AND d IS NOT NULL)
-         OR = (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
  =  ]])
     end, {
    =      -- <where7-2.579.2>
@@ -21668,7 = +21668,7 @@ test:do_test(
       WHERE = b=3D440
          OR = f=3D'vwxyzabcd'
          OR = b=3D190
-         OR (f GLOB '?mnop*' AND = f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
        =   OR (d>=3D42.0 AND d<43.0 AND d IS NOT = NULL)
          OR = b=3D88
          OR b=3D58
@@= -21687,7 +21687,7 @@ test:do_test(
      =  WHERE b=3D440
          OR = f=3D'vwxyzabcd'
          OR = b=3D190
-         OR (f GLOB '?mnop*' AND = f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
        =   OR (d>=3D42.0 AND d<43.0 AND d IS NOT = NULL)
          OR = b=3D88
          OR b=3D58
@@= -21707,7 +21707,7 @@ test:do_test(
      =     OR c=3D24024
          = OR (d>=3D82.0 AND d<83.0 AND d IS NOT NULL)
  =         OR b=3D1001
-       =   OR (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+     =     OR (g=3D'tsrqpon' AND f LIKE 'zabcd%')
  =         OR d>1e10
      =     OR b=3D531
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
@@ -21728,7 = +21728,7 @@ test:do_test(
          = OR c=3D24024
          OR (d>=3D82.0= AND d<83.0 AND d IS NOT NULL)
        =   OR b=3D1001
-         OR = (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'zabcd%')
    =       OR d>1e10
        =   OR b=3D531
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
@@ -21774,7 = +21774,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 71 AND = 73) AND a!=3D72)
-         OR (g=3D'yxwvuts'= AND f GLOB 'bcdef*')
+         OR = (g=3D'yxwvuts' AND f LIKE 'bcdef%')
      =     OR ((a BETWEEN 80 AND 82) AND a!=3D81)
  =         OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 91 AND = 93) AND a!=3D92)
@@ -21795,7 +21795,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 71 AND 73) AND = a!=3D72)
-         OR (g=3D'yxwvuts' AND f = GLOB 'bcdef*')
+         OR (g=3D'yxwvuts' = AND f LIKE 'bcdef%')
          OR ((a = BETWEEN 80 AND 82) AND a!=3D81)
        =   OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 91 AND = 93) AND a!=3D92)
@@ -21820,8 +21820,8 @@ = test:do_test(
          OR = b=3D806
          OR = b=3D605
          OR ((a BETWEEN 23 = AND 25) AND a!=3D24)
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
   ]])
     end, = {
         -- = <where7-2.584.1>
@@ -21839,8 +21839,8 @@ = test:do_test(
          OR = b=3D806
          OR = b=3D605
          OR ((a BETWEEN 23 = AND 25) AND a!=3D24)
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
-       =   OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+     =     OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
+   =       OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
   ]])
     end, = {
         -- = <where7-2.584.2>
@@ -21856,9 +21856,9 @@ = test:do_test(
       WHERE ((a BETWEEN 84 = AND 86) AND a!=3D85)
          OR = b=3D572
          OR = c=3D10010
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = a=3D29
-         OR (f GLOB '?ijkl*' AND f = GLOB 'hijk*')
+         OR (f LIKE = '_ijkl%' AND f LIKE 'hijk%')
   ]])
  =    end, {
         -- = <where7-2.585.1>
@@ -21874,9 +21874,9 @@ = test:do_test(
       WHERE ((a BETWEEN 84 = AND 86) AND a!=3D85)
          OR = b=3D572
          OR = c=3D10010
-         OR (g=3D'kjihgfe' AND = f GLOB 'qrstu*')
+         OR (g=3D'kjihgfe'= AND f LIKE 'qrstu%')
          OR = a=3D29
-         OR (f GLOB '?ijkl*' AND f = GLOB 'hijk*')
+         OR (f LIKE = '_ijkl%' AND f LIKE 'hijk%')
   ]])
  =    end, {
         -- = <where7-2.585.2>
@@ -21962,9 +21962,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D5005
- =         OR (g=3D'gfedcba' AND f GLOB = 'klmno*')
+         OR (g=3D'gfedcba' AND = f LIKE 'klmno%')
          OR = (d>=3D43.0 AND d<44.0 AND d IS NOT NULL)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'stuvw%')
          OR = b=3D143
          OR = a=3D68
          OR a=3D77
@@= -21982,9 +21982,9 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE = c=3D5005
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
          OR = (d>=3D43.0 AND d<44.0 AND d IS NOT NULL)
-     =     OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'stuvw%')
          OR = b=3D143
          OR = a=3D68
          OR a=3D77
@@= -22002,10 +22002,10 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE (d>=3D5.0 = AND d<6.0 AND d IS NOT NULL)
-         = OR (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR (d>=3D72.0 AND d<73.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 76 AND = 78) AND a!=3D77)
-         OR (g=3D'kjihgfe'= AND f GLOB 'qrstu*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'qrstu%')
      =     OR a=3D99
          OR = ((a BETWEEN 12 AND 14) AND a!=3D13)
  =  ]])
@@ -22021,10 +22021,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D5.0 AND d<6.0 = AND d IS NOT NULL)
-         OR = (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR (d>=3D72.0 AND d<73.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 76 AND = 78) AND a!=3D77)
-         OR (g=3D'kjihgfe'= AND f GLOB 'qrstu*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'qrstu%')
      =     OR a=3D99
          OR = ((a BETWEEN 12 AND 14) AND a!=3D13)
  =  ]])
@@ -22039,12 +22039,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'opqrs*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'opqrs%')
    =       OR ((a BETWEEN 88 AND 90) AND = a!=3D89)
          OR (d>=3D13.0 = AND d<14.0 AND d IS NOT NULL)
-         = OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
    =       OR b=3D971
-         = OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.590.1>
@@ -22057,12 = +22057,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'opqrs*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'opqrs%')
          OR ((a = BETWEEN 88 AND 90) AND a!=3D89)
        =   OR (d>=3D13.0 AND d<14.0 AND d IS NOT NULL)
- =         OR (g=3D'xwvutsr' AND f GLOB = 'fghij*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'fghij%')
          OR = b=3D971
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.590.2>
@@ -22075,12 +22075,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?lmno*' AND f GLOB 'klmn*')
+      WHERE = (f LIKE '_lmno%' AND f LIKE 'klmn%')
      =     OR b=3D806
-         OR = (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
    =       OR b=3D1015
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
-     =     OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
+   =       OR (f LIKE '_opqr%' AND f LIKE = 'nopq%')
   ]])
     end, = {
         -- = <where7-2.591.1>
@@ -22093,12 +22093,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?lmno*' AND f GLOB 'klmn*')
+      WHERE = (f LIKE '_lmno%' AND f LIKE 'klmn%')
      =     OR b=3D806
-         OR = (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
    =       OR b=3D1015
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
-     =     OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
+   =       OR (f LIKE '_opqr%' AND f LIKE = 'nopq%')
   ]])
     end, = {
         -- = <where7-2.591.2>
@@ -22119,7 +22119,7 @@ = test:do_test(
          OR = a=3D26
          OR = b=3D1048
          OR = b=3D561
-         OR (g=3D'rqponml' AND f = GLOB 'klmno*')
+         OR (g=3D'rqponml' = AND f LIKE 'klmno%')
          OR ((a = BETWEEN 55 AND 57) AND a!=3D56)
        =   OR a=3D56
   ]])
@@ -22142,7 = +22142,7 @@ test:do_test(
          = OR a=3D26
          OR = b=3D1048
          OR = b=3D561
-         OR (g=3D'rqponml' AND f = GLOB 'klmno*')
+         OR (g=3D'rqponml' = AND f LIKE 'klmno%')
          OR ((a = BETWEEN 55 AND 57) AND a!=3D56)
        =   OR a=3D56
   ]])
@@ -22165,7 = +22165,7 @@ test:do_test(
          = OR b=3D113
          OR (d>=3D16.0 = AND d<17.0 AND d IS NOT NULL)
        =   OR b=3D385
-         OR = (g=3D'hgfedcb' AND f GLOB 'fghij*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.593.1>
@@ -22186,7 = +22186,7 @@ test:do_test(
          = OR b=3D113
          OR (d>=3D16.0 = AND d<17.0 AND d IS NOT NULL)
        =   OR b=3D385
-         OR = (g=3D'hgfedcb' AND f GLOB 'fghij*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.593.2>
@@ -22204,7 = +22204,7 @@ test:do_test(
          = OR b=3D674
          OR = b=3D825
          OR = b=3D704
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 58 AND 60) AND = a!=3D59)
          OR = a=3D76
@@ -22227,7 +22227,7 @@ test:do_test(
  =         OR b=3D674
      =     OR b=3D825
          OR = b=3D704
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 58 AND 60) AND = a!=3D59)
          OR = a=3D76
@@ -22246,7 +22246,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D869
-         OR = (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.595.1>
@@ -22260,7 = +22260,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D869
- =         OR (g=3D'ponmlkj' AND f GLOB = 'rstuv*')
+         OR (g=3D'ponmlkj' AND = f LIKE 'rstuv%')
   ]])
    =  end, {
         -- = <where7-2.595.2>
@@ -22303,12 +22303,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'rqponml' AND f GLOB 'hijkl*')
-       =   OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+     =  WHERE (g=3D'rqponml' AND f LIKE 'hijkl%')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'stuvw%')
          OR = a=3D8
          OR = a=3D72
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.597.1>
@@ -22321,12 = +22321,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'rqponml' AND f GLOB = 'hijkl*')
-         OR (g=3D'ponmlkj' AND = f GLOB 'stuvw*')
+      WHERE (g=3D'rqponml' = AND f LIKE 'hijkl%')
+         OR = (g=3D'ponmlkj' AND f LIKE 'stuvw%')
      =     OR a=3D8
          OR = a=3D72
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.597.2>
@@ -22342,7 = +22342,7 @@ test:do_test(
       WHERE = a=3D20
          OR ((a BETWEEN 74 = AND 76) AND a!=3D75)
          OR = b=3D341
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR = b=3D814
          OR = b=3D1026
          OR = a=3D14
@@ -22364,7 +22364,7 @@ test:do_test(
  =      WHERE a=3D20
        =   OR ((a BETWEEN 74 AND 76) AND a!=3D75)
    =       OR b=3D341
-         = OR (g=3D'tsrqpon' AND f GLOB 'abcde*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'abcde%')
    =       OR b=3D814
        =   OR b=3D1026
          OR = a=3D14
@@ -22387,8 +22387,8 @@ test:do_test(
  =         OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR = b=3D839
          OR (d>=3D51.0 = AND d<52.0 AND d IS NOT NULL)
-         = OR (g=3D'onmlkji' AND f GLOB 'xyzab*')
-       =   OR (g=3D'vutsrqp' AND f GLOB 'nopqr*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'xyzab%')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'nopqr%')
          OR = c=3D7007
   ]])
     end, = {
@@ -22406,8 +22406,8 @@ test:do_test(
  =         OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR = b=3D839
          OR (d>=3D51.0 = AND d<52.0 AND d IS NOT NULL)
-         = OR (g=3D'onmlkji' AND f GLOB 'xyzab*')
-       =   OR (g=3D'vutsrqp' AND f GLOB 'nopqr*')
+     =     OR (g=3D'onmlkji' AND f LIKE 'xyzab%')
+   =       OR (g=3D'vutsrqp' AND f LIKE = 'nopqr%')
          OR = c=3D7007
   ]])
     end, = {
@@ -22421,7 +22421,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?rstu*' AND f = GLOB 'qrst*')
+      WHERE (f LIKE '_rstu%' AND = f LIKE 'qrst%')
          OR = a=3D21
          OR (d>=3D9.0 AND = d<10.0 AND d IS NOT NULL)
        =   OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL)
@@ = -22443,7 +22443,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?rstu*' AND f GLOB = 'qrst*')
+      WHERE (f LIKE '_rstu%' AND f = LIKE 'qrst%')
          OR = a=3D21
          OR (d>=3D9.0 AND = d<10.0 AND d IS NOT NULL)
        =   OR (d>=3D3.0 AND d<4.0 AND d IS NOT NULL)
@@ = -22469,11 +22469,11 @@ test:do_test(
      =     OR f=3D'bcdefghij'
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
    =       OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
-         OR (g=3D'srqponm' AND f = GLOB 'efghi*')
-         OR (g=3D'mlkjihg' = AND f GLOB 'jklmn*')
+         OR = (g=3D'srqponm' AND f LIKE 'efghi%')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'jklmn%')
    =       OR b=3D762
        =   OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
- =         OR (g=3D'jihgfed' AND f GLOB = 'yzabc*')
+         OR (g=3D'jihgfed' AND = f LIKE 'yzabc%')
   ]])
    =  end, {
         -- = <where7-2.601.1>
@@ -22490,11 +22490,11 @@ = test:do_test(
          OR = f=3D'bcdefghij'
          OR ((a = BETWEEN 68 AND 70) AND a!=3D69)
        =   OR (d>=3D54.0 AND d<55.0 AND d IS NOT NULL)
- =         OR (g=3D'srqponm' AND f GLOB = 'efghi*')
-         OR (g=3D'mlkjihg' AND = f GLOB 'jklmn*')
+         OR (g=3D'srqponm'= AND f LIKE 'efghi%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
      =     OR b=3D762
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
-     =     OR (g=3D'jihgfed' AND f GLOB 'yzabc*')
+   =       OR (g=3D'jihgfed' AND f LIKE = 'yzabc%')
   ]])
     end, = {
         -- = <where7-2.601.2>
@@ -22574,7 +22574,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D55.0 AND = d<56.0 AND d IS NOT NULL)
-         OR = (g=3D'hgfedcb' AND f GLOB 'fghij*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'fghij%')
    =       OR (d>=3D40.0 AND d<41.0 AND d IS NOT = NULL)
          OR = b=3D1067
          OR = b=3D231
@@ -22595,7 +22595,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
- =         OR (g=3D'hgfedcb' AND f GLOB = 'fghij*')
+         OR (g=3D'hgfedcb' AND = f LIKE 'fghij%')
          OR = (d>=3D40.0 AND d<41.0 AND d IS NOT NULL)
    =       OR b=3D1067
        =   OR b=3D231
@@ -22620,7 +22620,7 @@ = test:do_test(
          OR = b=3D396
          OR = b=3D1059
          OR = a=3D69
-         OR (f GLOB '?wxyz*' AND f = GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D440
          OR = b=3D825
   ]])
@@ -22640,7 +22640,7 @@ = test:do_test(
          OR = b=3D396
          OR = b=3D1059
          OR = a=3D69
-         OR (f GLOB '?wxyz*' AND f = GLOB 'vwxy*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
        =   OR b=3D440
          OR = b=3D825
   ]])
@@ -22658,7 +22658,7 @@ = test:do_test(
       WHERE (d>=3D26.0 = AND d<27.0 AND d IS NOT NULL)
        =   OR b=3D308
          OR = c<=3D10
-         OR (g=3D'xwvutsr' AND = f GLOB 'hijkl*')
+         OR (g=3D'xwvutsr'= AND f LIKE 'hijkl%')
          OR = f=3D'ghijklmno'
          OR = b=3D289
          OR a=3D5
@@= -22680,7 +22680,7 @@ test:do_test(
      =  WHERE (d>=3D26.0 AND d<27.0 AND d IS NOT = NULL)
          OR = b=3D308
          OR = c<=3D10
-         OR (g=3D'xwvutsr' AND = f GLOB 'hijkl*')
+         OR (g=3D'xwvutsr'= AND f LIKE 'hijkl%')
          OR = f=3D'ghijklmno'
          OR = b=3D289
          OR a=3D5
@@= -22703,9 +22703,9 @@ test:do_test(
      =     OR (d>=3D17.0 AND d<18.0 AND d IS NOT = NULL)
          OR = b=3D993
          OR ((a BETWEEN 43 = AND 45) AND a!=3D44)
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
+         OR = (f LIKE '_zabc%' AND f LIKE 'yzab%')
      =     OR b=3D663
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D869
        =   OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
          OR b=3D121
@@= -22725,9 +22725,9 @@ test:do_test(
      =     OR (d>=3D17.0 AND d<18.0 AND d IS NOT = NULL)
          OR = b=3D993
          OR ((a BETWEEN 43 = AND 45) AND a!=3D44)
-         OR (f GLOB = '?zabc*' AND f GLOB 'yzab*')
+         OR = (f LIKE '_zabc%' AND f LIKE 'yzab%')
      =     OR b=3D663
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D869
        =   OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
          OR b=3D121
@@= -22743,9 +22743,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'efghi*')
-         OR (g=3D'tsrqpon' AND = f GLOB 'bcdef*')
-         OR (g=3D'hgfedcb'= AND f GLOB 'jklmn*')
+      WHERE (g=3D'xwvutsr'= AND f LIKE 'efghi%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'bcdef%')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR b=3D770
  =  ]])
     end, {
@@ -22759,9 = +22759,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'efghi*')
-         OR (g=3D'tsrqpon' AND = f GLOB 'bcdef*')
-         OR (g=3D'hgfedcb'= AND f GLOB 'jklmn*')
+      WHERE (g=3D'xwvutsr'= AND f LIKE 'efghi%')
+         OR = (g=3D'tsrqpon' AND f LIKE 'bcdef%')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR b=3D770
  =  ]])
     end, {
@@ -22776,10 = +22776,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 80 AND = 82) AND a!=3D81)
-         OR (g=3D'nmlkjih'= AND f GLOB 'fghij*')
-         OR = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
-     =     OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+   =       OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'tuvwx%')
+         OR (f LIKE '_uvwx%' = AND f LIKE 'tuvw%')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.609.1>
@@ -22793,10 = +22793,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 80 AND = 82) AND a!=3D81)
-         OR (g=3D'nmlkjih'= AND f GLOB 'fghij*')
-         OR = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
-       =   OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
-     =     OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+   =       OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'tuvwx%')
+         OR (f LIKE '_uvwx%' = AND f LIKE 'tuvw%')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.609.2>
@@ -22855,16 = +22855,16 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'onmlkji' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'onmlkji' AND f = LIKE 'zabcd%')
          OR = b=3D1092
-         OR (g=3D'ihgfedc' AND f = GLOB 'cdefg*')
-         OR (g=3D'ponmlkj' = AND f GLOB 'uvwxy*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'cdefg%')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR a=3D77
        =   OR a=3D63
          OR = b=3D762
          OR = b=3D894
          OR = b=3D685
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.611.1>
@@ -22877,16 +22877,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'onmlkji' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'onmlkji' AND f LIKE 'zabcd%')
    =       OR b=3D1092
-         = OR (g=3D'ihgfedc' AND f GLOB 'cdefg*')
-       =   OR (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
+   =       OR (g=3D'ponmlkj' AND f LIKE = 'uvwxy%')
          OR = a=3D77
          OR = a=3D63
          OR = b=3D762
          OR = b=3D894
          OR = b=3D685
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.611.2>
@@ -22899,7 +22899,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'klmno*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 93 AND 95) AND = a!=3D94)
          OR = b=3D231
   ]])
@@ -22914,7 +22914,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'klmno*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 93 AND 95) AND = a!=3D94)
          OR = b=3D231
   ]])
@@ -22930,7 +22930,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D828
-   =       OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+ =         OR (f LIKE '_bcde%' AND f LIKE = 'abcd%')
          OR ((a BETWEEN 8 = AND 10) AND a!=3D9)
   ]])
    =  end, {
@@ -22945,7 +22945,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D828
-   =       OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
+ =         OR (f LIKE '_bcde%' AND f LIKE = 'abcd%')
          OR ((a BETWEEN 8 = AND 10) AND a!=3D9)
   ]])
    =  end, {
@@ -22959,13 +22959,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?opqr*' AND f GLOB 'nopq*')
+      WHERE = (f LIKE '_opqr%' AND f LIKE 'nopq%')
      =     OR (d>=3D47.0 AND d<48.0 AND d IS NOT = NULL)
          OR = b=3D520
          OR ((a BETWEEN 4 = AND 6) AND a!=3D5)
          OR = (d>=3D50.0 AND d<51.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 31 AND 33) AND a!=3D32)
- =         OR (g=3D'edcbazy' AND f GLOB = 'wxyza*')
+         OR (g=3D'edcbazy' AND = f LIKE 'wxyza%')
          OR = a=3D21
   ]])
     end, = {
@@ -22979,13 +22979,13 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (f GLOB '?opqr*' AND f = GLOB 'nopq*')
+      WHERE (f LIKE '_opqr%' AND = f LIKE 'nopq%')
          OR = (d>=3D47.0 AND d<48.0 AND d IS NOT NULL)
    =       OR b=3D520
        =   OR ((a BETWEEN 4 AND 6) AND a!=3D5)
    =       OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 31 AND = 33) AND a!=3D32)
-         OR (g=3D'edcbazy'= AND f GLOB 'wxyza*')
+         OR = (g=3D'edcbazy' AND f LIKE 'wxyza%')
      =     OR a=3D21
   ]])
  =    end, {
@@ -23000,7 +23000,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D553
-   =       OR (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+ =         OR (g=3D'lkjihgf' AND f LIKE = 'lmnop%')
          OR = b=3D1034
          OR = b=3D418
          OR = a=3D57
@@ -23019,7 +23019,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D553
-         OR = (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'lmnop%')
    =       OR b=3D1034
        =   OR b=3D418
          OR = a=3D57
@@ -23038,9 +23038,9 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE a=3D43
-         OR = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
    =       OR b=3D418
-         = OR (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
    =       OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
          OR = b=3D594
          OR = a=3D21
@@ -23060,9 +23060,9 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE a=3D43
-         OR = (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
    =       OR b=3D418
-         = OR (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
    =       OR (d>=3D43.0 AND d<44.0 AND d IS NOT = NULL)
          OR = b=3D594
          OR = a=3D21
@@ -23082,7 +23082,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D671
-         OR = (g=3D'onmlkji' AND f GLOB 'wxyza*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
    =       OR ((a BETWEEN 95 AND 97) AND = a!=3D96)
   ]])
     end, = {
@@ -23097,7 +23097,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D671
-         OR = (g=3D'onmlkji' AND f GLOB 'wxyza*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
    =       OR ((a BETWEEN 95 AND 97) AND = a!=3D96)
   ]])
     end, = {
@@ -23148,7 +23148,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D806
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 10 AND = 12) AND a!=3D11)
          OR = b=3D275
@@ -23166,7 +23166,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D806
-         OR = (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 10 AND = 12) AND a!=3D11)
          OR = b=3D275
@@ -23184,12 +23184,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D24024
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = b=3D429
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
+         OR (g=3D'qponmlk' = AND f LIKE 'nopqr%')
          OR = b=3D110
          OR a=3D39
-=         OR (g=3D'yxwvuts' AND f GLOB = 'cdefg*')
+         OR (g=3D'yxwvuts' AND = f LIKE 'cdefg%')
   ]])
    =  end, {
         -- = <where7-2.620.1>
@@ -23203,12 +23203,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE c=3D24024
- =         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = b=3D429
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
+         OR (g=3D'qponmlk' = AND f LIKE 'nopqr%')
          OR = b=3D110
          OR a=3D39
-=         OR (g=3D'yxwvuts' AND f GLOB = 'cdefg*')
+         OR (g=3D'yxwvuts' AND = f LIKE 'cdefg%')
   ]])
    =  end, {
         -- = <where7-2.620.2>
@@ -23287,7 +23287,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D509
  =         OR ((a BETWEEN 22 AND 24) AND = a!=3D23)
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
          OR = b=3D718
          OR = a=3D4
          OR ((a BETWEEN 56 AND = 58) AND a!=3D57)
@@ -23307,7 +23307,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D509
  =         OR ((a BETWEEN 22 AND 24) AND = a!=3D23)
-         OR (g=3D'vutsrqp' AND f = GLOB 'nopqr*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'nopqr%')
          OR = b=3D718
          OR = a=3D4
          OR ((a BETWEEN 56 AND = 58) AND a!=3D57)
@@ -23325,7 +23325,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'jihgfed' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%')
    =       OR b=3D1026
        =   OR a=3D93
          OR = c=3D18018
@@ -23341,7 +23341,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%')
    =       OR b=3D1026
        =   OR a=3D93
          OR = c=3D18018
@@ -23422,11 +23422,11 @@ = test:do_test(
       WHERE = b=3D990
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 41 AND 43) AND a!=3D42)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
          OR (d>=3D86.0 = AND d<87.0 AND d IS NOT NULL)
        =   OR b=3D531
          OR = (d>=3D67.0 AND d<68.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+   =       OR (f LIKE '_hijk%' AND f LIKE = 'ghij%')
          OR = f=3D'qrstuvwxy'
   ]])
    =  end, {
@@ -23443,11 +23443,11 @@ = test:do_test(
       WHERE = b=3D990
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 41 AND 43) AND a!=3D42)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
          OR (d>=3D86.0 = AND d<87.0 AND d IS NOT NULL)
        =   OR b=3D531
          OR = (d>=3D67.0 AND d<68.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+   =       OR (f LIKE '_hijk%' AND f LIKE = 'ghij%')
          OR = f=3D'qrstuvwxy'
   ]])
    =  end, {
@@ -23462,9 +23462,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D60
-   =       OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+ =         OR (g=3D'jihgfed' AND f LIKE = 'vwxyz%')
          OR = b=3D627
-         OR (g=3D'edcbazy' AND f = GLOB 'vwxyz*')
+         OR (g=3D'edcbazy' = AND f LIKE 'vwxyz%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR (d>=3D78.0 AND d<79.0 AND d IS NOT = NULL)
          OR b=3D883
@@= -23484,9 +23484,9 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE = a=3D60
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
          OR = b=3D627
-         OR (g=3D'edcbazy' AND f = GLOB 'vwxyz*')
+         OR (g=3D'edcbazy' = AND f LIKE 'vwxyz%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR (d>=3D78.0 AND d<79.0 AND d IS NOT = NULL)
          OR b=3D883
@@= -23572,13 +23572,13 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = a=3D28
-         OR (g=3D'tsrqpon' AND f = GLOB 'bcdef*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'bcdef%')
          OR = b=3D69
          OR ((a BETWEEN 85 = AND 87) AND a!=3D86)
          OR = b=3D781
          OR = a=3D64
          OR b=3D91
- =         OR (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'efghi%')
          OR = a=3D16
          OR = b=3D278
          OR = a=3D26
@@ -23595,13 +23595,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D28
-   =       OR (g=3D'tsrqpon' AND f GLOB 'bcdef*')
+ =         OR (g=3D'tsrqpon' AND f LIKE = 'bcdef%')
          OR = b=3D69
          OR ((a BETWEEN 85 = AND 87) AND a!=3D86)
          OR = b=3D781
          OR = a=3D64
          OR b=3D91
- =         OR (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'efghi%')
          OR = a=3D16
          OR = b=3D278
          OR = a=3D26
@@ -23710,7 +23710,7 @@ test:do_test(
  =      WHERE f=3D'yzabcdefg'
      =     OR ((a BETWEEN 48 AND 50) AND a!=3D49)
  =         OR a=3D100
-       =   OR (g=3D'rqponml' AND f GLOB 'ijklm*')
+     =     OR (g=3D'rqponml' AND f LIKE 'ijklm%')
  =         OR a=3D62
      =     OR a=3D67
          OR = b=3D605
@@ -23733,7 +23733,7 @@ test:do_test(
  =      WHERE f=3D'yzabcdefg'
      =     OR ((a BETWEEN 48 AND 50) AND a!=3D49)
  =         OR a=3D100
-       =   OR (g=3D'rqponml' AND f GLOB 'ijklm*')
+     =     OR (g=3D'rqponml' AND f LIKE 'ijklm%')
  =         OR a=3D62
      =     OR a=3D67
          OR = b=3D605
@@ -23787,9 +23787,9 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?stuv*' AND f = GLOB 'rstu*')
+      WHERE (f LIKE '_stuv%' AND = f LIKE 'rstu%')
          OR = b=3D751
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
          OR = (d>=3D10.0 AND d<11.0 AND d IS NOT NULL)
    =       OR a=3D67
        =   OR b=3D102
@@ -23805,9 +23805,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?stuv*' AND f GLOB 'rstu*')
+      WHERE = (f LIKE '_stuv%' AND f LIKE 'rstu%')
      =     OR b=3D751
-         OR = (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR = a=3D67
          OR = b=3D102
@@ -23862,14 +23862,14 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE c=3D2002
- =         OR (f GLOB '?jklm*' AND f GLOB = 'ijkl*')
+         OR (f LIKE '_jklm%' AND = f LIKE 'ijkl%')
          OR ((a = BETWEEN 41 AND 43) AND a!=3D42)
-         = OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D33
        =   OR b=3D817
-         OR = (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
-         OR (g=3D'xwvutsr' AND f = GLOB 'efghi*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'efghi%')
          OR = (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -23884,14 = +23884,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE c=3D2002
- =         OR (f GLOB '?jklm*' AND f GLOB = 'ijkl*')
+         OR (f LIKE '_jklm%' AND = f LIKE 'ijkl%')
          OR ((a = BETWEEN 41 AND 43) AND a!=3D42)
-         = OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D33
        =   OR b=3D817
-         OR = (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
-         OR (g=3D'xwvutsr' AND f = GLOB 'efghi*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'efghi%')
          OR = (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -23905,8 = +23905,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'srqponm' AND f GLOB = 'cdefg*')
-         OR (g=3D'ihgfedc' AND = f GLOB 'defgh*')
+      WHERE (g=3D'srqponm' = AND f LIKE 'cdefg%')
+         OR = (g=3D'ihgfedc' AND f LIKE 'defgh%')
      =     OR a=3D80
          OR = a=3D53
          OR a=3D62
@@= -23926,8 +23926,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'srqponm' AND f GLOB = 'cdefg*')
-         OR (g=3D'ihgfedc' AND = f GLOB 'defgh*')
+      WHERE (g=3D'srqponm' = AND f LIKE 'cdefg%')
+         OR = (g=3D'ihgfedc' AND f LIKE 'defgh%')
      =     OR a=3D80
          OR = a=3D53
          OR a=3D62
@@= -23951,7 +23951,7 @@ test:do_test(
      =     OR b=3D652
          OR = a=3D72
          OR b=3D209
-=         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = a=3D38
          OR ((a BETWEEN 66 = AND 68) AND a!=3D67)
          OR = d>1e10
@@ -23971,7 +23971,7 @@ = test:do_test(
          OR = b=3D652
          OR = a=3D72
          OR b=3D209
-=         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = a=3D38
          OR ((a BETWEEN 66 = AND 68) AND a!=3D67)
          OR = d>1e10
@@ -24016,11 +24016,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D179
-   =       OR (g=3D'srqponm' AND f GLOB 'defgh*')
+ =         OR (g=3D'srqponm' AND f LIKE = 'defgh%')
          OR = b=3D509
          OR ((a BETWEEN 58 = AND 60) AND a!=3D59)
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
-     =     OR (g=3D'tsrqpon' AND f GLOB 'abcde*')
+   =       OR (g=3D'tsrqpon' AND f LIKE = 'abcde%')
          OR = f=3D'bcdefghij'
   ]])
    =  end, {
@@ -24035,11 +24035,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D179
-   =       OR (g=3D'srqponm' AND f GLOB 'defgh*')
+ =         OR (g=3D'srqponm' AND f LIKE = 'defgh%')
          OR = b=3D509
          OR ((a BETWEEN 58 = AND 60) AND a!=3D59)
          OR = (d>=3D49.0 AND d<50.0 AND d IS NOT NULL)
-     =     OR (g=3D'tsrqpon' AND f GLOB 'abcde*')
+   =       OR (g=3D'tsrqpon' AND f LIKE = 'abcde%')
          OR = f=3D'bcdefghij'
   ]])
    =  end, {
@@ -24149,13 +24149,13 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D28.0 AND = d<29.0 AND d IS NOT NULL)
        =   OR b=3D421
-         OR = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR b=3D704
        =   OR a=3D90
          OR = a=3D78
          OR = 1000000<b
          OR (d>=3D80.0= AND d<81.0 AND d IS NOT NULL)
-       =   OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =         OR ((a BETWEEN 53 AND 55) AND = a!=3D54)
   ]])
     end, = {
@@ -24171,13 +24171,13 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
          OR b=3D421
- =         OR (g=3D'qponmlk' AND f GLOB = 'qrstu*')
+         OR (g=3D'qponmlk' AND = f LIKE 'qrstu%')
          OR = b=3D704
          OR = a=3D90
          OR = a=3D78
          OR = 1000000<b
          OR (d>=3D80.0= AND d<81.0 AND d IS NOT NULL)
-       =   OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =         OR ((a BETWEEN 53 AND 55) AND = a!=3D54)
   ]])
     end, = {
@@ -24191,7 +24191,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'fedcbaz' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'fedcbaz' AND f = LIKE 'pqrst%')
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
  =  ]])
     end, {
@@ -24205,7 = +24205,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'fedcbaz' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'fedcbaz' AND f = LIKE 'pqrst%')
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
  =  ]])
     end, {
@@ -24226,7 = +24226,7 @@ test:do_test(
          = OR ((a BETWEEN 25 AND 27) AND a!=3D26)
      =     OR e IS NULL
          = OR a=3D48
-         OR (g=3D'nmlkjih' AND = f GLOB 'fghij*')
+         OR (g=3D'nmlkjih'= AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.649.1>
@@ -24246,7 +24246,7 @@ = test:do_test(
          OR ((a = BETWEEN 25 AND 27) AND a!=3D26)
        =   OR e IS NULL
          OR = a=3D48
-         OR (g=3D'nmlkjih' AND f = GLOB 'fghij*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.649.2>
@@ -24292,7 +24292,7 @@ = test:do_test(
       WHERE = b=3D275
          OR ((a BETWEEN 57 = AND 59) AND a!=3D58)
          OR = (d>=3D92.0 AND d<93.0 AND d IS NOT NULL)
-     =     OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR (d>=3D53.0 = AND d<54.0 AND d IS NOT NULL)
        =   OR f=3D'ijklmnopq'
   ]])
@@ = -24310,7 +24310,7 @@ test:do_test(
      =  WHERE b=3D275
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
        =   OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL)
- =         OR (g=3D'rqponml' AND f GLOB = 'lmnop*')
+         OR (g=3D'rqponml' AND = f LIKE 'lmnop%')
          OR = (d>=3D53.0 AND d<54.0 AND d IS NOT NULL)
    =       OR f=3D'ijklmnopq'
  =  ]])
@@ -24360,7 +24360,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE f=3D'zabcdefgh'
- =         OR (g=3D'xwvutsr' AND f GLOB = 'defgh*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'defgh%')
          OR = a=3D54
          OR = b=3D770
          OR ((a BETWEEN 96 = AND 98) AND a!=3D97)
@@ -24380,7 +24380,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE f=3D'zabcdefgh'
- =         OR (g=3D'xwvutsr' AND f GLOB = 'defgh*')
+         OR (g=3D'xwvutsr' AND = f LIKE 'defgh%')
          OR = a=3D54
          OR = b=3D770
          OR ((a BETWEEN 96 = AND 98) AND a!=3D97)
@@ -24446,7 +24446,7 @@ = test:do_test(
       WHERE = b=3D223
          OR = a=3D14
          OR ((a BETWEEN 74 = AND 76) AND a!=3D75)
-         OR = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR ((a BETWEEN 33 AND 35) AND = a!=3D34)
          OR = b=3D539
          OR (d>=3D48.0 = AND d<49.0 AND d IS NOT NULL)
@@ -24467,7 +24467,7 @@ = test:do_test(
       WHERE = b=3D223
          OR = a=3D14
          OR ((a BETWEEN 74 = AND 76) AND a!=3D75)
-         OR = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR ((a BETWEEN 33 AND 35) AND = a!=3D34)
          OR = b=3D539
          OR (d>=3D48.0 = AND d<49.0 AND d IS NOT NULL)
@@ -24486,7 +24486,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D99
-   =       OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+ =         OR (f LIKE '_ghij%' AND f LIKE = 'fghi%')
          OR = a=3D73
          OR = a=3D56
          OR = b=3D253
@@ -24504,7 +24504,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE a=3D99
-         OR (f GLOB = '?ghij*' AND f GLOB 'fghi*')
+         OR = (f LIKE '_ghij%' AND f LIKE 'fghi%')
      =     OR a=3D73
          OR = a=3D56
          OR = b=3D253
@@ -24524,8 +24524,8 @@ test:do_test(
  =      WHERE b=3D927
        =   OR b=3D300
          OR = b=3D223
-         OR (g=3D'wvutsrq' AND f = GLOB 'jklmn*')
-         OR (g=3D'fedcbaz' = AND f GLOB 'rstuv*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR b=3D154
        =   OR b=3D759
   ]])
@@ -24543,8 = +24543,8 @@ test:do_test(
       WHERE = b=3D927
          OR = b=3D300
          OR = b=3D223
-         OR (g=3D'wvutsrq' AND f = GLOB 'jklmn*')
-         OR (g=3D'fedcbaz' = AND f GLOB 'rstuv*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+       =   OR (g=3D'fedcbaz' AND f LIKE 'rstuv%')
    =       OR b=3D154
        =   OR b=3D759
   ]])
@@ -24562,7 = +24562,7 @@ test:do_test(
       WHERE = b=3D242
          OR = b=3D905
          OR (d>=3D66.0 = AND d<67.0 AND d IS NOT NULL)
-         = OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR (d>=3D96.0 AND d<97.0 AND d IS NOT = NULL)
          OR = a=3D24
          OR ((a BETWEEN 67 = AND 69) AND a!=3D68)
@@ -24584,7 +24584,7 @@ = test:do_test(
       WHERE = b=3D242
          OR = b=3D905
          OR (d>=3D66.0 = AND d<67.0 AND d IS NOT NULL)
-         = OR (g=3D'hgfedcb' AND f GLOB 'ijklm*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ijklm%')
    =       OR (d>=3D96.0 AND d<97.0 AND d IS NOT = NULL)
          OR = a=3D24
          OR ((a BETWEEN 67 = AND 69) AND a!=3D68)
@@ -24606,10 +24606,10 @@ = test:do_test(
       WHERE = b=3D190
          OR = a=3D72
          OR b=3D377
-=         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
          OR = (d>=3D93.0 AND d<94.0 AND d IS NOT NULL)
    =       OR b=3D476
-         = OR (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
  =  ]])
     end, {
    =      -- <where7-2.659.1>
@@ -24625,10 = +24625,10 @@ test:do_test(
       WHERE = b=3D190
          OR = a=3D72
          OR b=3D377
-=         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
          OR = (d>=3D93.0 AND d<94.0 AND d IS NOT NULL)
    =       OR b=3D476
-         = OR (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
  =  ]])
     end, {
    =      -- <where7-2.659.2>
@@ -24644,12 = +24644,12 @@ test:do_test(
       WHERE = b=3D245
          OR = b=3D638
          OR (d>=3D62.0 = AND d<63.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
    =       OR f=3D'opqrstuvw'
      =     OR (d>=3D86.0 AND d<87.0 AND d IS NOT = NULL)
          OR = b=3D817
          OR a=3D85
-=         OR (g=3D'lkjihgf' AND f GLOB = 'mnopq*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'mnopq%')
   ]])
    =  end, {
         -- = <where7-2.660.1>
@@ -24665,12 +24665,12 @@ = test:do_test(
       WHERE = b=3D245
          OR = b=3D638
          OR (d>=3D62.0 = AND d<63.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
    =       OR f=3D'opqrstuvw'
      =     OR (d>=3D86.0 AND d<87.0 AND d IS NOT = NULL)
          OR = b=3D817
          OR a=3D85
-=         OR (g=3D'lkjihgf' AND f GLOB = 'mnopq*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'mnopq%')
   ]])
    =  end, {
         -- = <where7-2.660.2>
@@ -24749,9 +24749,9 @@ = test:do_test(
          OR = (d>=3D85.0 AND d<86.0 AND d IS NOT NULL)
    =       OR c<=3D10
        =   OR ((a BETWEEN 75 AND 77) AND a!=3D76)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'uvwxy%')
          OR = b=3D553
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
          OR = b=3D1045
   ]])
     end, = {
@@ -24769,9 +24769,9 @@ test:do_test(
  =         OR (d>=3D85.0 AND d<86.0 AND d IS NOT = NULL)
          OR = c<=3D10
          OR ((a BETWEEN = 75 AND 77) AND a!=3D76)
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR b=3D553
-         = OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'vwxyz%')
    =       OR b=3D1045
  =  ]])
     end, {
@@ -24788,12 = +24788,12 @@ test:do_test(
       WHERE = b=3D440
          OR ((a BETWEEN 3 = AND 5) AND a!=3D4)
          OR ((a = BETWEEN 44 AND 46) AND a!=3D45)
-         = OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+       =   OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
    =       OR a=3D89
        =   OR c=3D18018
          OR = b=3D154
          OR = b=3D506
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR a=3D78
          OR = b=3D751
   ]])
@@ -24811,12 +24811,12 @@ = test:do_test(
       WHERE = b=3D440
          OR ((a BETWEEN 3 = AND 5) AND a!=3D4)
          OR ((a = BETWEEN 44 AND 46) AND a!=3D45)
-         = OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
+       =   OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
    =       OR a=3D89
        =   OR c=3D18018
          OR = b=3D154
          OR = b=3D506
-         OR (f GLOB '?cdef*' AND = f GLOB 'bcde*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
        =   OR a=3D78
          OR = b=3D751
   ]])
@@ -24832,13 +24832,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D407
-   =       OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
- =         OR (g=3D'rqponml' AND f GLOB = 'klmno*')
+         OR (g=3D'lkjihgf' AND = f LIKE 'nopqr%')
+         OR (g=3D'rqponml'= AND f LIKE 'klmno%')
          OR = b=3D209
          OR = b=3D814
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = a=3D44
-         OR (g=3D'qponmlk' AND f = GLOB 'mnopq*')
+         OR (g=3D'qponmlk' = AND f LIKE 'mnopq%')
          OR = (d>=3D99.0 AND d<100.0 AND d IS NOT NULL)
    =       OR b=3D1092
   ]])
@@ = -24854,13 +24854,13 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE = b=3D407
-         OR (g=3D'lkjihgf' AND f = GLOB 'nopqr*')
-         OR (g=3D'rqponml' = AND f GLOB 'klmno*')
+         OR = (g=3D'lkjihgf' AND f LIKE 'nopqr%')
+       =   OR (g=3D'rqponml' AND f LIKE 'klmno%')
    =       OR b=3D209
        =   OR b=3D814
-         OR = (g=3D'wvutsrq' AND f GLOB 'klmno*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'klmno%')
    =       OR a=3D44
-         = OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'mnopq%')
    =       OR (d>=3D99.0 AND d<100.0 AND d IS NOT = NULL)
          OR = b=3D1092
   ]])
@@ -25002,10 +25002,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D27
-   =       OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR = b=3D121
          OR ((a BETWEEN 7 = AND 9) AND a!=3D8)
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR a=3D67
        =   OR ((a BETWEEN 30 AND 32) AND a!=3D31)
    =       OR c=3D1001
@@ -25024,10 +25024,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D27
-   =       OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR = b=3D121
          OR ((a BETWEEN 7 = AND 9) AND a!=3D8)
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR a=3D67
        =   OR ((a BETWEEN 30 AND 32) AND a!=3D31)
    =       OR c=3D1001
@@ -25046,7 +25046,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D99
-   =       OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
          OR (d>=3D98.0 = AND d<99.0 AND d IS NOT NULL)
        =   OR (d>=3D1.0 AND d<2.0 AND d IS NOT NULL)
  =         OR (d>=3D46.0 AND d<47.0 AND d IS NOT = NULL)
@@ -25063,7 +25063,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D99
-         OR = (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
    =       OR (d>=3D98.0 AND d<99.0 AND d IS NOT = NULL)
          OR (d>=3D1.0 AND = d<2.0 AND d IS NOT NULL)
          = OR (d>=3D46.0 AND d<47.0 AND d IS NOT NULL)
@@ -25083,9 = +25083,9 @@ test:do_test(
          = OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL)
  =         OR b=3D355
      =     OR b=3D814
-         OR = (g=3D'ihgfedc' AND f GLOB 'bcdef*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
    =       OR a=3D81
-         = OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR b=3D542
        =   OR b=3D795
   ]])
@@ -25104,9 = +25104,9 @@ test:do_test(
          = OR (d>=3D62.0 AND d<63.0 AND d IS NOT NULL)
  =         OR b=3D355
      =     OR b=3D814
-         OR = (g=3D'ihgfedc' AND f GLOB 'bcdef*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
    =       OR a=3D81
-         = OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR b=3D542
        =   OR b=3D795
   ]])
@@ -25124,10 = +25124,10 @@ test:do_test(
       WHERE = (d>=3D1.0 AND d<2.0 AND d IS NOT NULL)
    =       OR (d>=3D56.0 AND d<57.0 AND d IS NOT = NULL)
          OR b=3D363
- =         OR (g=3D'srqponm' AND f GLOB = 'fghij*')
+         OR (g=3D'srqponm' AND = f LIKE 'fghij%')
          OR ((a = BETWEEN 64 AND 66) AND a!=3D65)
        =   OR b=3D619
-         OR = (g=3D'vutsrqp' AND f GLOB 'opqrs*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'opqrs%')
    =       OR a=3D73
  =  ]])
     end, {
@@ -25144,10 = +25144,10 @@ test:do_test(
       WHERE = (d>=3D1.0 AND d<2.0 AND d IS NOT NULL)
    =       OR (d>=3D56.0 AND d<57.0 AND d IS NOT = NULL)
          OR b=3D363
- =         OR (g=3D'srqponm' AND f GLOB = 'fghij*')
+         OR (g=3D'srqponm' AND = f LIKE 'fghij%')
          OR ((a = BETWEEN 64 AND 66) AND a!=3D65)
        =   OR b=3D619
-         OR = (g=3D'vutsrqp' AND f GLOB 'opqrs*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'opqrs%')
    =       OR a=3D73
  =  ]])
     end, {
@@ -25163,9 = +25163,9 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D935
  =         OR a=3D42
-       =   OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
  =         OR b=3D330
-       =   OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+     =     OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.673.1>
@@ -25180,9 = +25180,9 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D935
  =         OR a=3D42
-       =   OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
  =         OR b=3D330
-       =   OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+     =     OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.673.2>
@@ -25201,7 = +25201,7 @@ test:do_test(
          = OR (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
  =         OR (d>=3D19.0 AND d<20.0 AND d IS NOT = NULL)
          OR a=3D64
- =         OR (f GLOB '?rstu*' AND f GLOB = 'qrst*')
+         OR (f LIKE '_rstu%' AND = f LIKE 'qrst%')
          OR = a=3D89
   ]])
     end, = {
@@ -25221,7 +25221,7 @@ test:do_test(
  =         OR (d>=3D21.0 AND d<22.0 AND d IS NOT = NULL)
          OR (d>=3D19.0 AND = d<20.0 AND d IS NOT NULL)
        =   OR a=3D64
-         OR (f GLOB = '?rstu*' AND f GLOB 'qrst*')
+         OR = (f LIKE '_rstu%' AND f LIKE 'qrst%')
      =     OR a=3D89
   ]])
  =    end, {
@@ -25240,9 +25240,9 @@ = test:do_test(
          OR = b=3D663
          OR = c=3D17017
          OR = b=3D561
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = b=3D495
-         OR (g=3D'lkjihgf' AND f = GLOB 'nopqr*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'nopqr%')
          OR = b=3D352
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
   ]])
@@ -25262,9 = +25262,9 @@ test:do_test(
          = OR b=3D663
          OR = c=3D17017
          OR = b=3D561
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = b=3D495
-         OR (g=3D'lkjihgf' AND f = GLOB 'nopqr*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'nopqr%')
          OR = b=3D352
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
   ]])
@@ -25280,7 = +25280,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE (d>=3D100.0 AND = d<101.0 AND d IS NOT NULL)
-         OR = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR f=3D'klmnopqrs'
      =     OR f=3D'lmnopqrst'
   ]])
@@ = -25296,7 +25296,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D100.0 AND = d<101.0 AND d IS NOT NULL)
-         OR = (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
    =       OR f=3D'klmnopqrs'
      =     OR f=3D'lmnopqrst'
   ]])
@@ = -25342,16 +25342,16 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = b=3D36
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
+         OR (g=3D'qponmlk' = AND f LIKE 'nopqr%')
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR b=3D682
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
        =   OR b=3D91
-         OR (g=3D'ponmlkj'= AND f GLOB 'rstuv*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
      =     OR ((a BETWEEN 95 AND 97) AND a!=3D96)
  =         OR c=3D12012
      =     OR b=3D267
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.678.1>
@@ -25365,16 = +25365,16 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D36
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
+         OR (g=3D'qponmlk' AND = f LIKE 'nopqr%')
          OR ((a = BETWEEN 18 AND 20) AND a!=3D19)
        =   OR b=3D682
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
        =   OR b=3D91
-         OR (g=3D'ponmlkj'= AND f GLOB 'rstuv*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'rstuv%')
      =     OR ((a BETWEEN 95 AND 97) AND a!=3D96)
  =         OR c=3D12012
      =     OR b=3D267
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.678.2>
@@ -25390,12 = +25390,12 @@ test:do_test(
       WHERE = b=3D594
          OR = f=3D'hijklmnop'
          OR ((a = BETWEEN 65 AND 67) AND a!=3D66)
-         = OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR b=3D707
        =   OR b=3D363
          OR = (d>=3D12.0 AND d<13.0 AND d IS NOT NULL)
    =       OR b=3D157
-         = OR (g=3D'tsrqpon' AND f GLOB 'yzabc*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.679.1>
@@ -25411,12 = +25411,12 @@ test:do_test(
       WHERE = b=3D594
          OR = f=3D'hijklmnop'
          OR ((a = BETWEEN 65 AND 67) AND a!=3D66)
-         = OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR b=3D707
        =   OR b=3D363
          OR = (d>=3D12.0 AND d<13.0 AND d IS NOT NULL)
    =       OR b=3D157
-         = OR (g=3D'tsrqpon' AND f GLOB 'yzabc*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.679.2>
@@ -25473,7 = +25473,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'defgh*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'defgh%')
          OR = b=3D674
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
          OR = c=3D3003
@@ -25492,7 +25492,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'nmlkjih' AND f GLOB 'defgh*')
+     =  WHERE (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR b=3D674
        =   OR ((a BETWEEN 38 AND 40) AND a!=3D39)
    =       OR c=3D3003
@@ -25554,7 +25554,7 @@ = test:do_test(
          OR = b=3D707
          OR = f=3D'vwxyzabcd'
          OR = b=3D286
-         OR (g=3D'wvutsrq' AND f = GLOB 'mnopq*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'mnopq%')
          OR = b=3D693
          OR ((a BETWEEN 6 = AND 8) AND a!=3D7)
   ]])
@@ -25576,7 = +25576,7 @@ test:do_test(
          = OR b=3D707
          OR = f=3D'vwxyzabcd'
          OR = b=3D286
-         OR (g=3D'wvutsrq' AND f = GLOB 'mnopq*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'mnopq%')
          OR = b=3D693
          OR ((a BETWEEN 6 = AND 8) AND a!=3D7)
   ]])
@@ -25596,8 = +25596,8 @@ test:do_test(
          = OR a=3D52
          OR (d>=3D64.0 = AND d<65.0 AND d IS NOT NULL)
        =   OR d<0.0
-         OR = (g=3D'rqponml' AND f GLOB 'jklmn*')
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (g=3D'rqponml' AND f LIKE 'jklmn%')
+   =       OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
          OR = b=3D168
          OR (d>=3D24.0 = AND d<25.0 AND d IS NOT NULL)
        =   OR f=3D'uvwxyzabc'
@@ -25619,8 +25619,8 @@ = test:do_test(
          OR = a=3D52
          OR (d>=3D64.0 AND = d<65.0 AND d IS NOT NULL)
        =   OR d<0.0
-         OR = (g=3D'rqponml' AND f GLOB 'jklmn*')
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =     OR (g=3D'rqponml' AND f LIKE 'jklmn%')
+   =       OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
          OR = b=3D168
          OR (d>=3D24.0 = AND d<25.0 AND d IS NOT NULL)
        =   OR f=3D'uvwxyzabc'
@@ -25638,12 +25638,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 4 AND 6) AND = a!=3D5)
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
        =   OR f=3D'rstuvwxyz'
-         OR (f = GLOB '?wxyz*' AND f GLOB 'vwxy*')
-       =   OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
-     =     OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+   =       OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'ghijk%')
+         OR (g=3D'wvutsrq' AND = f LIKE 'ijklm%')
          OR = a=3D14
          OR (d>=3D12.0 AND = d<13.0 AND d IS NOT NULL)
   ]])
@@ = -25659,12 +25659,12 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE ((a BETWEEN = 4 AND 6) AND a!=3D5)
-         OR = (g=3D'tsrqpon' AND f GLOB 'abcde*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'abcde%')
    =       OR ((a BETWEEN 89 AND 91) AND = a!=3D90)
          OR = f=3D'rstuvwxyz'
-         OR (f GLOB = '?wxyz*' AND f GLOB 'vwxy*')
-         OR = (g=3D'hgfedcb' AND f GLOB 'ghijk*')
-       =   OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+     =     OR (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
+   =       OR (g=3D'hgfedcb' AND f LIKE 'ghijk%')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'ijklm%')
          OR = a=3D14
          OR (d>=3D12.0 AND = d<13.0 AND d IS NOT NULL)
   ]])
@@ = -25681,9 +25681,9 @@ test:do_test(
      SELECT = a FROM t2
       WHERE ((a BETWEEN 13 AND = 15) AND a!=3D14)
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
-         = OR (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR f=3D'mnopqrstu'
-       =   OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
  =         OR ((a BETWEEN 33 AND 35) AND = a!=3D34)
          OR = a=3D38
          OR = c=3D26026
@@ -25701,9 +25701,9 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 13 AND 15) AND = a!=3D14)
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
-         OR = (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR f=3D'mnopqrstu'
-       =   OR (g=3D'fedcbaz' AND f GLOB 'tuvwx*')
+     =     OR (g=3D'fedcbaz' AND f LIKE 'tuvwx%')
  =         OR ((a BETWEEN 33 AND 35) AND = a!=3D34)
          OR = a=3D38
          OR = c=3D26026
@@ -25719,11 +25719,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'stuvw%')
    =       OR ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR a=3D7
-=         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
-         OR (g=3D'srqponm' AND = f GLOB 'ghijk*')
+         OR (g=3D'qponmlk'= AND f LIKE 'nopqr%')
+         OR = (g=3D'srqponm' AND f LIKE 'ghijk%')
      =     OR ((a BETWEEN 33 AND 35) AND a!=3D34)
  =  ]])
     end, {
@@ -25737,11 = +25737,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ponmlkj' AND f GLOB = 'stuvw*')
+      WHERE (g=3D'ponmlkj' AND f = LIKE 'stuvw%')
          OR ((a = BETWEEN 71 AND 73) AND a!=3D72)
        =   OR a=3D7
-         OR (g=3D'qponmlk' = AND f GLOB 'nopqr*')
-         OR = (g=3D'srqponm' AND f GLOB 'ghijk*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
+     =     OR (g=3D'srqponm' AND f LIKE 'ghijk%')
  =         OR ((a BETWEEN 33 AND 35) AND = a!=3D34)
   ]])
     end, = {
@@ -25759,8 +25759,8 @@ test:do_test(
  =         OR b=3D938
      =     OR b=3D484
          OR = b=3D652
-         OR (f GLOB '?qrst*' AND = f GLOB 'pqrs*')
-         OR (g=3D'mlkjihg' = AND f GLOB 'ghijk*')
+         OR (f LIKE = '_qrst%' AND f LIKE 'pqrs%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ghijk%')
      =     OR f=3D'opqrstuvw'
  =  ]])
     end, {
@@ -25778,8 = +25778,8 @@ test:do_test(
          = OR b=3D938
          OR = b=3D484
          OR = b=3D652
-         OR (f GLOB '?qrst*' AND = f GLOB 'pqrs*')
-         OR (g=3D'mlkjihg' = AND f GLOB 'ghijk*')
+         OR (f LIKE = '_qrst%' AND f LIKE 'pqrs%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ghijk%')
      =     OR f=3D'opqrstuvw'
  =  ]])
     end, {
@@ -25835,12 = +25835,12 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D25
  =         OR ((a BETWEEN 43 AND 45) AND = a!=3D44)
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
-         OR (f GLOB = '?uvwx*' AND f GLOB 'tuvw*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
+       =   OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR = b=3D443
          OR = b=3D564
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'rstuv%')
          OR = b=3D531
          OR = b=3D1081
          OR = a=3D96
@@ -25858,12 +25858,12 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D25
  =         OR ((a BETWEEN 43 AND 45) AND = a!=3D44)
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
-         OR (f GLOB = '?uvwx*' AND f GLOB 'tuvw*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
+       =   OR (f LIKE '_uvwx%' AND f LIKE 'tuvw%')
    =       OR (d>=3D10.0 AND d<11.0 AND d IS NOT = NULL)
          OR = b=3D443
          OR = b=3D564
-         OR (g=3D'kjihgfe' AND f = GLOB 'rstuv*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'rstuv%')
          OR = b=3D531
          OR = b=3D1081
          OR = a=3D96
@@ -25880,7 +25880,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE b=3D36
-         OR = (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
  =  ]])
     end, {
    =      -- <where7-2.691.1>
@@ -25894,7 = +25894,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D36
- =         OR (g=3D'srqponm' AND f GLOB = 'defgh*')
+         OR (g=3D'srqponm' AND = f LIKE 'defgh%')
   ]])
    =  end, {
         -- = <where7-2.691.2>
@@ -25907,7 +25907,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'stuvw%')
    =       OR b=3D531
        =   OR ((a BETWEEN 93 AND 95) AND a!=3D94)
    =       OR (d>=3D3.0 AND d<4.0 AND d IS NOT = NULL)
@@ -25923,7 +25923,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'stuvw*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'stuvw%')
          OR = b=3D531
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
          OR = (d>=3D3.0 AND d<4.0 AND d IS NOT NULL)
@@ -25975,8 = +25975,8 @@ test:do_test(
          = OR b=3D718
          OR = a=3D18
          OR a=3D3
- =         OR (f GLOB '?wxyz*' AND f GLOB = 'vwxy*')
-         OR (g=3D'mlkjihg' AND f = GLOB 'ghijk*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ghijk%')
      =     OR c=3D28028
   ]])
  =    end, {
@@ -25998,8 +25998,8 @@ = test:do_test(
          OR = b=3D718
          OR = a=3D18
          OR a=3D3
- =         OR (f GLOB '?wxyz*' AND f GLOB = 'vwxy*')
-         OR (g=3D'mlkjihg' AND f = GLOB 'ghijk*')
+         OR (f LIKE = '_wxyz%' AND f LIKE 'vwxy%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ghijk%')
      =     OR c=3D28028
   ]])
  =    end, {
@@ -26062,7 +26062,7 @@ = test:do_test(
          OR = (d>=3D19.0 AND d<20.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 30 AND 32) AND = a!=3D31)
          OR (d>=3D29.0 = AND d<30.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'ghijk*')
+       =   OR (g=3D'srqponm' AND f LIKE 'ghijk%')
    =       OR (d>=3D91.0 AND d<92.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -26081,7 +26081,7 @@ test:do_test(
  =         OR (d>=3D19.0 AND d<20.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 30 AND = 32) AND a!=3D31)
          OR = (d>=3D29.0 AND d<30.0 AND d IS NOT NULL)
-     =     OR (g=3D'srqponm' AND f GLOB 'ghijk*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'ghijk%')
          OR (d>=3D91.0 = AND d<92.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -26095,7 = +26095,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'ijklm*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'ijklm%')
          OR = b=3D883
          OR (d>=3D22.0 = AND d<23.0 AND d IS NOT NULL)
        =   OR b=3D938
@@ -26115,7 +26115,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+     =  WHERE (g=3D'mlkjihg' AND f LIKE 'ijklm%')
    =       OR b=3D883
        =   OR (d>=3D22.0 AND d<23.0 AND d IS NOT = NULL)
          OR b=3D938
@@= -26167,7 +26167,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'abcde*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'abcde%')
          OR = (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 68 AND 70) AND = a!=3D69)
          OR ((a BETWEEN 74 = AND 76) AND a!=3D75)
@@ -26185,7 +26185,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'tsrqpon' AND f GLOB 'abcde*')
+     =  WHERE (g=3D'tsrqpon' AND f LIKE 'abcde%')
    =       OR (d>=3D55.0 AND d<56.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 68 AND = 70) AND a!=3D69)
          OR ((a = BETWEEN 74 AND 76) AND a!=3D75)
@@ -26271,12 +26271,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?abcd*' AND f GLOB 'zabc*')
-       =   OR (g=3D'srqponm' AND f GLOB 'efghi*')
-     =     OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
-   =       OR (g=3D'nmlkjih' AND f GLOB 'cdefg*')
- =         OR (g=3D'srqponm' AND f GLOB = 'cdefg*')
-         OR (g=3D'ihgfedc' AND = f GLOB 'bcdef*')
+      WHERE (f LIKE '_abcd%' = AND f LIKE 'zabc%')
+         OR = (g=3D'srqponm' AND f LIKE 'efghi%')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'cdefg%')
+   =       OR (g=3D'srqponm' AND f LIKE 'cdefg%')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'bcdef%')
          OR = f=3D'lmnopqrst'
          OR ((a = BETWEEN 11 AND 13) AND a!=3D12)
        =   OR b=3D872
@@ -26294,12 +26294,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?abcd*' AND f GLOB 'zabc*')
-       =   OR (g=3D'srqponm' AND f GLOB 'efghi*')
-     =     OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
-   =       OR (g=3D'nmlkjih' AND f GLOB 'cdefg*')
- =         OR (g=3D'srqponm' AND f GLOB = 'cdefg*')
-         OR (g=3D'ihgfedc' AND = f GLOB 'bcdef*')
+      WHERE (f LIKE '_abcd%' = AND f LIKE 'zabc%')
+         OR = (g=3D'srqponm' AND f LIKE 'efghi%')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'cdefg%')
+   =       OR (g=3D'srqponm' AND f LIKE 'cdefg%')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'bcdef%')
          OR = f=3D'lmnopqrst'
          OR ((a = BETWEEN 11 AND 13) AND a!=3D12)
        =   OR b=3D872
@@ -26319,14 +26319,14 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR = a=3D20
-         OR (g=3D'vutsrqp' AND f = GLOB 'rstuv*')
-         OR (g=3D'jihgfed' = AND f GLOB 'xyzab*')
+         OR = (g=3D'vutsrqp' AND f LIKE 'rstuv%')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR b=3D1004
        =   OR b=3D77
          OR = b=3D927
          OR = a=3D99
          OR (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
-         OR = (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
+       =   OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.703.1>
@@ -26341,14 = +26341,14 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 71 AND 73) AND = a!=3D72)
          OR = a=3D20
-         OR (g=3D'vutsrqp' AND f = GLOB 'rstuv*')
-         OR (g=3D'jihgfed' = AND f GLOB 'xyzab*')
+         OR = (g=3D'vutsrqp' AND f LIKE 'rstuv%')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR b=3D1004
        =   OR b=3D77
          OR = b=3D927
          OR = a=3D99
          OR (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
-         OR = (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
+       =   OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.703.2>
@@ -26394,7 = +26394,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D572
- =         OR (g=3D'nmlkjih' AND f GLOB = 'fghij*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.705.1>
@@ -26408,7 +26408,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D572
-   =       OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+ =         OR (g=3D'nmlkjih' AND f LIKE = 'fghij%')
   ]])
     end, = {
         -- = <where7-2.705.2>
@@ -26424,8 +26424,8 @@ = test:do_test(
       WHERE (d>=3D44.0 = AND d<45.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 54 AND 56) AND a!=3D55)
    =       OR f=3D'lmnopqrst'
-       =   OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
-     =     OR (g=3D'ihgfedc' AND f GLOB 'defgh*')
+   =       OR (f LIKE '_lmno%' AND f LIKE 'klmn%')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'defgh%')
          OR = a=3D23
          OR (d>=3D69.0 AND = d<70.0 AND d IS NOT NULL)
   ]])
@@ = -26443,8 +26443,8 @@ test:do_test(
      =  WHERE (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 54 AND = 56) AND a!=3D55)
          OR = f=3D'lmnopqrst'
-         OR (f GLOB = '?lmno*' AND f GLOB 'klmn*')
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (f LIKE '_lmno%' AND f LIKE 'klmn%')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
  =         OR a=3D23
      =     OR (d>=3D69.0 AND d<70.0 AND d IS NOT = NULL)
   ]])
@@ -26463,13 +26463,13 @@ = test:do_test(
          OR ((a = BETWEEN 89 AND 91) AND a!=3D90)
        =   OR b=3D605
          OR = (d>=3D46.0 AND d<47.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'stuvw%')
          OR = b=3D759
-         OR (f GLOB '?zabc*' AND = f GLOB 'yzab*')
+         OR (f LIKE = '_zabc%' AND f LIKE 'yzab%')
        =   OR ((a BETWEEN 38 AND 40) AND a!=3D39)
    =       OR a=3D40
        =   OR f=3D'ghijklmno'
-         OR = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.707.1>
@@ -26486,13 = +26486,13 @@ test:do_test(
          = OR ((a BETWEEN 89 AND 91) AND a!=3D90)
      =     OR b=3D605
          OR = (d>=3D46.0 AND d<47.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'stuvw*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'stuvw%')
          OR = b=3D759
-         OR (f GLOB '?zabc*' AND = f GLOB 'yzab*')
+         OR (f LIKE = '_zabc%' AND f LIKE 'yzab%')
        =   OR ((a BETWEEN 38 AND 40) AND a!=3D39)
    =       OR a=3D40
        =   OR f=3D'ghijklmno'
-         OR = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.707.2>
@@ -26601,7 = +26601,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'efghi*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'efghi%')
          OR = a=3D34
          OR ((a BETWEEN 6 AND = 8) AND a!=3D7)
          OR = (d>=3D75.0 AND d<76.0 AND d IS NOT NULL)
@@ -26619,7 = +26619,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'efghi*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'efghi%')
          OR = a=3D34
          OR ((a BETWEEN 6 AND = 8) AND a!=3D7)
          OR = (d>=3D75.0 AND d<76.0 AND d IS NOT NULL)
@@ -26637,16 = +26637,16 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'qponmlk' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'pqrst%')
          OR = a=3D52
          OR ((a BETWEEN 68 = AND 70) AND a!=3D69)
          OR = (d>=3D24.0 AND d<25.0 AND d IS NOT NULL)
    =       OR f=3D'ghijklmno'
-       =   OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
-     =     OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+   =       OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
+ =         OR (f LIKE '_hijk%' AND f LIKE = 'ghij%')
          OR = b=3D319
          OR a=3D34
-=         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR = f=3D'hijklmnop'
   ]])
    =  end, {
@@ -26660,16 +26660,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR a=3D52
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
    =       OR (d>=3D24.0 AND d<25.0 AND d IS NOT = NULL)
          OR = f=3D'ghijklmno'
-         OR (g=3D'utsrqpo' = AND f GLOB 'stuvw*')
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'stuvw%')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D319
        =   OR a=3D34
-         OR (g=3D'wvutsrq'= AND f GLOB 'mnopq*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'mnopq%')
      =     OR f=3D'hijklmnop'
  =  ]])
     end, {
@@ -26683,7 = +26683,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'qponmlk' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'pqrst%')
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
        =   OR (d>=3D71.0 AND d<72.0 AND d IS NOT = NULL)
          OR a=3D47
@@ = -26699,7 +26699,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'pqrst*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'pqrst%')
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
        =   OR (d>=3D71.0 AND d<72.0 AND d IS NOT = NULL)
          OR a=3D47
@@ = -26781,11 +26781,11 @@ test:do_test(
      = SELECT a FROM t2
       WHERE = c=3D31031
          OR (d>=3D12.0 = AND d<13.0 AND d IS NOT NULL)
-         = OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
    =       OR ((a BETWEEN 66 AND 68) AND = a!=3D67)
          OR = b=3D256
          OR ((a BETWEEN 77 = AND 79) AND a!=3D78)
-         OR = (g=3D'qponmlk' AND f GLOB 'mnopq*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'mnopq%')
    =       OR b=3D715
        =   OR b=3D212
          OR = b=3D99
@@ -26804,11 +26804,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE c=3D31031
  =         OR (d>=3D12.0 AND d<13.0 AND d IS NOT = NULL)
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'tuvwx%')
          OR ((a = BETWEEN 66 AND 68) AND a!=3D67)
        =   OR b=3D256
          OR ((a = BETWEEN 77 AND 79) AND a!=3D78)
-         = OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'mnopq%')
    =       OR b=3D715
        =   OR b=3D212
          OR = b=3D99
@@ -26899,7 +26899,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR ((a = BETWEEN 62 AND 64) AND a!=3D63)
  =  ]])
     end, {
@@ -26913,7 = +26913,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR ((a = BETWEEN 62 AND 64) AND a!=3D63)
  =  ]])
     end, {
@@ -26929,11 = +26929,11 @@ test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 43 AND 45) AND = a!=3D44)
          OR ((a BETWEEN 31 = AND 33) AND a!=3D32)
-         OR = (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'bcdef%')
    =       OR a=3D43
        =   OR (d>=3D14.0 AND d<15.0 AND d IS NOT = NULL)
          OR b=3D729
- =         OR (g=3D'vutsrqp' AND f GLOB = 'opqrs*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.720.1>
@@ -26948,11 +26948,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 43 AND 45) AND = a!=3D44)
          OR ((a BETWEEN 31 = AND 33) AND a!=3D32)
-         OR = (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'bcdef%')
    =       OR a=3D43
        =   OR (d>=3D14.0 AND d<15.0 AND d IS NOT = NULL)
          OR b=3D729
- =         OR (g=3D'vutsrqp' AND f GLOB = 'opqrs*')
+         OR (g=3D'vutsrqp' AND = f LIKE 'opqrs%')
   ]])
    =  end, {
         -- = <where7-2.720.2>
@@ -26972,7 +26972,7 @@ = test:do_test(
          OR = c=3D8008
          OR = f=3D'opqrstuvw'
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
-         = OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.721.1>
@@ -26992,7 = +26992,7 @@ test:do_test(
          = OR c=3D8008
          OR = f=3D'opqrstuvw'
          OR ((a = BETWEEN 23 AND 25) AND a!=3D24)
-         = OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.721.2>
@@ -27008,9 = +27008,9 @@ test:do_test(
       WHERE ((a = BETWEEN 40 AND 42) AND a!=3D41)
        =   OR (d>=3D62.0 AND d<63.0 AND d IS NOT = NULL)
          OR = c<=3D10
-         OR (g=3D'srqponm' AND = f GLOB 'fghij*')
+         OR (g=3D'srqponm'= AND f LIKE 'fghij%')
          OR = a=3D35
-         OR (f GLOB '?hijk*' AND f = GLOB 'ghij*')
+         OR (f LIKE = '_hijk%' AND f LIKE 'ghij%')
        =   OR b=3D1089
          OR = a=3D73
          OR = b=3D737
@@ -27031,9 +27031,9 @@ test:do_test(
  =      WHERE ((a BETWEEN 40 AND 42) AND = a!=3D41)
          OR (d>=3D62.0 = AND d<63.0 AND d IS NOT NULL)
        =   OR c<=3D10
-         OR = (g=3D'srqponm' AND f GLOB 'fghij*')
+       =   OR (g=3D'srqponm' AND f LIKE 'fghij%')
    =       OR a=3D35
-         = OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D1089
        =   OR a=3D73
          OR = b=3D737
@@ -27053,7 +27053,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE ((a BETWEEN 0 AND 2) AND a!=3D1)
    =       OR (d>=3D79.0 AND d<80.0 AND d IS NOT = NULL)
-         OR (g=3D'fedcbaz' AND f = GLOB 'rstuv*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'rstuv%')
          OR = b=3D762
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
          OR = a=3D80
@@ -27071,7 +27071,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE ((a BETWEEN 0 AND 2) AND a!=3D1)
    =       OR (d>=3D79.0 AND d<80.0 AND d IS NOT = NULL)
-         OR (g=3D'fedcbaz' AND f = GLOB 'rstuv*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'rstuv%')
          OR = b=3D762
          OR ((a BETWEEN 39 = AND 41) AND a!=3D40)
          OR = a=3D80
@@ -27092,10 +27092,10 @@ = test:do_test(
          OR ((a = BETWEEN 80 AND 82) AND a!=3D81)
        =   OR b=3D979
          OR = a=3D36
-         OR (f GLOB '?vwxy*' AND f = GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR a=3D55
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'rstuv%')
   ]])
    =  end, {
         -- = <where7-2.724.1>
@@ -27113,10 +27113,10 @@ = test:do_test(
          OR ((a = BETWEEN 80 AND 82) AND a!=3D81)
        =   OR b=3D979
          OR = a=3D36
-         OR (f GLOB '?vwxy*' AND f = GLOB 'uvwx*')
+         OR (f LIKE = '_vwxy%' AND f LIKE 'uvwx%')
        =   OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
          OR a=3D55
- =         OR (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'rstuv%')
   ]])
    =  end, {
         -- = <where7-2.724.2>
@@ -27131,8 +27131,8 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D75
  =         OR a=3D61
-       =   OR (g=3D'onmlkji' AND f GLOB 'abcde*')
-     =     OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+   =       OR (g=3D'onmlkji' AND f LIKE 'abcde%')
+ =         OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
   ]])
     end, = {
         -- = <where7-2.725.1>
@@ -27147,8 +27147,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D75
  =         OR a=3D61
-       =   OR (g=3D'onmlkji' AND f GLOB 'abcde*')
-     =     OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+   =       OR (g=3D'onmlkji' AND f LIKE 'abcde%')
+ =         OR (g=3D'gfedcba' AND f LIKE = 'nopqr%')
   ]])
     end, = {
         -- = <where7-2.725.2>
@@ -27162,7 +27162,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D1004
- =         OR (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'jklmn%')
          OR = (d>=3D7.0 AND d<8.0 AND d IS NOT NULL)
    =       OR a=3D56
   ]])
@@ = -27178,7 +27178,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D1004
- =         OR (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+         OR (g=3D'mlkjihg' AND = f LIKE 'jklmn%')
          OR = (d>=3D7.0 AND d<8.0 AND d IS NOT NULL)
    =       OR a=3D56
   ]])
@@ = -27194,13 +27194,13 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = a=3D93
-         OR (g=3D'mlkjihg' AND f = GLOB 'ghijk*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'ghijk%')
          OR = a=3D83
          OR = b=3D828
          OR = b=3D454
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
          OR = b=3D924
-         OR (g=3D'lkjihgf' AND f = GLOB 'opqrs*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'opqrs%')
          OR = a=3D50
          OR (d>=3D38.0 AND = d<39.0 AND d IS NOT NULL)
   ]])
@@ = -27216,13 +27216,13 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t3
       WHERE = a=3D93
-         OR (g=3D'mlkjihg' AND f = GLOB 'ghijk*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'ghijk%')
          OR = a=3D83
          OR = b=3D828
          OR = b=3D454
          OR ((a BETWEEN 89 = AND 91) AND a!=3D90)
          OR = b=3D924
-         OR (g=3D'lkjihgf' AND f = GLOB 'opqrs*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'opqrs%')
          OR = a=3D50
          OR (d>=3D38.0 AND = d<39.0 AND d IS NOT NULL)
   ]])
@@ = -27269,7 +27269,7 @@ test:do_test(
      SELECT = a FROM t2
       WHERE = a=3D55
          OR a=3D65
- =         OR (f GLOB '?pqrs*' AND f GLOB = 'opqr*')
+         OR (f LIKE '_pqrs%' AND = f LIKE 'opqr%')
   ]])
    =  end, {
         -- = <where7-2.729.1>
@@ -27284,7 +27284,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D55
  =         OR a=3D65
-       =   OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
+     =     OR (f LIKE '_pqrs%' AND f LIKE 'opqr%')
  =  ]])
     end, {
    =      -- <where7-2.729.2>
@@ -27300,7 = +27300,7 @@ test:do_test(
       WHERE ((a = BETWEEN 72 AND 74) AND a!=3D73)
        =   OR b=3D605
          OR = (d>=3D43.0 AND d<44.0 AND d IS NOT NULL)
-     =     OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'mnopq%')
          OR ((a BETWEEN 72 = AND 74) AND a!=3D73)
          OR = f=3D'ijklmnopq'
          OR ((a = BETWEEN 86 AND 88) AND a!=3D87)
@@ -27322,7 +27322,7 @@ = test:do_test(
       WHERE ((a BETWEEN 72 = AND 74) AND a!=3D73)
          OR = b=3D605
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
-         = OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 72 AND 74) AND = a!=3D73)
          OR = f=3D'ijklmnopq'
          OR ((a = BETWEEN 86 AND 88) AND a!=3D87)
@@ -27342,7 +27342,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D476
-   =       OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'ijklm%')
          OR = b=3D982
          OR = a=3D43
          OR = b=3D355
@@ -27359,7 +27359,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D476
-         OR = (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'ijklm%')
    =       OR b=3D982
        =   OR a=3D43
          OR = b=3D355
@@ -27377,8 +27377,8 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE a=3D85
          OR = b=3D718
-         OR (g=3D'fedcbaz' AND f = GLOB 'pqrst*')
-         OR (f GLOB = '?cdef*' AND f GLOB 'bcde*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'pqrst%')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
    =       OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -27394,8 +27394,8 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE a=3D85
          OR = b=3D718
-         OR (g=3D'fedcbaz' AND f = GLOB 'pqrst*')
-         OR (f GLOB = '?cdef*' AND f GLOB 'bcde*')
+         OR = (g=3D'fedcbaz' AND f LIKE 'pqrst%')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
    =       OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -27515,12 +27515,12 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (f GLOB '?rstu*' AND f = GLOB 'qrst*')
+      WHERE (f LIKE '_rstu%' AND = f LIKE 'qrst%')
          OR = b=3D465
          OR ((a BETWEEN 63 = AND 65) AND a!=3D64)
          OR = a=3D37
          OR = b=3D1056
-         OR (g=3D'srqponm' AND f = GLOB 'defgh*')
+         OR (g=3D'srqponm' = AND f LIKE 'defgh%')
          OR = (d>=3D4.0 AND d<5.0 AND d IS NOT NULL)
    =       OR b=3D1023
   ]])
@@ = -27535,12 +27535,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?rstu*' AND f GLOB = 'qrst*')
+      WHERE (f LIKE '_rstu%' AND f = LIKE 'qrst%')
          OR = b=3D465
          OR ((a BETWEEN 63 = AND 65) AND a!=3D64)
          OR = a=3D37
          OR = b=3D1056
-         OR (g=3D'srqponm' AND f = GLOB 'defgh*')
+         OR (g=3D'srqponm' = AND f LIKE 'defgh%')
          OR = (d>=3D4.0 AND d<5.0 AND d IS NOT NULL)
    =       OR b=3D1023
   ]])
@@ = -27557,7 +27557,7 @@ test:do_test(
      SELECT = a FROM t2
       WHERE = a=3D76
          OR a=3D8
- =         OR (g=3D'tsrqpon' AND f GLOB = 'bcdef*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'bcdef%')
          OR = b=3D495
          OR = b=3D663
          OR = a=3D98
@@ -27576,7 +27576,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE a=3D76
          OR = a=3D8
-         OR (g=3D'tsrqpon' AND f = GLOB 'bcdef*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'bcdef%')
          OR = b=3D495
          OR = b=3D663
          OR = a=3D98
@@ -27595,7 +27595,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D1081
          OR = b=3D542
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D47.0 AND d<48.0 AND d IS NOT NULL)
    =       OR b=3D828
        =   OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL)
@@ = -27615,7 +27615,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE = b=3D1081
          OR = b=3D542
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'jklmn%')
          OR = (d>=3D47.0 AND d<48.0 AND d IS NOT NULL)
    =       OR b=3D828
        =   OR (d>=3D67.0 AND d<68.0 AND d IS NOT NULL)
@@ = -27745,9 +27745,9 @@ test:do_test(
      SELECT = a FROM t2
       WHERE = b=3D880
          OR = b=3D696
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
          OR = b=3D308
-         OR (g=3D'lkjihgf' AND f = GLOB 'nopqr*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'nopqr%')
          OR ((a = BETWEEN 96 AND 98) AND a!=3D97)
  =  ]])
     end, {
@@ -27763,9 = +27763,9 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D880
  =         OR b=3D696
-       =   OR (g=3D'xwvutsr' AND f GLOB 'fghij*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'fghij%')
  =         OR b=3D308
-       =   OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
  =         OR ((a BETWEEN 96 AND 98) AND = a!=3D97)
   ]])
     end, = {
@@ -27779,7 +27779,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR = a=3D24
          OR f IS = NULL
          OR (d>=3D77.0 AND = d<78.0 AND d IS NOT NULL)
@@ -27798,7 +27798,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'tsrqpon' AND f LIKE 'zabcd%')
    =       OR a=3D24
        =   OR f IS NULL
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
@@ -27819,7 = +27819,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D94
  =         OR (d>=3D74.0 AND d<75.0 AND d IS NOT = NULL)
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'hijkl%')
          OR = b=3D792
          OR = a=3D77
          OR a=3D26
@@= -27839,7 +27839,7 @@ test:do_test(
      = SELECT a FROM t3
       WHERE = a=3D94
          OR (d>=3D74.0 AND = d<75.0 AND d IS NOT NULL)
-         OR = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR b=3D792
        =   OR a=3D77
          OR = a=3D26
@@ -27935,11 +27935,11 @@ = test:do_test(
          OR = c=3D19019
          OR = a=3D42
          OR b=3D938
-=         OR (f GLOB '?stuv*' AND f GLOB = 'rstu*')
+         OR (f LIKE '_stuv%' AND = f LIKE 'rstu%')
          OR = (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 22 AND = 24) AND a!=3D23)
-         OR (f GLOB = '?klmn*' AND f GLOB 'jklm*')
+         OR = (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.747.1>
@@ -27958,11 = +27958,11 @@ test:do_test(
          = OR c=3D19019
          OR = a=3D42
          OR b=3D938
-=         OR (f GLOB '?stuv*' AND f GLOB = 'rstu*')
+         OR (f LIKE '_stuv%' AND = f LIKE 'rstu%')
          OR = (d>=3D21.0 AND d<22.0 AND d IS NOT NULL)
    =       OR (d>=3D1.0 AND d<2.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 22 AND = 24) AND a!=3D23)
-         OR (f GLOB = '?klmn*' AND f GLOB 'jklm*')
+         OR = (f LIKE '_klmn%' AND f LIKE 'jklm%')
  =  ]])
     end, {
    =      -- <where7-2.747.2>
@@ -27977,7 = +27977,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D179
  =         OR a=3D50
-       =   OR (g=3D'srqponm' AND f GLOB 'defgh*')
+     =     OR (g=3D'srqponm' AND f LIKE 'defgh%')
  =  ]])
     end, {
    =      -- <where7-2.748.1>
@@ -27992,7 = +27992,7 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D179
  =         OR a=3D50
-       =   OR (g=3D'srqponm' AND f GLOB 'defgh*')
+     =     OR (g=3D'srqponm' AND f LIKE 'defgh%')
  =  ]])
     end, {
    =      -- <where7-2.748.2>
@@ -28005,12 = +28005,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'vutsrqp' AND f = LIKE 'rstuv%')
          OR = f=3D'xyzabcdef'
          OR ((a = BETWEEN 49 AND 51) AND a!=3D50)
        =   OR b=3D575
          OR = b=3D385
-         OR (g=3D'utsrqpo' AND f = GLOB 'stuvw*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'stuvw%')
          OR ((a = BETWEEN 63 AND 65) AND a!=3D64)
        =   OR a=3D46
          OR = b=3D220
@@ -28027,12 +28027,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'vutsrqp' AND f LIKE 'rstuv%')
    =       OR f=3D'xyzabcdef'
      =     OR ((a BETWEEN 49 AND 51) AND a!=3D50)
  =         OR b=3D575
      =     OR b=3D385
-         OR = (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
    =       OR ((a BETWEEN 63 AND 65) AND = a!=3D64)
          OR = a=3D46
          OR = b=3D220
@@ -28055,7 +28055,7 @@ test:do_test(
  =         OR (d>=3D80.0 AND d<81.0 AND d IS NOT = NULL)
          OR = c=3D31031
          OR = b=3D869
-         OR (g=3D'jihgfed' AND f = GLOB 'zabcd*')
+         OR (g=3D'jihgfed' = AND f LIKE 'zabcd%')
          OR = b=3D245
          OR = a=3D92
          OR (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
@@ -28078,7 +28078,7 @@ = test:do_test(
          OR = (d>=3D80.0 AND d<81.0 AND d IS NOT NULL)
    =       OR c=3D31031
        =   OR b=3D869
-         OR = (g=3D'jihgfed' AND f GLOB 'zabcd*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'zabcd%')
    =       OR b=3D245
        =   OR a=3D92
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
@@ -28099,8 = +28099,8 @@ test:do_test(
          = OR c=3D28028
          OR (d>=3D40.0= AND d<41.0 AND d IS NOT NULL)
        =   OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
- =         OR (f GLOB '?rstu*' AND f GLOB = 'qrst*')
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (f LIKE = '_rstu%' AND f LIKE 'qrst%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
      =     OR ((a BETWEEN 17 AND 19) AND a!=3D18)
  =         OR c=3D9009
      =     OR a=3D17
@@ -28121,8 +28121,8 @@ = test:do_test(
          OR = c=3D28028
          OR (d>=3D40.0 = AND d<41.0 AND d IS NOT NULL)
        =   OR (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
- =         OR (f GLOB '?rstu*' AND f GLOB = 'qrst*')
-         OR (g=3D'mlkjihg' AND f = GLOB 'jklmn*')
+         OR (f LIKE = '_rstu%' AND f LIKE 'qrst%')
+         OR = (g=3D'mlkjihg' AND f LIKE 'jklmn%')
      =     OR ((a BETWEEN 17 AND 19) AND a!=3D18)
  =         OR c=3D9009
      =     OR a=3D17
@@ -28141,7 +28141,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D57.0 AND = d<58.0 AND d IS NOT NULL)
        =   OR b=3D762
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR f=3D'tuvwxyzab'
      =     OR (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 31 AND = 33) AND a!=3D32)
@@ -28161,7 +28161,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D57.0 AND = d<58.0 AND d IS NOT NULL)
        =   OR b=3D762
-         OR = (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ghijk%')
    =       OR f=3D'tuvwxyzab'
      =     OR (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 31 AND = 33) AND a!=3D32)
@@ -28219,7 +28219,7 @@ = test:do_test(
          OR = a=3D14
          OR = c=3D16016
          OR (d>=3D21.0 = AND d<22.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR f=3D'jklmnopqr'
      =     OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
          OR (d>=3D96.0 AND = d<97.0 AND d IS NOT NULL)
@@ -28240,7 +28240,7 @@ = test:do_test(
          OR = a=3D14
          OR = c=3D16016
          OR (d>=3D21.0 = AND d<22.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'efghi*')
+       =   OR (g=3D'srqponm' AND f LIKE 'efghi%')
    =       OR f=3D'jklmnopqr'
      =     OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
          OR (d>=3D96.0 AND = d<97.0 AND d IS NOT NULL)
@@ -28258,12 +28258,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D949
-   =       OR (g=3D'srqponm' AND f GLOB 'cdefg*')
- =         OR (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
+         OR (g=3D'srqponm' AND = f LIKE 'cdefg%')
+         OR (g=3D'vutsrqp'= AND f LIKE 'rstuv%')
          OR = c<=3D10
          OR = a=3D14
          OR b=3D608
-=         OR (g=3D'edcbazy' AND f GLOB = 'uvwxy*')
+         OR (g=3D'edcbazy' AND = f LIKE 'uvwxy%')
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
    =       OR b=3D121
        =   OR b=3D333
@@ -28281,12 +28281,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D949
-   =       OR (g=3D'srqponm' AND f GLOB 'cdefg*')
- =         OR (g=3D'vutsrqp' AND f GLOB = 'rstuv*')
+         OR (g=3D'srqponm' AND = f LIKE 'cdefg%')
+         OR (g=3D'vutsrqp'= AND f LIKE 'rstuv%')
          OR = c<=3D10
          OR = a=3D14
          OR b=3D608
-=         OR (g=3D'edcbazy' AND f GLOB = 'uvwxy*')
+         OR (g=3D'edcbazy' AND = f LIKE 'uvwxy%')
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
    =       OR b=3D121
        =   OR b=3D333
@@ -28303,7 +28303,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%')
    =       OR b=3D355
        =   OR b=3D627
          OR = b=3D1001
@@ -28321,7 +28321,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'rstuv*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'rstuv%')
    =       OR b=3D355
        =   OR b=3D627
          OR = b=3D1001
@@ -28339,7 +28339,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'efghi*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'efghi%')
    =       OR (d>=3D79.0 AND d<80.0 AND d IS NOT = NULL)
   ]])
     end, = {
@@ -28353,7 +28353,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'efghi*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'efghi%')
          OR = (d>=3D79.0 AND d<80.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -28370,11 = +28370,11 @@ test:do_test(
       WHERE = b=3D685
          OR = a=3D14
          OR b=3D990
-=         OR (g=3D'tsrqpon' AND f GLOB = 'abcde*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'abcde%')
          OR = f=3D'efghijklm'
          OR = c=3D1001
          OR = b=3D784
-         OR (g=3D'srqponm' AND f = GLOB 'ghijk*')
+         OR (g=3D'srqponm' = AND f LIKE 'ghijk%')
          OR = (d>=3D69.0 AND d<70.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -28391,11 = +28391,11 @@ test:do_test(
       WHERE = b=3D685
          OR = a=3D14
          OR b=3D990
-=         OR (g=3D'tsrqpon' AND f GLOB = 'abcde*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'abcde%')
          OR = f=3D'efghijklm'
          OR = c=3D1001
          OR = b=3D784
-         OR (g=3D'srqponm' AND f = GLOB 'ghijk*')
+         OR (g=3D'srqponm' = AND f LIKE 'ghijk%')
          OR = (d>=3D69.0 AND d<70.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -28410,7 = +28410,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE a=3D54
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
+         OR (g=3D'qponmlk' AND = f LIKE 'nopqr%')
          OR = c=3D26026
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
   ]])
@@ -28426,7 = +28426,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE a=3D54
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
+         OR (g=3D'qponmlk' AND = f LIKE 'nopqr%')
          OR = c=3D26026
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
   ]])
@@ -28441,13 = +28441,13 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'ghijk%')
          OR = c=3D24024
          OR = a=3D98
-         OR (g=3D'utsrqpo' AND f = GLOB 'vwxyz*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'vwxyz%')
          OR = a=3D5
          OR ((a BETWEEN 31 AND = 33) AND a!=3D32)
-         OR (g=3D'rqponml'= AND f GLOB 'klmno*')
+         OR = (g=3D'rqponml' AND f LIKE 'klmno%')
      =     OR f=3D'pqrstuvwx'
        =   OR f=3D'bcdefghij'
          = OR b=3D1001
@@ -28464,13 +28464,13 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'ghijk%')
    =       OR c=3D24024
        =   OR a=3D98
-         OR (g=3D'utsrqpo'= AND f GLOB 'vwxyz*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
      =     OR a=3D5
          OR = ((a BETWEEN 31 AND 33) AND a!=3D32)
-       =   OR (g=3D'rqponml' AND f GLOB 'klmno*')
+     =     OR (g=3D'rqponml' AND f LIKE 'klmno%')
  =         OR f=3D'pqrstuvwx'
    =       OR f=3D'bcdefghij'
      =     OR b=3D1001
@@ -28488,11 +28488,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D781
-   =       OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
+ =         OR (f LIKE '_pqrs%' AND f LIKE = 'opqr%')
          OR (d>=3D56.0 = AND d<57.0 AND d IS NOT NULL)
        =   OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL)
- =         OR (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
-         OR (g=3D'nmlkjih' AND = f GLOB 'cdefg*')
+         OR (g=3D'yxwvuts'= AND f LIKE 'bcdef%')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
      =     OR f=3D'lmnopqrst'
        =   OR a=3D39
          OR = a=3D100
@@ -28510,11 +28510,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D781
-   =       OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
+ =         OR (f LIKE '_pqrs%' AND f LIKE = 'opqr%')
          OR (d>=3D56.0 = AND d<57.0 AND d IS NOT NULL)
        =   OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL)
- =         OR (g=3D'yxwvuts' AND f GLOB = 'bcdef*')
-         OR (g=3D'nmlkjih' AND = f GLOB 'cdefg*')
+         OR (g=3D'yxwvuts'= AND f LIKE 'bcdef%')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
      =     OR f=3D'lmnopqrst'
        =   OR a=3D39
          OR = a=3D100
@@ -28533,11 +28533,11 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE c=3D4004
  =         OR b=3D718
-       =   OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
  =         OR a=3D50
      =     OR (d>=3D11.0 AND d<12.0 AND d IS NOT = NULL)
          OR b=3D363
- =         OR (g=3D'rqponml' AND f GLOB = 'ijklm*')
+         OR (g=3D'rqponml' AND = f LIKE 'ijklm%')
          OR = b=3D1023
   ]])
     end, = {
@@ -28553,11 +28553,11 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE c=3D4004
          OR = b=3D718
-         OR (g=3D'qponmlk' AND f = GLOB 'opqrs*')
+         OR (g=3D'qponmlk' = AND f LIKE 'opqrs%')
          OR = a=3D50
          OR (d>=3D11.0 AND = d<12.0 AND d IS NOT NULL)
        =   OR b=3D363
-         OR = (g=3D'rqponml' AND f GLOB 'ijklm*')
+       =   OR (g=3D'rqponml' AND f LIKE 'ijklm%')
    =       OR b=3D1023
  =  ]])
     end, {
@@ -28576,8 = +28576,8 @@ test:do_test(
          = OR b=3D473
          OR ((a BETWEEN = 43 AND 45) AND a!=3D44)
          OR = b=3D586
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
-         OR (f GLOB = '?vwxy*' AND f GLOB 'uvwx*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'abcde%')
+       =   OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.763.1>
@@ -28595,8 = +28595,8 @@ test:do_test(
          = OR b=3D473
          OR ((a BETWEEN = 43 AND 45) AND a!=3D44)
          OR = b=3D586
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
-         OR (f GLOB = '?vwxy*' AND f GLOB 'uvwx*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'abcde%')
+       =   OR (f LIKE '_vwxy%' AND f LIKE 'uvwx%')
  =  ]])
     end, {
    =      -- <where7-2.763.2>
@@ -28609,7 = +28609,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?ijkl*' AND f GLOB = 'hijk*')
+      WHERE (f LIKE '_ijkl%' AND f = LIKE 'hijk%')
          OR = (d>=3D58.0 AND d<59.0 AND d IS NOT NULL)
    =       OR (d>=3D13.0 AND d<14.0 AND d IS NOT = NULL)
   ]])
@@ -28624,7 +28624,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?ijkl*' AND f GLOB 'hijk*')
+      WHERE = (f LIKE '_ijkl%' AND f LIKE 'hijk%')
      =     OR (d>=3D58.0 AND d<59.0 AND d IS NOT = NULL)
          OR (d>=3D13.0 AND = d<14.0 AND d IS NOT NULL)
   ]])
@@ = -28639,11 +28639,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'hijkl*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'hijkl%')
          OR ((a = BETWEEN 76 AND 78) AND a!=3D77)
        =   OR a=3D47
-         OR (g=3D'kjihgfe'= AND f GLOB 'qrstu*')
-         OR = (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'lmnop%')
  =         OR (d>=3D84.0 AND d<85.0 AND d IS NOT = NULL)
          OR = f=3D'lmnopqrst'
   ]])
@@ -28658,11 = +28658,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'hgfedcb' AND f GLOB = 'hijkl*')
+      WHERE (g=3D'hgfedcb' AND f = LIKE 'hijkl%')
          OR ((a = BETWEEN 76 AND 78) AND a!=3D77)
        =   OR a=3D47
-         OR (g=3D'kjihgfe'= AND f GLOB 'qrstu*')
-         OR = (g=3D'lkjihgf' AND f GLOB 'lmnop*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
+     =     OR (g=3D'lkjihgf' AND f LIKE 'lmnop%')
  =         OR (d>=3D84.0 AND d<85.0 AND d IS NOT = NULL)
          OR = f=3D'lmnopqrst'
   ]])
@@ -28680,7 = +28680,7 @@ test:do_test(
       WHERE = c>=3D34035
          OR = a=3D29
          OR ((a BETWEEN 19 = AND 21) AND a!=3D20)
-         OR (f GLOB = '?wxyz*' AND f GLOB 'vwxy*')
+         OR = (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
      =     OR f=3D'abcdefghi'
        =   OR b=3D993
          OR ((a = BETWEEN 52 AND 54) AND a!=3D53)
@@ -28700,7 +28700,7 @@ = test:do_test(
       WHERE = c>=3D34035
          OR = a=3D29
          OR ((a BETWEEN 19 = AND 21) AND a!=3D20)
-         OR (f GLOB = '?wxyz*' AND f GLOB 'vwxy*')
+         OR = (f LIKE '_wxyz%' AND f LIKE 'vwxy%')
      =     OR f=3D'abcdefghi'
        =   OR b=3D993
          OR ((a = BETWEEN 52 AND 54) AND a!=3D53)
@@ -28878,7 +28878,7 @@ = test:do_test(
       WHERE ((a BETWEEN 32 = AND 34) AND a!=3D33)
          OR = b=3D1045
          OR = c=3D27027
-         OR (f GLOB '?mnop*' = AND f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
   ]])
  =    end, {
         -- = <where7-2.771.1>
@@ -28894,7 +28894,7 @@ = test:do_test(
       WHERE ((a BETWEEN 32 = AND 34) AND a!=3D33)
          OR = b=3D1045
          OR = c=3D27027
-         OR (f GLOB '?mnop*' = AND f GLOB 'lmno*')
+         OR (f LIKE = '_mnop%' AND f LIKE 'lmno%')
   ]])
  =    end, {
         -- = <where7-2.771.2>
@@ -28910,7 +28910,7 @@ = test:do_test(
       WHERE = a=3D87
          OR (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
        =   OR b=3D487
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.772.1>
@@ -28926,7 = +28926,7 @@ test:do_test(
       WHERE = a=3D87
          OR (d>=3D47.0 AND = d<48.0 AND d IS NOT NULL)
        =   OR b=3D487
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =  ]])
     end, {
    =      -- <where7-2.772.2>
@@ -29018,10 = +29018,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D220
- =         OR (g=3D'nmlkjih' AND f GLOB = 'cdefg*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'cdefg%')
          OR = b=3D363
          OR (d>=3D66.0 = AND d<67.0 AND d IS NOT NULL)
-         = OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 10 AND = 12) AND a!=3D11)
   ]])
@@ -29037,10 = +29037,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D220
- =         OR (g=3D'nmlkjih' AND f GLOB = 'cdefg*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'cdefg%')
          OR = b=3D363
          OR (d>=3D66.0 = AND d<67.0 AND d IS NOT NULL)
-         = OR (g=3D'nmlkjih' AND f GLOB 'defgh*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'defgh%')
    =       OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 10 AND = 12) AND a!=3D11)
   ]])
@@ -29096,8 = +29096,8 @@ test:do_test(
       WHERE = b=3D1059
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
        =   OR b=3D960
-         OR (f GLOB = '?rstu*' AND f GLOB 'qrst*')
-         OR = (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+       =   OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
+     =     OR (g=3D'wvutsrq' AND f LIKE 'mnopq%')
  =         OR b=3D894
      =     OR c=3D2002
   ]])
@@ = -29115,8 +29115,8 @@ test:do_test(
      =  WHERE b=3D1059
          OR = (d>=3D20.0 AND d<21.0 AND d IS NOT NULL)
    =       OR b=3D960
-         = OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
-       =   OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+     =     OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'mnopq%')
          OR = b=3D894
          OR = c=3D2002
   ]])
@@ -29132,7 +29132,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D14
-   =       OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'hijkl%')
   ]])
     end, = {
         -- = <where7-2.778.1>
@@ -29146,7 +29146,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D14
-   =       OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+ =         OR (g=3D'hgfedcb' AND f LIKE = 'hijkl%')
   ]])
     end, = {
         -- = <where7-2.778.2>
@@ -29160,7 +29160,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D806
-   =       OR (g=3D'rqponml' AND f GLOB 'hijkl*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'hijkl%')
          OR = b=3D795
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = ((a BETWEEN 21 AND 23) AND a!=3D22)
@@ -29180,7 +29180,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D806
-   =       OR (g=3D'rqponml' AND f GLOB 'hijkl*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'hijkl%')
          OR = b=3D795
          OR ((a BETWEEN 99 = AND 101) AND a!=3D100)
          OR = ((a BETWEEN 21 AND 23) AND a!=3D22)
@@ -29200,7 +29200,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D726
-   =       OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+ =         OR (f LIKE '_qrst%' AND f LIKE = 'pqrs%')
          OR ((a BETWEEN 8 = AND 10) AND a!=3D9)
          OR = f=3D'abcdefghi'
          OR = (d>=3D92.0 AND d<93.0 AND d IS NOT NULL)
@@ -29218,7 = +29218,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D726
- =         OR (f GLOB '?qrst*' AND f GLOB = 'pqrs*')
+         OR (f LIKE '_qrst%' AND = f LIKE 'pqrs%')
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
        =   OR f=3D'abcdefghi'
          = OR (d>=3D92.0 AND d<93.0 AND d IS NOT NULL)
@@ -29238,7 = +29238,7 @@ test:do_test(
       WHERE = a=3D59
          OR ((a BETWEEN 5 AND = 7) AND a!=3D6)
          OR = b=3D1081
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'stuvw%')
   ]])
    =  end, {
         -- = <where7-2.781.1>
@@ -29254,7 +29254,7 @@ = test:do_test(
       WHERE = a=3D59
          OR ((a BETWEEN 5 AND = 7) AND a!=3D6)
          OR = b=3D1081
-         OR (g=3D'fedcbaz' AND f = GLOB 'stuvw*')
+         OR (g=3D'fedcbaz' = AND f LIKE 'stuvw%')
   ]])
    =  end, {
         -- = <where7-2.781.2>
@@ -29267,15 +29267,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'nopqr%')
    =       OR b=3D1037
        =   OR b=3D132
          OR = c=3D1001
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
        =   OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+         OR (g=3D'gfedcba' AND = f LIKE 'nopqr%')
          OR = (d>=3D58.0 AND d<59.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR = a=3D32
   ]])
     end, = {
@@ -29289,15 +29289,15 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'nopqr*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'nopqr%')
          OR = b=3D1037
          OR = b=3D132
          OR = c=3D1001
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
        =   OR (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
- =         OR (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+         OR (g=3D'gfedcba' AND = f LIKE 'nopqr%')
          OR = (d>=3D58.0 AND d<59.0 AND d IS NOT NULL)
-     =     OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+   =       OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR = a=3D32
   ]])
     end, = {
@@ -29355,7 +29355,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D1001
          OR ((a BETWEEN 23 = AND 25) AND a!=3D24)
          OR = a=3D83
@@ -29371,7 +29371,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D1001
          OR ((a BETWEEN 23 = AND 25) AND a!=3D24)
          OR = a=3D83
@@ -29389,13 +29389,13 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D60.0 AND = d<61.0 AND d IS NOT NULL)
        =   OR b=3D36
-         OR (f GLOB = '?efgh*' AND f GLOB 'defg*')
-         OR = (g=3D'ihgfedc' AND f GLOB 'cdefg*')
+       =   OR (f LIKE '_efgh%' AND f LIKE 'defg%')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
  =         OR ((a BETWEEN 46 AND 48) AND = a!=3D47)
          OR ((a BETWEEN 31 = AND 33) AND a!=3D32)
          OR = (d>=3D91.0 AND d<92.0 AND d IS NOT NULL)
-     =     OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
-   =       OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'efghi%')
+         OR (g=3D'jihgfed' AND = f LIKE 'vwxyz%')
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 26 AND 28) AND = a!=3D27)
   ]])
@@ -29412,13 +29412,13 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D60.0 AND = d<61.0 AND d IS NOT NULL)
        =   OR b=3D36
-         OR (f GLOB = '?efgh*' AND f GLOB 'defg*')
-         OR = (g=3D'ihgfedc' AND f GLOB 'cdefg*')
+       =   OR (f LIKE '_efgh%' AND f LIKE 'defg%')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'cdefg%')
  =         OR ((a BETWEEN 46 AND 48) AND = a!=3D47)
          OR ((a BETWEEN 31 = AND 33) AND a!=3D32)
          OR = (d>=3D91.0 AND d<92.0 AND d IS NOT NULL)
-     =     OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
-   =       OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+ =         OR (g=3D'ihgfedc' AND f LIKE = 'efghi%')
+         OR (g=3D'jihgfed' AND = f LIKE 'vwxyz%')
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 26 AND 28) AND = a!=3D27)
   ]])
@@ -29434,7 +29434,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE a=3D69
-   =       OR (f GLOB '?defg*' AND f GLOB 'cdef*')
+ =         OR (f LIKE '_defg%' AND f LIKE = 'cdef%')
          OR ((a BETWEEN 58 = AND 60) AND a!=3D59)
          OR = a=3D98
          OR = b=3D300
@@ -29456,7 +29456,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE a=3D69
-         OR (f GLOB = '?defg*' AND f GLOB 'cdef*')
+         OR = (f LIKE '_defg%' AND f LIKE 'cdef%')
      =     OR ((a BETWEEN 58 AND 60) AND a!=3D59)
  =         OR a=3D98
      =     OR b=3D300
@@ -29480,8 +29480,8 @@ = test:do_test(
       WHERE ((a BETWEEN 68 = AND 70) AND a!=3D69)
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 94 AND 96) AND a!=3D95)
- =         OR (f GLOB '?cdef*' AND f GLOB = 'bcde*')
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
      =     OR ((a BETWEEN 22 AND 24) AND a!=3D23)
  =         OR b=3D619
      =     OR c=3D6006
@@ -29503,8 +29503,8 @@ = test:do_test(
       WHERE ((a BETWEEN 68 = AND 70) AND a!=3D69)
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 94 AND 96) AND a!=3D95)
- =         OR (f GLOB '?cdef*' AND f GLOB = 'bcde*')
-         OR (g=3D'gfedcba' AND f = GLOB 'mnopq*')
+         OR (f LIKE = '_cdef%' AND f LIKE 'bcde%')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
      =     OR ((a BETWEEN 22 AND 24) AND a!=3D23)
  =         OR b=3D619
      =     OR c=3D6006
@@ -29525,7 +29525,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 9 AND 11) AND = a!=3D10)
          OR = a=3D55
-         OR (g=3D'jihgfed' AND f = GLOB 'xyzab*')
+         OR (g=3D'jihgfed' = AND f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.788.1>
@@ -29540,7 +29540,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 9 AND 11) AND = a!=3D10)
          OR = a=3D55
-         OR (g=3D'jihgfed' AND f = GLOB 'xyzab*')
+         OR (g=3D'jihgfed' = AND f LIKE 'xyzab%')
   ]])
    =  end, {
         -- = <where7-2.788.2>
@@ -29558,7 +29558,7 @@ = test:do_test(
          OR = b=3D201
          OR = a=3D7
          OR (d>=3D26.0 AND = d<27.0 AND d IS NOT NULL)
-         OR = (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR b=3D957
  =  ]])
     end, {
@@ -29577,7 = +29577,7 @@ test:do_test(
          = OR b=3D201
          OR = a=3D7
          OR (d>=3D26.0 AND = d<27.0 AND d IS NOT NULL)
-         OR = (g=3D'yxwvuts' AND f GLOB 'cdefg*')
+       =   OR (g=3D'yxwvuts' AND f LIKE 'cdefg%')
    =       OR b=3D957
  =  ]])
     end, {
@@ -29593,10 = +29593,10 @@ test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 90 AND 92) AND = a!=3D91)
          OR = a=3D74
-         OR (g=3D'lkjihgf' AND f = GLOB 'pqrst*')
+         OR (g=3D'lkjihgf' = AND f LIKE 'pqrst%')
          OR ((a = BETWEEN 95 AND 97) AND a!=3D96)
-         = OR (g=3D'ihgfedc' AND f GLOB 'bcdef*')
-       =   OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
+     =     OR (g=3D'ihgfedc' AND f LIKE 'bcdef%')
+   =       OR (f LIKE '_tuvw%' AND f LIKE = 'stuv%')
          OR = a=3D89
   ]])
     end, = {
@@ -29612,10 +29612,10 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE ((a BETWEEN 90 AND 92) AND a!=3D91)
    =       OR a=3D74
-         = OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'pqrst%')
    =       OR ((a BETWEEN 95 AND 97) AND a!=3D96)
- =         OR (g=3D'ihgfedc' AND f GLOB = 'bcdef*')
-         OR (f GLOB '?tuvw*' = AND f GLOB 'stuv*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'bcdef%')
+       =   OR (f LIKE '_tuvw%' AND f LIKE 'stuv%')
    =       OR a=3D89
  =  ]])
     end, {
@@ -29636,7 = +29636,7 @@ test:do_test(
          = OR b=3D495
          OR = b=3D564
          OR = b=3D289
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
+         OR (g=3D'qponmlk' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.791.1>
@@ -29656,7 +29656,7 @@ = test:do_test(
          OR = b=3D495
          OR = b=3D564
          OR = b=3D289
-         OR (g=3D'qponmlk' AND f = GLOB 'nopqr*')
+         OR (g=3D'qponmlk' = AND f LIKE 'nopqr%')
   ]])
    =  end, {
         -- = <where7-2.791.2>
@@ -29669,7 +29669,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'wxyza%')
    =       OR a=3D69
        =   OR a=3D12
          OR = b=3D718
@@ -29686,7 +29686,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'wxyza*')
+      WHERE (g=3D'utsrqpo' AND f = LIKE 'wxyza%')
          OR = a=3D69
          OR = a=3D12
          OR = b=3D718
@@ -29703,7 +29703,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR = f=3D'klmnopqrs'
          OR = b=3D674
          OR = a=3D96
@@ -29712,7 +29712,7 @@ test:do_test(
  =         OR b=3D707
      =     OR f=3D'cdefghijk'
        =   OR a=3D91
-         OR (g=3D'tsrqpon'= AND f GLOB 'xyzab*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.793.1>
@@ -29725,7 = +29725,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'zabcd%')
          OR = f=3D'klmnopqrs'
          OR = b=3D674
          OR = a=3D96
@@ -29734,7 +29734,7 @@ test:do_test(
  =         OR b=3D707
      =     OR f=3D'cdefghijk'
        =   OR a=3D91
-         OR (g=3D'tsrqpon'= AND f GLOB 'xyzab*')
+         OR = (g=3D'tsrqpon' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.793.2>
@@ -29747,12 = +29747,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?klmn*' AND f GLOB = 'jklm*')
+      WHERE (f LIKE '_klmn%' AND f = LIKE 'jklm%')
          OR = b=3D564
          OR = b=3D784
          OR = b=3D418
          OR = b=3D275
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
          OR = a=3D58
          OR = c=3D11011
          OR = b=3D660
@@ -29768,12 +29768,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?klmn*' AND f GLOB 'jklm*')
+      WHERE = (f LIKE '_klmn%' AND f LIKE 'jklm%')
      =     OR b=3D564
          OR = b=3D784
          OR = b=3D418
          OR = b=3D275
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
          OR = a=3D58
          OR = c=3D11011
          OR = b=3D660
@@ -29794,7 +29794,7 @@ test:do_test(
  =         OR b=3D1004
      =     OR ((a BETWEEN 28 AND 30) AND a!=3D29)
  =         OR ((a BETWEEN 57 AND 59) AND = a!=3D58)
-         OR (g=3D'mlkjihg' AND f = GLOB 'hijkl*')
+         OR (g=3D'mlkjihg' = AND f LIKE 'hijkl%')
          OR = f=3D'pqrstuvwx'
   ]])
    =  end, {
@@ -29813,7 +29813,7 @@ = test:do_test(
          OR = b=3D1004
          OR ((a BETWEEN 28 = AND 30) AND a!=3D29)
          OR ((a = BETWEEN 57 AND 59) AND a!=3D58)
-         = OR (g=3D'mlkjihg' AND f GLOB 'hijkl*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'hijkl%')
    =       OR f=3D'pqrstuvwx'
  =  ]])
     end, {
@@ -29886,7 = +29886,7 @@ test:do_test(
       WHERE = a=3D19
          OR = a=3D29
          OR b=3D476
-=         OR (g=3D'qponmlk' AND f GLOB = 'pqrst*')
+         OR (g=3D'qponmlk' AND = f LIKE 'pqrst%')
          OR = b=3D91
   ]])
     end, = {
@@ -29903,7 +29903,7 @@ test:do_test(
  =      WHERE a=3D19
        =   OR a=3D29
          OR = b=3D476
-         OR (g=3D'qponmlk' AND f = GLOB 'pqrst*')
+         OR (g=3D'qponmlk' = AND f LIKE 'pqrst%')
          OR = b=3D91
   ]])
     end, = {
@@ -29954,8 +29954,8 @@ test:do_test(
  =         OR ((a BETWEEN 95 AND 97) AND = a!=3D96)
          OR ((a BETWEEN 32 = AND 34) AND a!=3D33)
          OR = b=3D44
-         OR (g=3D'hgfedcb' AND f = GLOB 'ghijk*')
-         OR (g=3D'onmlkji' = AND f GLOB 'xyzab*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'ghijk%')
+       =   OR (g=3D'onmlkji' AND f LIKE 'xyzab%')
    =       OR b=3D707
        =   OR b=3D322
   ]])
@@ -29975,8 = +29975,8 @@ test:do_test(
          = OR ((a BETWEEN 95 AND 97) AND a!=3D96)
      =     OR ((a BETWEEN 32 AND 34) AND a!=3D33)
  =         OR b=3D44
-       =   OR (g=3D'hgfedcb' AND f GLOB 'ghijk*')
-     =     OR (g=3D'onmlkji' AND f GLOB 'xyzab*')
+   =       OR (g=3D'hgfedcb' AND f LIKE 'ghijk%')
+ =         OR (g=3D'onmlkji' AND f LIKE = 'xyzab%')
          OR = b=3D707
          OR = b=3D322
   ]])
@@ -29991,8 +29991,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?efgh*' AND f GLOB 'defg*')
-       =   OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
+     =  WHERE (f LIKE '_efgh%' AND f LIKE 'defg%')
+   =       OR (g=3D'ihgfedc' AND f LIKE = 'efghi%')
          OR (d>=3D89.0 = AND d<90.0 AND d IS NOT NULL)
        =   OR f=3D'jklmnopqr'
   ]])
@@ = -30007,8 +30007,8 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?efgh*' AND f GLOB = 'defg*')
-         OR (g=3D'ihgfedc' AND f = GLOB 'efghi*')
+      WHERE (f LIKE '_efgh%' = AND f LIKE 'defg%')
+         OR = (g=3D'ihgfedc' AND f LIKE 'efghi%')
      =     OR (d>=3D89.0 AND d<90.0 AND d IS NOT = NULL)
          OR = f=3D'jklmnopqr'
   ]])
@@ -30024,14 = +30024,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D946
- =         OR (g=3D'ihgfedc' AND f GLOB = 'abcde*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'abcde%')
          OR = a=3D47
-         OR (g=3D'qponmlk' AND f = GLOB 'qrstu*')
+         OR (g=3D'qponmlk' = AND f LIKE 'qrstu%')
          OR = (d>=3D93.0 AND d<94.0 AND d IS NOT NULL)
-     =     OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'ijklm%')
          OR = b=3D80
          OR ((a BETWEEN 60 = AND 62) AND a!=3D61)
-         OR = (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.802.1>
@@ -30045,14 = +30045,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D946
- =         OR (g=3D'ihgfedc' AND f GLOB = 'abcde*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'abcde%')
          OR = a=3D47
-         OR (g=3D'qponmlk' AND f = GLOB 'qrstu*')
+         OR (g=3D'qponmlk' = AND f LIKE 'qrstu%')
          OR = (d>=3D93.0 AND d<94.0 AND d IS NOT NULL)
-     =     OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
+   =       OR (g=3D'wvutsrq' AND f LIKE = 'ijklm%')
          OR = b=3D80
          OR ((a BETWEEN 60 = AND 62) AND a!=3D61)
-         OR = (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'xyzab%')
  =  ]])
     end, {
    =      -- <where7-2.802.2>
@@ -30069,10 = +30069,10 @@ test:do_test(
          = OR (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
  =         OR b=3D1015
      =     OR a=3D57
-         OR (f = GLOB '?klmn*' AND f GLOB 'jklm*')
+       =   OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
    =       OR ((a BETWEEN 47 AND 49) AND = a!=3D48)
          OR ((a BETWEEN 98 = AND 100) AND a!=3D99)
-         OR = (g=3D'onmlkji' AND f GLOB 'yzabc*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'yzabc%')
    =       OR (d>=3D4.0 AND d<5.0 AND d IS NOT = NULL)
          OR = b=3D165
   ]])
@@ -30091,10 +30091,10 @@ = test:do_test(
          OR = (d>=3D55.0 AND d<56.0 AND d IS NOT NULL)
    =       OR b=3D1015
        =   OR a=3D57
-         OR (f GLOB = '?klmn*' AND f GLOB 'jklm*')
+         OR = (f LIKE '_klmn%' AND f LIKE 'jklm%')
      =     OR ((a BETWEEN 47 AND 49) AND a!=3D48)
  =         OR ((a BETWEEN 98 AND 100) AND = a!=3D99)
-         OR (g=3D'onmlkji' AND f = GLOB 'yzabc*')
+         OR (g=3D'onmlkji' = AND f LIKE 'yzabc%')
          OR = (d>=3D4.0 AND d<5.0 AND d IS NOT NULL)
    =       OR b=3D165
   ]])
@@ = -30113,7 +30113,7 @@ test:do_test(
        =   OR a=3D73
          OR = b=3D1048
          OR = c>=3D34035
-         OR (g=3D'ihgfedc' = AND f GLOB 'cdefg*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'cdefg%')
      =     OR a=3D72
          OR = ((a BETWEEN 91 AND 93) AND a!=3D92)
      =     OR b=3D638
@@ -30133,7 +30133,7 @@ = test:do_test(
          OR = a=3D73
          OR = b=3D1048
          OR = c>=3D34035
-         OR (g=3D'ihgfedc' = AND f GLOB 'cdefg*')
+         OR = (g=3D'ihgfedc' AND f LIKE 'cdefg%')
      =     OR a=3D72
          OR = ((a BETWEEN 91 AND 93) AND a!=3D92)
      =     OR b=3D638
@@ -30181,10 +30181,10 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D50
  =         OR ((a BETWEEN 61 AND 63) AND = a!=3D62)
-         OR (f GLOB '?stuv*' AND = f GLOB 'rstu*')
+         OR (f LIKE = '_stuv%' AND f LIKE 'rstu%')
        =   OR a=3D32
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
-         = OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
    =       OR a=3D14
        =   OR (d>=3D97.0 AND d<98.0 AND d IS NOT = NULL)
          OR b=3D946
@@= -30204,10 +30204,10 @@ test:do_test(
      = SELECT a FROM t3
       WHERE = a=3D50
          OR ((a BETWEEN 61 = AND 63) AND a!=3D62)
-         OR (f GLOB = '?stuv*' AND f GLOB 'rstu*')
+         OR = (f LIKE '_stuv%' AND f LIKE 'rstu%')
      =     OR a=3D32
          OR = ((a BETWEEN 93 AND 95) AND a!=3D94)
-       =   OR (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
  =         OR a=3D14
      =     OR (d>=3D97.0 AND d<98.0 AND d IS NOT = NULL)
          OR b=3D946
@@= -30228,7 +30228,7 @@ test:do_test(
      =  WHERE ((a BETWEEN 88 AND 90) AND a!=3D89)
    =       OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.807.1>
@@ -30244,7 = +30244,7 @@ test:do_test(
       WHERE ((a = BETWEEN 88 AND 90) AND a!=3D89)
        =   OR (d>=3D52.0 AND d<53.0 AND d IS NOT = NULL)
          OR (d>=3D66.0 AND = d<67.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'klmno*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'klmno%')
  =  ]])
     end, {
    =      -- <where7-2.807.2>
@@ -30259,7 = +30259,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D6
  =         OR f=3D'tuvwxyzab'
-     =     OR (g=3D'mlkjihg' AND f GLOB 'hijkl*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'hijkl%')
          OR = b=3D286
          OR = b=3D781
   ]])
@@ -30276,7 +30276,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D6
  =         OR f=3D'tuvwxyzab'
-     =     OR (g=3D'mlkjihg' AND f GLOB 'hijkl*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'hijkl%')
          OR = b=3D286
          OR = b=3D781
   ]])
@@ -30291,12 +30291,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'jihgfed' AND f GLOB 'zabcd*')
-       =   OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%')
+   =       OR (f LIKE '_mnop%' AND f LIKE = 'lmno%')
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 79 AND 81) AND a!=3D80)
-     =     OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
-   =       OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+ =         OR (g=3D'edcbazy' AND f LIKE = 'wxyza%')
+         OR (f LIKE '_klmn%' = AND f LIKE 'jklm%')
          OR = f=3D'vwxyzabcd'
          OR = b=3D275
   ]])
@@ -30311,12 +30311,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'zabcd*')
-       =   OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%')
+   =       OR (f LIKE '_mnop%' AND f LIKE = 'lmno%')
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 79 AND 81) AND a!=3D80)
-     =     OR (g=3D'edcbazy' AND f GLOB 'wxyza*')
-   =       OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+ =         OR (g=3D'edcbazy' AND f LIKE = 'wxyza%')
+         OR (f LIKE '_klmn%' = AND f LIKE 'jklm%')
          OR = f=3D'vwxyzabcd'
          OR = b=3D275
   ]])
@@ -30332,10 +30332,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D30.0 AND = d<31.0 AND d IS NOT NULL)
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
-       =   OR (g=3D'gfedcba' AND f GLOB 'lmnop*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'lmnop%')
          OR (d>=3D64.0 = AND d<65.0 AND d IS NOT NULL)
-         = OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR a=3D59
  =  ]])
     end, {
@@ -30350,10 = +30350,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE (d>=3D30.0 AND = d<31.0 AND d IS NOT NULL)
-         OR = (g=3D'xwvutsr' AND f GLOB 'efghi*')
-       =   OR (g=3D'gfedcba' AND f GLOB 'lmnop*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'efghi%')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'lmnop%')
          OR (d>=3D64.0 = AND d<65.0 AND d IS NOT NULL)
-         = OR (g=3D'gfedcba' AND f GLOB 'nopqr*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR a=3D59
  =  ]])
     end, {
@@ -30367,10 = +30367,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?xyza*' AND f GLOB = 'wxyz*')
+      WHERE (f LIKE '_xyza%' AND f = LIKE 'wxyz%')
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
-         OR = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
-       =   OR (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+     =     OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
+   =       OR (g=3D'edcbazy' AND f LIKE = 'vwxyz%')
          OR = b=3D663
          OR = f=3D'ghijklmno'
          OR ((a = BETWEEN 14 AND 16) AND a!=3D15)
@@ -30390,10 +30390,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?xyza*' AND f GLOB 'wxyz*')
+      WHERE = (f LIKE '_xyza%' AND f LIKE 'wxyz%')
      =     OR ((a BETWEEN 8 AND 10) AND a!=3D9)
-   =       OR (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
- =         OR (g=3D'edcbazy' AND f GLOB = 'vwxyz*')
+         OR (g=3D'kjihgfe' AND = f LIKE 'tuvwx%')
+         OR (g=3D'edcbazy'= AND f LIKE 'vwxyz%')
          OR = b=3D663
          OR = f=3D'ghijklmno'
          OR ((a = BETWEEN 14 AND 16) AND a!=3D15)
@@ -30420,9 +30420,9 @@ = test:do_test(
          OR = b=3D597
          OR ((a BETWEEN 92 = AND 94) AND a!=3D93)
          OR = (d>=3D88.0 AND d<89.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
+   =       OR (f LIKE '_lmno%' AND f LIKE = 'klmn%')
          OR = b=3D168
-         OR (g=3D'vutsrqp' AND f = GLOB 'pqrst*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'pqrst%')
   ]])
    =  end, {
         -- = <where7-2.812.1>
@@ -30442,9 +30442,9 @@ = test:do_test(
          OR = b=3D597
          OR ((a BETWEEN 92 = AND 94) AND a!=3D93)
          OR = (d>=3D88.0 AND d<89.0 AND d IS NOT NULL)
-     =     OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
+   =       OR (f LIKE '_lmno%' AND f LIKE = 'klmn%')
          OR = b=3D168
-         OR (g=3D'vutsrqp' AND f = GLOB 'pqrst*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'pqrst%')
   ]])
    =  end, {
         -- = <where7-2.812.2>
@@ -30498,7 +30498,7 @@ = test:do_test(
          OR = a=3D75
          OR = b=3D179
          OR (d>=3D43.0 = AND d<44.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'stuvw%')
    =       OR (d>=3D65.0 AND d<66.0 AND d IS NOT = NULL)
          OR = b=3D850
          OR = a=3D62
@@ -30519,7 +30519,7 @@ test:do_test(
  =         OR a=3D75
      =     OR b=3D179
          OR = (d>=3D43.0 AND d<44.0 AND d IS NOT NULL)
-     =     OR (g=3D'utsrqpo' AND f GLOB 'stuvw*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'stuvw%')
          OR (d>=3D65.0 = AND d<66.0 AND d IS NOT NULL)
        =   OR b=3D850
          OR = a=3D62
@@ -30583,7 +30583,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D176
          OR = b=3D297
-         OR (g=3D'tsrqpon' AND f = GLOB 'zabcd*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'zabcd%')
          OR = f=3D'ijklmnopq'
   ]])
    =  end, {
@@ -30599,7 +30599,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D176
  =         OR b=3D297
-       =   OR (g=3D'tsrqpon' AND f GLOB 'zabcd*')
+     =     OR (g=3D'tsrqpon' AND f LIKE 'zabcd%')
  =         OR f=3D'ijklmnopq'
  =  ]])
     end, {
@@ -30653,9 = +30653,9 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D22.0 AND = d<23.0 AND d IS NOT NULL)
        =   OR b=3D396
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR b=3D1012
-         = OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+       =   OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
    =       OR b=3D784
        =   OR (d>=3D60.0 AND d<61.0 AND d IS NOT = NULL)
          OR b=3D979
@@= -30676,9 +30676,9 @@ test:do_test(
      = SELECT a FROM t3
       WHERE (d>=3D22.0 = AND d<23.0 AND d IS NOT NULL)
        =   OR b=3D396
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
    =       OR b=3D1012
-         = OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
+       =   OR (f LIKE '_klmn%' AND f LIKE 'jklm%')
    =       OR b=3D784
        =   OR (d>=3D60.0 AND d<61.0 AND d IS NOT = NULL)
          OR b=3D979
@@= -30726,9 +30726,9 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE ((a BETWEEN = 79 AND 81) AND a!=3D80)
-         OR (f = GLOB '?rstu*' AND f GLOB 'qrst*')
+       =   OR (f LIKE '_rstu%' AND f LIKE 'qrst%')
    =       OR ((a BETWEEN 23 AND 25) AND a!=3D24)
- =         OR (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+         OR (f LIKE '_uvwx%' AND = f LIKE 'tuvw%')
   ]])
    =  end, {
         -- = <where7-2.820.1>
@@ -30742,9 +30742,9 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 79 AND 81) AND = a!=3D80)
-         OR (f GLOB '?rstu*' AND = f GLOB 'qrst*')
+         OR (f LIKE = '_rstu%' AND f LIKE 'qrst%')
        =   OR ((a BETWEEN 23 AND 25) AND a!=3D24)
-     =     OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
+   =       OR (f LIKE '_uvwx%' AND f LIKE = 'tuvw%')
   ]])
     end, = {
         -- = <where7-2.820.2>
@@ -30830,7 +30830,7 @@ = test:do_test(
          OR = c=3D19019
          OR = b=3D245
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
-         OR (f GLOB = '?nopq*' AND f GLOB 'mnop*')
+         OR = (f LIKE '_nopq%' AND f LIKE 'mnop%')
      =     OR ((a BETWEEN 68 AND 70) AND a!=3D69)
  =         OR b=3D572
      =     OR ((a BETWEEN 22 AND 24) AND a!=3D23)
@@ = -30853,7 +30853,7 @@ test:do_test(
        =   OR c=3D19019
          OR = b=3D245
          OR ((a BETWEEN 97 = AND 99) AND a!=3D98)
-         OR (f GLOB = '?nopq*' AND f GLOB 'mnop*')
+         OR = (f LIKE '_nopq%' AND f LIKE 'mnop%')
      =     OR ((a BETWEEN 68 AND 70) AND a!=3D69)
  =         OR b=3D572
      =     OR ((a BETWEEN 22 AND 24) AND a!=3D23)
@@ = -30915,7 +30915,7 @@ test:do_test(
        =   OR (d>=3D40.0 AND d<41.0 AND d IS NOT = NULL)
          OR = b=3D828
          OR = b=3D363
-         OR (g=3D'rqponml' AND f = GLOB 'lmnop*')
+         OR (g=3D'rqponml' = AND f LIKE 'lmnop%')
   ]])
    =  end, {
         -- = <where7-2.825.1>
@@ -30934,7 +30934,7 @@ = test:do_test(
          OR = (d>=3D40.0 AND d<41.0 AND d IS NOT NULL)
    =       OR b=3D828
        =   OR b=3D363
-         OR = (g=3D'rqponml' AND f GLOB 'lmnop*')
+       =   OR (g=3D'rqponml' AND f LIKE 'lmnop%')
  =  ]])
     end, {
    =      -- <where7-2.825.2>
@@ -30947,7 = +30947,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'gfedcba' AND f GLOB = 'lmnop*')
+      WHERE (g=3D'gfedcba' AND f = LIKE 'lmnop%')
          OR = a=3D41
          OR (d>=3D29.0 AND = d<30.0 AND d IS NOT NULL)
        =   OR b=3D825
@@ -30963,7 +30963,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'gfedcba' AND f GLOB 'lmnop*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%')
    =       OR a=3D41
        =   OR (d>=3D29.0 AND d<30.0 AND d IS NOT = NULL)
          OR b=3D825
@@= -30986,7 +30986,7 @@ test:do_test(
      =     OR ((a BETWEEN 89 AND 91) AND a!=3D90)
  =         OR b=3D561
      =     OR c=3D8008
-         OR = (g=3D'hgfedcb' AND f GLOB 'ghijk*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'ghijk%')
    =       OR b=3D935
        =   OR c=3D1001
   ]])
@@ -31008,7 = +31008,7 @@ test:do_test(
          = OR ((a BETWEEN 89 AND 91) AND a!=3D90)
      =     OR b=3D561
          OR = c=3D8008
-         OR (g=3D'hgfedcb' AND f = GLOB 'ghijk*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'ghijk%')
          OR = b=3D935
          OR = c=3D1001
   ]])
@@ -31024,7 +31024,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 75 AND 77) AND = a!=3D76)
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
   ]])
    =  end, {
         -- = <where7-2.828.1>
@@ -31038,7 +31038,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE ((a BETWEEN 75 AND 77) AND = a!=3D76)
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
   ]])
    =  end, {
         -- = <where7-2.828.2>
@@ -31114,9 +31114,9 @@ = test:do_test(
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
    =       OR f=3D'zabcdefgh'
      =     OR b=3D861
-         OR = (g=3D'vutsrqp' AND f GLOB 'pqrst*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
    =       OR a=3D28
-         = OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D311
  =  ]])
     end, {
@@ -31137,9 = +31137,9 @@ test:do_test(
          = OR (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
  =         OR f=3D'zabcdefgh'
    =       OR b=3D861
-         = OR (g=3D'vutsrqp' AND f GLOB 'pqrst*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'pqrst%')
    =       OR a=3D28
-         = OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D311
  =  ]])
     end, {
@@ -31154,10 = +31154,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D575
- =         OR (f GLOB '?nopq*' AND f GLOB = 'mnop*')
+         OR (f LIKE '_nopq%' AND = f LIKE 'mnop%')
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
    =       OR b=3D418
-         = OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
+       =   OR (f LIKE '_qrst%' AND f LIKE 'pqrs%')
    =       OR b=3D792
        =   OR b=3D861
          OR = b=3D220
@@ -31175,10 +31175,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D575
-   =       OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
+ =         OR (f LIKE '_nopq%' AND f LIKE = 'mnop%')
          OR (d>=3D73.0 = AND d<74.0 AND d IS NOT NULL)
        =   OR b=3D418
-         OR (f GLOB = '?qrst*' AND f GLOB 'pqrs*')
+         OR = (f LIKE '_qrst%' AND f LIKE 'pqrs%')
      =     OR b=3D792
          OR = b=3D861
          OR = b=3D220
@@ -31233,7 +31233,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'qponmlk' AND f GLOB = 'qrstu*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'qrstu%')
          OR = b=3D693
          OR = a=3D73
          OR = b=3D627
@@ -31243,7 +31243,7 @@ test:do_test(
  =         OR b=3D267
      =     OR b=3D872
          OR = a=3D27
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
   ]])
    =  end, {
         -- = <where7-2.834.1>
@@ -31256,7 +31256,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR b=3D693
        =   OR a=3D73
          OR = b=3D627
@@ -31266,7 +31266,7 @@ test:do_test(
  =         OR b=3D267
      =     OR b=3D872
          OR = a=3D27
-         OR (g=3D'gfedcba' AND f = GLOB 'klmno*')
+         OR (g=3D'gfedcba' = AND f LIKE 'klmno%')
   ]])
    =  end, {
         -- = <where7-2.834.2>
@@ -31351,15 +31351,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D66
        =   OR b=3D322
          OR = b=3D465
-         OR (g=3D'gfedcba' AND f = GLOB 'lmnop*')
+         OR (g=3D'gfedcba' = AND f LIKE 'lmnop%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR (d>=3D7.0 AND d<8.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 77 AND = 79) AND a!=3D78)
-         OR (g=3D'lkjihgf'= AND f GLOB 'mnopq*')
+         OR = (g=3D'lkjihgf' AND f LIKE 'mnopq%')
      =     OR (d>=3D38.0 AND d<39.0 AND d IS NOT = NULL)
          OR = b=3D454
   ]])
@@ -31374,15 +31374,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'ponmlkj' AND f GLOB 'uvwxy*')
+     =  WHERE (g=3D'ponmlkj' AND f LIKE 'uvwxy%')
    =       OR b=3D66
        =   OR b=3D322
          OR = b=3D465
-         OR (g=3D'gfedcba' AND f = GLOB 'lmnop*')
+         OR (g=3D'gfedcba' = AND f LIKE 'lmnop%')
          OR = (d>=3D38.0 AND d<39.0 AND d IS NOT NULL)
    =       OR (d>=3D7.0 AND d<8.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 77 AND = 79) AND a!=3D78)
-         OR (g=3D'lkjihgf'= AND f GLOB 'mnopq*')
+         OR = (g=3D'lkjihgf' AND f LIKE 'mnopq%')
      =     OR (d>=3D38.0 AND d<39.0 AND d IS NOT = NULL)
          OR = b=3D454
   ]])
@@ -31402,7 +31402,7 @@ = test:do_test(
          OR = c=3D15015
          OR (d>=3D84.0 = AND d<85.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 3 AND 5) AND a!=3D4)
-     =     OR (g=3D'onmlkji' AND f GLOB 'abcde*')
+   =       OR (g=3D'onmlkji' AND f LIKE = 'abcde%')
          OR = b=3D803
   ]])
     end, = {
@@ -31421,7 +31421,7 @@ test:do_test(
  =         OR c=3D15015
      =     OR (d>=3D84.0 AND d<85.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 3 AND = 5) AND a!=3D4)
-         OR (g=3D'onmlkji' = AND f GLOB 'abcde*')
+         OR = (g=3D'onmlkji' AND f LIKE 'abcde%')
      =     OR b=3D803
   ]])
  =    end, {
@@ -31436,12 +31436,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D1100
- =         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 72 AND 74) AND a!=3D73)
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
    =       OR a=3D75
        =   OR a=3D45
-         OR (g=3D'gfedcba'= AND f GLOB 'mnopq*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
      =     OR a=3D27
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR b=3D850
@@ -31459,12 +31459,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D1100
- =         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR ((a = BETWEEN 72 AND 74) AND a!=3D73)
        =   OR ((a BETWEEN 68 AND 70) AND a!=3D69)
    =       OR a=3D75
        =   OR a=3D45
-         OR (g=3D'gfedcba'= AND f GLOB 'mnopq*')
+         OR = (g=3D'gfedcba' AND f LIKE 'mnopq%')
      =     OR a=3D27
          OR = (d>=3D77.0 AND d<78.0 AND d IS NOT NULL)
    =       OR b=3D850
@@ -31484,7 +31484,7 @@ = test:do_test(
       WHERE = b=3D751
          OR ((a BETWEEN 96 = AND 98) AND a!=3D97)
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
-     =     OR (g=3D'gfedcba' AND f GLOB 'lmnop*')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'lmnop%')
          OR (d>=3D56.0 = AND d<57.0 AND d IS NOT NULL)
        =   OR a=3D89
          OR ((a = BETWEEN 36 AND 38) AND a!=3D37)
@@ -31503,7 +31503,7 @@ = test:do_test(
       WHERE = b=3D751
          OR ((a BETWEEN 96 = AND 98) AND a!=3D97)
          OR = (d>=3D71.0 AND d<72.0 AND d IS NOT NULL)
-     =     OR (g=3D'gfedcba' AND f GLOB 'lmnop*')
+   =       OR (g=3D'gfedcba' AND f LIKE = 'lmnop%')
          OR (d>=3D56.0 = AND d<57.0 AND d IS NOT NULL)
        =   OR a=3D89
          OR ((a = BETWEEN 36 AND 38) AND a!=3D37)
@@ -31519,10 +31519,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'jklmn*')
-       =   OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+   =       OR (g=3D'yxwvuts' AND f LIKE = 'bcdef%')
          OR = a=3D1
-         OR (g=3D'utsrqpo' AND f = GLOB 'tuvwx*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'tuvwx%')
   ]])
    =  end, {
         -- = <where7-2.841.1>
@@ -31535,10 +31535,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'wvutsrq' AND f GLOB 'jklmn*')
-       =   OR (g=3D'yxwvuts' AND f GLOB 'bcdef*')
+     =  WHERE (g=3D'wvutsrq' AND f LIKE 'jklmn%')
+   =       OR (g=3D'yxwvuts' AND f LIKE = 'bcdef%')
          OR = a=3D1
-         OR (g=3D'utsrqpo' AND f = GLOB 'tuvwx*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'tuvwx%')
   ]])
    =  end, {
         -- = <where7-2.841.2>
@@ -31557,9 +31557,9 @@ = test:do_test(
          OR = c=3D8008
          OR ((a BETWEEN 41 = AND 43) AND a!=3D42)
          OR = b=3D960
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
+         OR (g=3D'jihgfed' = AND f LIKE 'yzabc%')
          OR = b=3D443
-         OR (g=3D'rqponml' AND f = GLOB 'ijklm*')
+         OR (g=3D'rqponml' = AND f LIKE 'ijklm%')
   ]])
    =  end, {
         -- = <where7-2.842.1>
@@ -31578,9 +31578,9 @@ = test:do_test(
          OR = c=3D8008
          OR ((a BETWEEN 41 = AND 43) AND a!=3D42)
          OR = b=3D960
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
+         OR (g=3D'jihgfed' = AND f LIKE 'yzabc%')
          OR = b=3D443
-         OR (g=3D'rqponml' AND f = GLOB 'ijklm*')
+         OR (g=3D'rqponml' = AND f LIKE 'ijklm%')
   ]])
    =  end, {
         -- = <where7-2.842.2>
@@ -31624,14 +31624,14 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D685
-   =       OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+ =         OR (g=3D'ponmlkj' AND f LIKE = 'rstuv%')
          OR (d>=3D63.0 = AND d<64.0 AND d IS NOT NULL)
        =   OR b=3D520
          OR = (d>=3D76.0 AND d<77.0 AND d IS NOT NULL)
    =       OR a=3D53
        =   OR ((a BETWEEN 91 AND 93) AND a!=3D92)
    =       OR b=3D938
-         = OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'vwxyz%')
    =       OR c=3D25025
  =  ]])
     end, {
@@ -31646,14 = +31646,14 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE b=3D685
- =         OR (g=3D'ponmlkj' AND f GLOB = 'rstuv*')
+         OR (g=3D'ponmlkj' AND = f LIKE 'rstuv%')
          OR = (d>=3D63.0 AND d<64.0 AND d IS NOT NULL)
    =       OR b=3D520
        =   OR (d>=3D76.0 AND d<77.0 AND d IS NOT = NULL)
          OR = a=3D53
          OR ((a BETWEEN 91 = AND 93) AND a!=3D92)
          OR = b=3D938
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
          OR = c=3D25025
   ]])
     end, = {
@@ -31700,7 +31700,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t2
      =  WHERE f=3D'abcdefghi'
-         OR = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.846.1>
@@ -31714,7 = +31714,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'abcdefghi'
-         OR (g=3D'edcbazy' = AND f GLOB 'wxyza*')
+         OR = (g=3D'edcbazy' AND f LIKE 'wxyza%')
  =  ]])
     end, {
    =      -- <where7-2.846.2>
@@ -31802,7 = +31802,7 @@ test:do_test(
       WHERE = b=3D209
          OR = b=3D806
          OR (d>=3D8.0 AND = d<9.0 AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.849.1>
@@ -31818,7 = +31818,7 @@ test:do_test(
       WHERE = b=3D209
          OR = b=3D806
          OR (d>=3D8.0 AND = d<9.0 AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'rstuv*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'rstuv%')
  =  ]])
     end, {
    =      -- <where7-2.849.2>
@@ -31863,10 = +31863,10 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D4.0 AND d<5.0 = AND d IS NOT NULL)
          OR = a=3D45
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
          OR = a=3D69
          OR ((a BETWEEN 69 = AND 71) AND a!=3D70)
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.851.1>
@@ -31881,10 = +31881,10 @@ test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D4.0 AND d<5.0 = AND d IS NOT NULL)
          OR = a=3D45
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
          OR = a=3D69
          OR ((a BETWEEN 69 = AND 71) AND a!=3D70)
-         OR = (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.851.2>
@@ -31899,9 = +31899,9 @@ test:do_test(
      SELECT a FROM = t2
       WHERE c=3D9009
  =         OR (d>=3D85.0 AND d<86.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
-     =     OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+   =       OR (g=3D'lkjihgf' AND f LIKE = 'pqrst%')
   ]])
     end, = {
         -- = <where7-2.852.1>
@@ -31916,9 +31916,9 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE c=3D9009
  =         OR (d>=3D85.0 AND d<86.0 AND d IS NOT = NULL)
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = (d>=3D9.0 AND d<10.0 AND d IS NOT NULL)
-     =     OR (g=3D'lkjihgf' AND f GLOB 'pqrst*')
+   =       OR (g=3D'lkjihgf' AND f LIKE = 'pqrst%')
   ]])
     end, = {
         -- = <where7-2.852.2>
@@ -31937,7 +31937,7 @@ = test:do_test(
          OR = a=3D47
          OR = c=3D24024
          OR = a=3D27
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'tuvwx%')
          OR = (d>=3D20.0 AND d<21.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -31957,7 = +31957,7 @@ test:do_test(
          = OR a=3D47
          OR = c=3D24024
          OR = a=3D27
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'tuvwx%')
          OR = (d>=3D20.0 AND d<21.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -31971,9 = +31971,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'wxyza*')
-         OR (g=3D'utsrqpo' AND = f GLOB 'wxyza*')
-         OR (g=3D'ponmlkj'= AND f GLOB 'stuvw*')
+      WHERE (g=3D'utsrqpo'= AND f LIKE 'wxyza%')
+         OR = (g=3D'utsrqpo' AND f LIKE 'wxyza%')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
    =       OR a=3D19
  =  ]])
     end, {
@@ -31987,9 = +31987,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'wxyza*')
-         OR (g=3D'utsrqpo' AND = f GLOB 'wxyza*')
-         OR (g=3D'ponmlkj'= AND f GLOB 'stuvw*')
+      WHERE (g=3D'utsrqpo'= AND f LIKE 'wxyza%')
+         OR = (g=3D'utsrqpo' AND f LIKE 'wxyza%')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
    =       OR a=3D19
  =  ]])
     end, {
@@ -32006,7 = +32006,7 @@ test:do_test(
       WHERE = c=3D12012
          OR (d>=3D80.0 = AND d<81.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 16 AND 18) AND a!=3D17)
-     =     OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'edcbazy' AND f LIKE = 'uvwxy%')
   ]])
     end, = {
         -- = <where7-2.855.1>
@@ -32022,7 +32022,7 @@ = test:do_test(
       WHERE = c=3D12012
          OR (d>=3D80.0 = AND d<81.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 16 AND 18) AND a!=3D17)
-     =     OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'edcbazy' AND f LIKE = 'uvwxy%')
   ]])
     end, = {
         -- = <where7-2.855.2>
@@ -32036,7 +32036,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 38 AND 40) AND = a!=3D39)
-         OR (f GLOB '?nopq*' AND = f GLOB 'mnop*')
+         OR (f LIKE = '_nopq%' AND f LIKE 'mnop%')
        =   OR b=3D429
          OR = f=3D'jklmnopqr'
          OR = (d>=3D48.0 AND d<49.0 AND d IS NOT NULL)
@@ -32054,7 = +32054,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 38 AND = 40) AND a!=3D39)
-         OR (f GLOB = '?nopq*' AND f GLOB 'mnop*')
+         OR = (f LIKE '_nopq%' AND f LIKE 'mnop%')
      =     OR b=3D429
          OR = f=3D'jklmnopqr'
          OR = (d>=3D48.0 AND d<49.0 AND d IS NOT NULL)
@@ -32071,7 = +32071,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'mnopq%')
          OR = b=3D190
   ]])
     end, = {
@@ -32085,7 +32085,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'mnopq%')
          OR = b=3D190
   ]])
     end, = {
@@ -32099,7 +32099,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'jihgfed' AND f GLOB = 'yzabc*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'yzabc%')
          OR = b=3D674
          OR = b=3D289
   ]])
@@ -32114,7 +32114,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'yzabc%')
    =       OR b=3D674
        =   OR b=3D289
   ]])
@@ -32131,8 = +32131,8 @@ test:do_test(
      SELECT a FROM = t2
       WHERE a=3D17
  =         OR b=3D539
-       =   OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
-     =     OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+   =       OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.859.1>
@@ -32147,8 +32147,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D17
  =         OR b=3D539
-       =   OR (g=3D'ponmlkj' AND f GLOB 'vwxyz*')
-     =     OR (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+   =       OR (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'vwxyz%')
   ]])
     end, = {
         -- = <where7-2.859.2>
@@ -32259,12 +32259,12 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE = f=3D'ghijklmno'
          OR = a=3D26
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = a=3D81
          OR (d>=3D3.0 AND = d<4.0 AND d IS NOT NULL)
          = OR ((a BETWEEN 28 AND 30) AND a!=3D29)
      =     OR b=3D275
-         OR = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR b=3D311
        =   OR b=3D894
          OR = b=3D872
@@ -32282,12 +32282,12 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE = f=3D'ghijklmno'
          OR = a=3D26
-         OR (g=3D'kjihgfe' AND f = GLOB 'qrstu*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'qrstu%')
          OR = a=3D81
          OR (d>=3D3.0 AND = d<4.0 AND d IS NOT NULL)
          = OR ((a BETWEEN 28 AND 30) AND a!=3D29)
      =     OR b=3D275
-         OR = (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'jklmn%')
    =       OR b=3D311
        =   OR b=3D894
          OR = b=3D872
@@ -32376,12 +32376,12 @@ = test:do_test(
       WHERE = a=3D44
          OR = b=3D55
          OR a=3D30
- =         OR (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+         OR (f LIKE '_uvwx%' AND = f LIKE 'tuvw%')
          OR = 1000000<b
          OR = a=3D24
          OR = b=3D1089
          OR (d>=3D75.0 = AND d<76.0 AND d IS NOT NULL)
-         = OR (g=3D'rqponml' AND f GLOB 'hijkl*')
+       =   OR (g=3D'rqponml' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.866.1>
@@ -32397,12 = +32397,12 @@ test:do_test(
       WHERE = a=3D44
          OR = b=3D55
          OR a=3D30
- =         OR (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+         OR (f LIKE '_uvwx%' AND = f LIKE 'tuvw%')
          OR = 1000000<b
          OR = a=3D24
          OR = b=3D1089
          OR (d>=3D75.0 = AND d<76.0 AND d IS NOT NULL)
-         = OR (g=3D'rqponml' AND f GLOB 'hijkl*')
+       =   OR (g=3D'rqponml' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.866.2>
@@ -32487,14 = +32487,14 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'edcbazy' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'uvwxy%')
          OR ((a = BETWEEN 25 AND 27) AND a!=3D26)
-         = OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 89 AND 91) AND = a!=3D90)
          OR = f=3D'xyzabcdef'
          OR = b=3D517
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
-         OR (g=3D'kjihgfe' = AND f GLOB 'qrstu*')
+         OR = (g=3D'jihgfed' AND f LIKE 'yzabc%')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.869.1>
@@ -32507,14 = +32507,14 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'edcbazy' AND f GLOB = 'uvwxy*')
+      WHERE (g=3D'edcbazy' AND f = LIKE 'uvwxy%')
          OR ((a = BETWEEN 25 AND 27) AND a!=3D26)
-         = OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
    =       OR ((a BETWEEN 89 AND 91) AND = a!=3D90)
          OR = f=3D'xyzabcdef'
          OR = b=3D517
-         OR (g=3D'jihgfed' AND f = GLOB 'yzabc*')
-         OR (g=3D'kjihgfe' = AND f GLOB 'qrstu*')
+         OR = (g=3D'jihgfed' AND f LIKE 'yzabc%')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.869.2>
@@ -32555,9 = +32555,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'yzabc*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'yzabc%')
          OR = b=3D762
-         OR (g=3D'onmlkji' AND f = GLOB 'wxyza*')
+         OR (g=3D'onmlkji' = AND f LIKE 'wxyza%')
          OR = a=3D25
          OR ((a BETWEEN 65 = AND 67) AND a!=3D66)
   ]])
@@ -32572,9 = +32572,9 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'tsrqpon' AND f GLOB = 'yzabc*')
+      WHERE (g=3D'tsrqpon' AND f = LIKE 'yzabc%')
          OR = b=3D762
-         OR (g=3D'onmlkji' AND f = GLOB 'wxyza*')
+         OR (g=3D'onmlkji' = AND f LIKE 'wxyza%')
          OR = a=3D25
          OR ((a BETWEEN 65 = AND 67) AND a!=3D66)
   ]])
@@ -32594,9 = +32594,9 @@ test:do_test(
          = OR b=3D839
          OR = f=3D'defghijkl'
          OR = (d>=3D95.0 AND d<96.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'ijklm%')
          OR (d>=3D52.0 = AND d<53.0 AND d IS NOT NULL)
-         = OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR b=3D498
  =  ]])
     end, {
@@ -32615,9 = +32615,9 @@ test:do_test(
          = OR b=3D839
          OR = f=3D'defghijkl'
          OR = (d>=3D95.0 AND d<96.0 AND d IS NOT NULL)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'ijklm%')
          OR (d>=3D52.0 = AND d<53.0 AND d IS NOT NULL)
-         = OR (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+       =   OR (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR b=3D498
  =  ]])
     end, {
@@ -32667,7 = +32667,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D256
          OR = b=3D586
          OR = a=3D74
@@ -32686,7 +32686,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'mlkjihg' AND f GLOB = 'jklmn*')
+      WHERE (g=3D'mlkjihg' AND f = LIKE 'jklmn%')
          OR = b=3D256
          OR = b=3D586
          OR = a=3D74
@@ -32739,14 +32739,14 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D308
  =         OR (d>=3D73.0 AND d<74.0 AND d IS NOT = NULL)
-         OR (g=3D'nmlkjih' AND f = GLOB 'bcdef*')
+         OR (g=3D'nmlkjih' = AND f LIKE 'bcdef%')
          OR = a=3D83
          OR = c=3D23023
          OR (d>=3D57.0 = AND d<58.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR a=3D58
        =   OR ((a BETWEEN 17 AND 19) AND a!=3D18)
-     =     OR (g=3D'srqponm' AND f GLOB 'efghi*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'efghi%')
          OR = c=3D4004
   ]])
     end, = {
@@ -32762,14 +32762,14 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE b=3D308
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'bcdef*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'bcdef%')
          OR = a=3D83
          OR = c=3D23023
          OR (d>=3D57.0 = AND d<58.0 AND d IS NOT NULL)
-         = OR (g=3D'lkjihgf' AND f GLOB 'nopqr*')
+       =   OR (g=3D'lkjihgf' AND f LIKE 'nopqr%')
    =       OR a=3D58
        =   OR ((a BETWEEN 17 AND 19) AND a!=3D18)
-     =     OR (g=3D'srqponm' AND f GLOB 'efghi*')
+   =       OR (g=3D'srqponm' AND f LIKE = 'efghi%')
          OR = c=3D4004
   ]])
     end, = {
@@ -32789,7 +32789,7 @@ test:do_test(
  =         OR b=3D762
      =     OR b=3D157
          OR = (d>=3D17.0 AND d<18.0 AND d IS NOT NULL)
-     =     OR (g=3D'nmlkjih' AND f GLOB 'cdefg*')
+   =       OR (g=3D'nmlkjih' AND f LIKE = 'cdefg%')
   ]])
     end, = {
         -- = <where7-2.877.1>
@@ -32808,7 +32808,7 @@ = test:do_test(
          OR = b=3D762
          OR = b=3D157
          OR (d>=3D17.0 = AND d<18.0 AND d IS NOT NULL)
-         = OR (g=3D'nmlkjih' AND f GLOB 'cdefg*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'cdefg%')
  =  ]])
     end, {
    =      -- <where7-2.877.2>
@@ -32825,12 = +32825,12 @@ test:do_test(
          = OR a=3D1
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
          OR = b=3D278
-         OR (g=3D'xwvutsr' AND f = GLOB 'defgh*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'defgh%')
          OR = f=3D'qrstuvwxy'
-         OR (g=3D'onmlkji' = AND f GLOB 'abcde*')
+         OR = (g=3D'onmlkji' AND f LIKE 'abcde%')
      =     OR ((a BETWEEN 82 AND 84) AND a!=3D83)
-   =       OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'edcbazy' AND = f LIKE 'uvwxy%')
+         OR (g=3D'jihgfed'= AND f LIKE 'wxyza%')
          OR = (d>=3D72.0 AND d<73.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -32848,12 = +32848,12 @@ test:do_test(
          = OR a=3D1
          OR ((a BETWEEN 93 = AND 95) AND a!=3D94)
          OR = b=3D278
-         OR (g=3D'xwvutsr' AND f = GLOB 'defgh*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'defgh%')
          OR = f=3D'qrstuvwxy'
-         OR (g=3D'onmlkji' = AND f GLOB 'abcde*')
+         OR = (g=3D'onmlkji' AND f LIKE 'abcde%')
      =     OR ((a BETWEEN 82 AND 84) AND a!=3D83)
-   =       OR (g=3D'edcbazy' AND f GLOB 'uvwxy*')
- =         OR (g=3D'jihgfed' AND f GLOB = 'wxyza*')
+         OR (g=3D'edcbazy' AND = f LIKE 'uvwxy%')
+         OR (g=3D'jihgfed'= AND f LIKE 'wxyza%')
          OR = (d>=3D72.0 AND d<73.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -32872,9 = +32872,9 @@ test:do_test(
          = OR ((a BETWEEN 41 AND 43) AND a!=3D42)
      =     OR (d>=3D96.0 AND d<97.0 AND d IS NOT = NULL)
          OR b=3D759
- =         OR (f GLOB '?nopq*' AND f GLOB = 'mnop*')
+         OR (f LIKE '_nopq%' AND = f LIKE 'mnop%')
          OR ((a = BETWEEN 45 AND 47) AND a!=3D46)
-         = OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.879.1>
@@ -32892,9 = +32892,9 @@ test:do_test(
          = OR ((a BETWEEN 41 AND 43) AND a!=3D42)
      =     OR (d>=3D96.0 AND d<97.0 AND d IS NOT = NULL)
          OR b=3D759
- =         OR (f GLOB '?nopq*' AND f GLOB = 'mnop*')
+         OR (f LIKE '_nopq%' AND = f LIKE 'mnop%')
          OR ((a = BETWEEN 45 AND 47) AND a!=3D46)
-         = OR (g=3D'kjihgfe' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'uvwxy%')
  =  ]])
     end, {
    =      -- <where7-2.879.2>
@@ -32916,7 = +32916,7 @@ test:do_test(
          = OR b=3D44
          OR = f=3D'zabcdefgh'
          OR = b=3D979
-         OR (g=3D'rqponml' AND f = GLOB 'hijkl*')
+         OR (g=3D'rqponml' = AND f LIKE 'hijkl%')
   ]])
    =  end, {
         -- = <where7-2.880.1>
@@ -32938,7 +32938,7 @@ = test:do_test(
          OR = b=3D44
          OR = f=3D'zabcdefgh'
          OR = b=3D979
-         OR (g=3D'rqponml' AND f = GLOB 'hijkl*')
+         OR (g=3D'rqponml' = AND f LIKE 'hijkl%')
   ]])
    =  end, {
         -- = <where7-2.880.2>
@@ -32988,7 +32988,7 @@ = test:do_test(
          OR ((a = BETWEEN 24 AND 26) AND a!=3D25)
        =   OR a=3D90
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
-     =     OR (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+   =       OR (g=3D'hgfedcb' AND f LIKE = 'jklmn%')
          OR = f=3D'nopqrstuv'
   ]])
    =  end, {
@@ -33011,7 +33011,7 @@ = test:do_test(
          OR ((a = BETWEEN 24 AND 26) AND a!=3D25)
        =   OR a=3D90
          OR = (d>=3D66.0 AND d<67.0 AND d IS NOT NULL)
-     =     OR (g=3D'hgfedcb' AND f GLOB 'jklmn*')
+   =       OR (g=3D'hgfedcb' AND f LIKE = 'jklmn%')
          OR = f=3D'nopqrstuv'
   ]])
    =  end, {
@@ -33061,7 +33061,7 @@ = test:do_test(
          OR ((a = BETWEEN 4 AND 6) AND a!=3D5)
        =   OR ((a BETWEEN 69 AND 71) AND a!=3D70)
    =       OR d<0.0
-         = OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
    =       OR c=3D9009
  =  ]])
     end, {
@@ -33083,7 = +33083,7 @@ test:do_test(
          = OR ((a BETWEEN 4 AND 6) AND a!=3D5)
      =     OR ((a BETWEEN 69 AND 71) AND a!=3D70)
  =         OR d<0.0
-       =   OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =     OR (g=3D'qponmlk' AND f LIKE 'pqrst%')
  =         OR c=3D9009
  =  ]])
     end, {
@@ -33097,7 = +33097,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+      WHERE (f LIKE '_uvwx%' AND f = LIKE 'tuvw%')
          OR = b=3D814
          OR (d>=3D54.0 = AND d<55.0 AND d IS NOT NULL)
   ]])
@@ = -33112,7 +33112,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?uvwx*' AND f GLOB = 'tuvw*')
+      WHERE (f LIKE '_uvwx%' AND f = LIKE 'tuvw%')
          OR = b=3D814
          OR (d>=3D54.0 = AND d<55.0 AND d IS NOT NULL)
   ]])
@@ = -33127,7 +33127,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'lkjihgf' AND f = LIKE 'mnopq%')
          OR = b=3D333
          OR = b=3D275
   ]])
@@ -33142,7 +33142,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'lkjihgf' AND f GLOB 'mnopq*')
+     =  WHERE (g=3D'lkjihgf' AND f LIKE 'mnopq%')
    =       OR b=3D333
        =   OR b=3D275
   ]])
@@ -33157,7 = +33157,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'efghi%')
          OR ((a = BETWEEN 33 AND 35) AND a!=3D34)
  =  ]])
     end, {
@@ -33171,7 = +33171,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'ihgfedc' AND f GLOB = 'efghi*')
+      WHERE (g=3D'ihgfedc' AND f = LIKE 'efghi%')
          OR ((a = BETWEEN 33 AND 35) AND a!=3D34)
  =  ]])
     end, {
@@ -33187,7 = +33187,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 11 AND 13) AND = a!=3D12)
          OR = b=3D253
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR b=3D286
          OR = (d>=3D10.0 AND d<11.0 AND d IS NOT NULL)
  =  ]])
@@ -33204,7 +33204,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 11 AND 13) AND = a!=3D12)
          OR = b=3D253
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR b=3D286
          OR = (d>=3D10.0 AND d<11.0 AND d IS NOT NULL)
  =  ]])
@@ -33220,10 +33220,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D15.0 AND = d<16.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 26 AND 28) AND = a!=3D27)
          OR = b=3D421
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
          OR = f=3D'ijklmnopq'
          OR = b=3D891
          OR = b=3D1056
@@ -33240,10 +33240,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D15.0 AND = d<16.0 AND d IS NOT NULL)
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR ((a BETWEEN 26 AND 28) AND = a!=3D27)
          OR = b=3D421
-         OR (g=3D'xwvutsr' AND f = GLOB 'fghij*')
+         OR (g=3D'xwvutsr' = AND f LIKE 'fghij%')
          OR = f=3D'ijklmnopq'
          OR = b=3D891
          OR = b=3D1056
@@ -33260,10 +33260,10 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE f=3D'fghijklmn'
- =         OR (g=3D'qponmlk' AND f GLOB = 'nopqr*')
-         OR (g=3D'edcbazy' AND = f GLOB 'vwxyz*')
+         OR (g=3D'qponmlk'= AND f LIKE 'nopqr%')
+         OR = (g=3D'edcbazy' AND f LIKE 'vwxyz%')
      =     OR b=3D671
-         OR = (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+       =   OR (g=3D'xwvutsr' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.890.1>
@@ -33277,10 = +33277,10 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'fghijklmn'
-         OR (g=3D'qponmlk' = AND f GLOB 'nopqr*')
-         OR = (g=3D'edcbazy' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'nopqr%')
+     =     OR (g=3D'edcbazy' AND f LIKE 'vwxyz%')
  =         OR b=3D671
-       =   OR (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+     =     OR (g=3D'xwvutsr' AND f LIKE 'hijkl%')
  =  ]])
     end, {
    =      -- <where7-2.890.2>
@@ -33293,10 = +33293,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'lmnop*')
-         OR (g=3D'srqponm' AND = f GLOB 'fghij*')
+      WHERE (g=3D'lkjihgf' = AND f LIKE 'lmnop%')
+         OR = (g=3D'srqponm' AND f LIKE 'fghij%')
      =     OR ((a BETWEEN 4 AND 6) AND a!=3D5)
-   =       OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR (d>=3D11.0 = AND d<12.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -33310,10 = +33310,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'lkjihgf' AND f GLOB = 'lmnop*')
-         OR (g=3D'srqponm' AND = f GLOB 'fghij*')
+      WHERE (g=3D'lkjihgf' = AND f LIKE 'lmnop%')
+         OR = (g=3D'srqponm' AND f LIKE 'fghij%')
      =     OR ((a BETWEEN 4 AND 6) AND a!=3D5)
-   =       OR (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+ =         OR (g=3D'kjihgfe' AND f LIKE = 'qrstu%')
          OR (d>=3D11.0 = AND d<12.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -33439,11 = +33439,11 @@ test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 67 AND 69) AND = a!=3D68)
          OR (d>=3D69.0 = AND d<70.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR a=3D46
        =   OR b=3D187
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
-         = OR (g=3D'onmlkji' AND f GLOB 'yzabc*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.895.1>
@@ -33458,11 = +33458,11 @@ test:do_test(
      SELECT a FROM = t3
       WHERE ((a BETWEEN 67 AND 69) AND = a!=3D68)
          OR (d>=3D69.0 = AND d<70.0 AND d IS NOT NULL)
-         = OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
    =       OR a=3D46
        =   OR b=3D187
          OR ((a = BETWEEN 69 AND 71) AND a!=3D70)
-         = OR (g=3D'onmlkji' AND f GLOB 'yzabc*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'yzabc%')
  =  ]])
     end, {
    =      -- <where7-2.895.2>
@@ -33522,7 = +33522,7 @@ test:do_test(
          = OR b=3D729
          OR ((a BETWEEN = 81 AND 83) AND a!=3D82)
          OR = a=3D58
-         OR (f GLOB '?pqrs*' AND f = GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR b=3D608
   ]])
    =  end, {
@@ -33543,7 +33543,7 @@ = test:do_test(
          OR = b=3D729
          OR ((a BETWEEN 81 = AND 83) AND a!=3D82)
          OR = a=3D58
-         OR (f GLOB '?pqrs*' AND f = GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
        =   OR b=3D608
   ]])
    =  end, {
@@ -33561,7 +33561,7 @@ = test:do_test(
          OR = f=3D'efghijklm'
          OR = (d>=3D48.0 AND d<49.0 AND d IS NOT NULL)
    =       OR a=3D26
-         = OR (f GLOB '?efgh*' AND f GLOB 'defg*')
+       =   OR (f LIKE '_efgh%' AND f LIKE 'defg%')
  =  ]])
     end, {
    =      -- <where7-2.898.1>
@@ -33578,7 = +33578,7 @@ test:do_test(
          = OR f=3D'efghijklm'
          OR = (d>=3D48.0 AND d<49.0 AND d IS NOT NULL)
    =       OR a=3D26
-         = OR (f GLOB '?efgh*' AND f GLOB 'defg*')
+       =   OR (f LIKE '_efgh%' AND f LIKE 'defg%')
  =  ]])
     end, {
    =      -- <where7-2.898.2>
@@ -33592,11 = +33592,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE a=3D59
- =         OR (g=3D'wvutsrq' AND f GLOB = 'mnopq*')
+         OR (g=3D'wvutsrq' AND = f LIKE 'mnopq%')
          OR = a=3D7
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR = b=3D762
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
   ]])
  =    end, {
         -- = <where7-2.899.1>
@@ -33610,11 +33610,11 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE a=3D59
-   =       OR (g=3D'wvutsrq' AND f GLOB 'mnopq*')
+ =         OR (g=3D'wvutsrq' AND f LIKE = 'mnopq%')
          OR = a=3D7
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR = b=3D762
-         OR (f GLOB '?pqrs*' AND = f GLOB 'opqr*')
+         OR (f LIKE = '_pqrs%' AND f LIKE 'opqr%')
   ]])
  =    end, {
         -- = <where7-2.899.2>
@@ -33627,7 +33627,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'gfedcba' AND f GLOB 'nopqr*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'nopqr%')
    =       OR b=3D539
        =   OR b=3D399
   ]])
@@ -33642,7 = +33642,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'gfedcba' AND f GLOB = 'nopqr*')
+      WHERE (g=3D'gfedcba' AND f = LIKE 'nopqr%')
          OR = b=3D539
          OR = b=3D399
   ]])
@@ -33687,10 +33687,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?klmn*' AND f GLOB 'jklm*')
-       =   OR (g=3D'rqponml' AND f GLOB 'klmno*')
+     =  WHERE (f LIKE '_klmn%' AND f LIKE 'jklm%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'klmno%')
          OR = f=3D'lmnopqrst'
-         OR (g=3D'nmlkjih' = AND f GLOB 'fghij*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.902.1>
@@ -33703,10 = +33703,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (f GLOB '?klmn*' AND f GLOB = 'jklm*')
-         OR (g=3D'rqponml' AND f = GLOB 'klmno*')
+      WHERE (f LIKE '_klmn%' = AND f LIKE 'jklm%')
+         OR = (g=3D'rqponml' AND f LIKE 'klmno%')
      =     OR f=3D'lmnopqrst'
-         = OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+       =   OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.902.2>
@@ -33751,14 = +33751,14 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1067
  =         OR ((a BETWEEN 53 AND 55) AND = a!=3D54)
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
          OR = (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
    =       OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR = b=3D520
          OR = b=3D399
          OR = b=3D209
          OR a=3D68
-=         OR (g=3D'fedcbaz' AND f GLOB = 'qrstu*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'qrstu%')
   ]])
    =  end, {
         -- = <where7-2.904.1>
@@ -33773,14 +33773,14 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D1067
  =         OR ((a BETWEEN 53 AND 55) AND = a!=3D54)
-         OR (g=3D'jihgfed' AND f = GLOB 'vwxyz*')
+         OR (g=3D'jihgfed' = AND f LIKE 'vwxyz%')
          OR = (d>=3D18.0 AND d<19.0 AND d IS NOT NULL)
    =       OR (d>=3D54.0 AND d<55.0 AND d IS NOT = NULL)
          OR = b=3D520
          OR = b=3D399
          OR = b=3D209
          OR a=3D68
-=         OR (g=3D'fedcbaz' AND f GLOB = 'qrstu*')
+         OR (g=3D'fedcbaz' AND = f LIKE 'qrstu%')
   ]])
    =  end, {
         -- = <where7-2.904.2>
@@ -33798,7 +33798,7 @@ = test:do_test(
          OR = b=3D55
          OR (d>=3D34.0 AND = d<35.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 20 AND 22) AND a!=3D21)
-     =     OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR ((a BETWEEN 0 = AND 2) AND a!=3D1)
          OR ((a = BETWEEN 21 AND 23) AND a!=3D22)
   ]])
@@ = -33818,7 +33818,7 @@ test:do_test(
        =   OR b=3D55
          OR = (d>=3D34.0 AND d<35.0 AND d IS NOT NULL)
    =       OR ((a BETWEEN 20 AND 22) AND a!=3D21)
- =         OR (g=3D'rqponml' AND f GLOB = 'lmnop*')
+         OR (g=3D'rqponml' AND = f LIKE 'lmnop%')
          OR ((a = BETWEEN 0 AND 2) AND a!=3D1)
        =   OR ((a BETWEEN 21 AND 23) AND a!=3D22)
  =  ]])
@@ -33837,7 +33837,7 @@ = test:do_test(
          OR = a=3D2
          OR = b=3D784
          OR ((a BETWEEN 21 = AND 23) AND a!=3D22)
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D850
  =  ]])
     end, {
@@ -33855,7 = +33855,7 @@ test:do_test(
          = OR a=3D2
          OR = b=3D784
          OR ((a BETWEEN 21 = AND 23) AND a!=3D22)
-         OR = (g=3D'ihgfedc' AND f GLOB 'defgh*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'defgh%')
    =       OR b=3D850
  =  ]])
     end, {
@@ -33903,17 = +33903,17 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'jihgfed' AND f GLOB = 'zabcd*')
+      WHERE (g=3D'jihgfed' AND f = LIKE 'zabcd%')
          OR = a=3D18
          OR = a=3D30
          OR ((a BETWEEN 9 AND = 11) AND a!=3D10)
          OR ((a = BETWEEN 84 AND 86) AND a!=3D85)
        =   OR ((a BETWEEN 8 AND 10) AND a!=3D9)
    =       OR b=3D792
-         = OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+       =   OR (f LIKE '_mnop%' AND f LIKE 'lmno%')
    =       OR ((a BETWEEN 19 AND 21) AND = a!=3D20)
          OR = c=3D26026
-         OR (g=3D'rqponml' AND = f GLOB 'hijkl*')
+         OR (g=3D'rqponml'= AND f LIKE 'hijkl%')
   ]])
    =  end, {
         -- = <where7-2.908.1>
@@ -33926,17 +33926,17 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'zabcd*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'zabcd%')
    =       OR a=3D18
        =   OR a=3D30
          OR ((a = BETWEEN 9 AND 11) AND a!=3D10)
        =   OR ((a BETWEEN 84 AND 86) AND a!=3D85)
    =       OR ((a BETWEEN 8 AND 10) AND a!=3D9)
 =         OR b=3D792
-       =   OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
+     =     OR (f LIKE '_mnop%' AND f LIKE 'lmno%')
  =         OR ((a BETWEEN 19 AND 21) AND = a!=3D20)
          OR = c=3D26026
-         OR (g=3D'rqponml' AND = f GLOB 'hijkl*')
+         OR (g=3D'rqponml'= AND f LIKE 'hijkl%')
   ]])
    =  end, {
         -- = <where7-2.908.2>
@@ -33949,11 +33949,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+     =  WHERE (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR b=3D968
        =   OR ((a BETWEEN 63 AND 65) AND a!=3D64)
-     =     OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
-   =       OR (g=3D'jihgfed' AND f GLOB 'wxyza*')
+ =         OR (f LIKE '_xyza%' AND f LIKE = 'wxyz%')
+         OR (g=3D'jihgfed' AND f = LIKE 'wxyza%')
          OR = (d>=3D72.0 AND d<73.0 AND d IS NOT NULL)
    =       OR a=3D78
        =   OR ((a BETWEEN 90 AND 92) AND a!=3D91)
@@ -33969,11 = +33969,11 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'vutsrqp' AND f GLOB = 'qrstu*')
+      WHERE (g=3D'vutsrqp' AND f = LIKE 'qrstu%')
          OR = b=3D968
          OR ((a BETWEEN 63 = AND 65) AND a!=3D64)
-         OR (f GLOB = '?xyza*' AND f GLOB 'wxyz*')
-         OR = (g=3D'jihgfed' AND f GLOB 'wxyza*')
+       =   OR (f LIKE '_xyza%' AND f LIKE 'wxyz%')
+     =     OR (g=3D'jihgfed' AND f LIKE 'wxyza%')
  =         OR (d>=3D72.0 AND d<73.0 AND d IS NOT = NULL)
          OR = a=3D78
          OR ((a BETWEEN 90 = AND 92) AND a!=3D91)
@@ -34096,7 +34096,7 @@ = test:do_test(
          OR = (d>=3D78.0 AND d<79.0 AND d IS NOT NULL)
    =       OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR a=3D81
- =         OR (f GLOB '?fghi*' AND f GLOB = 'efgh*')
+         OR (f LIKE '_fghi%' AND = f LIKE 'efgh%')
          OR = f=3D'mnopqrstu'
   ]])
    =  end, {
@@ -34117,7 +34117,7 @@ = test:do_test(
          OR = (d>=3D78.0 AND d<79.0 AND d IS NOT NULL)
    =       OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR a=3D81
- =         OR (f GLOB '?fghi*' AND f GLOB = 'efgh*')
+         OR (f LIKE '_fghi%' AND = f LIKE 'efgh%')
          OR = f=3D'mnopqrstu'
   ]])
    =  end, {
@@ -34177,7 +34177,7 @@ = test:do_test(
          OR ((a = BETWEEN 20 AND 22) AND a!=3D21)
        =   OR ((a BETWEEN 27 AND 29) AND a!=3D28)
    =       OR b=3D319
-         = OR (g=3D'qponmlk' AND f GLOB 'opqrs*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'opqrs%')
    =       OR ((a BETWEEN 14 AND 16) AND = a!=3D15)
   ]])
     end, = {
@@ -34197,7 +34197,7 @@ test:do_test(
  =         OR ((a BETWEEN 20 AND 22) AND = a!=3D21)
          OR ((a BETWEEN 27 = AND 29) AND a!=3D28)
          OR = b=3D319
-         OR (g=3D'qponmlk' AND f = GLOB 'opqrs*')
+         OR (g=3D'qponmlk' = AND f LIKE 'opqrs%')
          OR ((a = BETWEEN 14 AND 16) AND a!=3D15)
  =  ]])
     end, {
@@ -34214,7 = +34214,7 @@ test:do_test(
       WHERE = b=3D179
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
          OR = a=3D46
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
        =   OR a=3D25
          OR = (d>=3D5.0 AND d<6.0 AND d IS NOT NULL)
@@ -34237,7 = +34237,7 @@ test:do_test(
       WHERE = b=3D179
          OR ((a BETWEEN 95 = AND 97) AND a!=3D96)
          OR = a=3D46
-         OR (g=3D'kjihgfe' AND f = GLOB 'uvwxy*')
+         OR (g=3D'kjihgfe' = AND f LIKE 'uvwxy%')
          OR ((a = BETWEEN 53 AND 55) AND a!=3D54)
        =   OR a=3D25
          OR = (d>=3D5.0 AND d<6.0 AND d IS NOT NULL)
@@ -34257,7 = +34257,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'fghij*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'fghij%')
          OR = (d>=3D15.0 AND d<16.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -34271,7 = +34271,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'fghij*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'fghij%')
          OR = (d>=3D15.0 AND d<16.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -34286,7 = +34286,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D748
- =         OR (g=3D'utsrqpo' AND f GLOB = 'wxyza*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'wxyza%')
          OR = a=3D32
          OR = b=3D110
          OR = b=3D297
@@ -34308,7 +34308,7 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D748
-         OR = (g=3D'utsrqpo' AND f GLOB 'wxyza*')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'wxyza%')
    =       OR a=3D32
        =   OR b=3D110
          OR = b=3D297
@@ -34332,13 +34332,13 @@ = test:do_test(
       WHERE (d>=3D33.0 = AND d<34.0 AND d IS NOT NULL)
        =   OR b=3D905
          OR = a=3D97
-         OR (g=3D'hgfedcb' AND f = GLOB 'hijkl*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'hijkl%')
          OR = c=3D27027
          OR = f=3D'bcdefghij'
          OR = (d>=3D54.0 AND d<55.0 AND d IS NOT NULL)
    =       OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 38 AND = 40) AND a!=3D39)
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (f LIKE '_fghi%' AND f LIKE 'efgh%')
  =  ]])
     end, {
    =      -- <where7-2.919.1>
@@ -34354,13 = +34354,13 @@ test:do_test(
       WHERE = (d>=3D33.0 AND d<34.0 AND d IS NOT NULL)
    =       OR b=3D905
        =   OR a=3D97
-         OR (g=3D'hgfedcb'= AND f GLOB 'hijkl*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'hijkl%')
      =     OR c=3D27027
          = OR f=3D'bcdefghij'
          OR = (d>=3D54.0 AND d<55.0 AND d IS NOT NULL)
    =       OR (d>=3D25.0 AND d<26.0 AND d IS NOT = NULL)
          OR ((a BETWEEN 38 AND = 40) AND a!=3D39)
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (f LIKE '_fghi%' AND f LIKE 'efgh%')
  =  ]])
     end, {
    =      -- <where7-2.919.2>
@@ -34403,13 = +34403,13 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D594
  =         OR b=3D80
-       =   OR (g=3D'tsrqpon' AND f GLOB 'bcdef*')
-     =     OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+   =       OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
+ =         OR (g=3D'qponmlk' AND f LIKE = 'mnopq%')
          OR = b=3D421
          OR = b=3D418
          OR = b=3D828
          OR a=3D88
-=         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = (d>=3D60.0 AND d<61.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -34425,13 = +34425,13 @@ test:do_test(
      SELECT a FROM = t3
       WHERE b=3D594
  =         OR b=3D80
-       =   OR (g=3D'tsrqpon' AND f GLOB 'bcdef*')
-     =     OR (g=3D'qponmlk' AND f GLOB 'mnopq*')
+   =       OR (g=3D'tsrqpon' AND f LIKE 'bcdef%')
+ =         OR (g=3D'qponmlk' AND f LIKE = 'mnopq%')
          OR = b=3D421
          OR = b=3D418
          OR = b=3D828
          OR a=3D88
-=         OR (g=3D'tsrqpon' AND f GLOB = 'xyzab*')
+         OR (g=3D'tsrqpon' AND = f LIKE 'xyzab%')
          OR = (d>=3D60.0 AND d<61.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -34446,11 = +34446,11 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE (d>=3D17.0 AND = d<18.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'xyzab*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'xyzab%')
    =       OR b=3D366
        =   OR (d>=3D28.0 AND d<29.0 AND d IS NOT = NULL)
          OR = c=3D16016
-         OR (g=3D'edcbazy' AND = f GLOB 'wxyza*')
+         OR (g=3D'edcbazy'= AND f LIKE 'wxyza%')
          OR = c=3D9009
   ]])
     end, = {
@@ -34465,11 +34465,11 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE (d>=3D17.0 AND d<18.0 AND d IS NOT NULL)
- =         OR (g=3D'jihgfed' AND f GLOB = 'xyzab*')
+         OR (g=3D'jihgfed' AND = f LIKE 'xyzab%')
          OR = b=3D366
          OR (d>=3D28.0 = AND d<29.0 AND d IS NOT NULL)
        =   OR c=3D16016
-         OR = (g=3D'edcbazy' AND f GLOB 'wxyza*')
+       =   OR (g=3D'edcbazy' AND f LIKE 'wxyza%')
    =       OR c=3D9009
  =  ]])
     end, {
@@ -34485,7 = +34485,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D33
  =         OR f=3D'qrstuvwxy'
-     =     OR (g=3D'utsrqpo' AND f GLOB 'uvwxy*')
+   =       OR (g=3D'utsrqpo' AND f LIKE = 'uvwxy%')
          OR = b=3D858
   ]])
     end, = {
@@ -34501,7 +34501,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE b=3D33
          OR = f=3D'qrstuvwxy'
-         OR (g=3D'utsrqpo' = AND f GLOB 'uvwxy*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
      =     OR b=3D858
   ]])
  =    end, {
@@ -34516,7 +34516,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D861
-   =       OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+ =         OR (f LIKE '_xyza%' AND f LIKE = 'wxyz%')
          OR (d>=3D29.0 = AND d<30.0 AND d IS NOT NULL)
        =   OR b=3D682
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
@@ -34534,7 +34534,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D861
-   =       OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
+ =         OR (f LIKE '_xyza%' AND f LIKE = 'wxyz%')
          OR (d>=3D29.0 = AND d<30.0 AND d IS NOT NULL)
        =   OR b=3D682
          OR ((a = BETWEEN 93 AND 95) AND a!=3D94)
@@ -34584,7 +34584,7 @@ = test:do_test(
       WHERE = f=3D'abcdefghi'
          OR = c=3D9009
          OR = b=3D663
-         OR (g=3D'wvutsrq' AND f = GLOB 'klmno*')
+         OR (g=3D'wvutsrq' = AND f LIKE 'klmno%')
          OR = b=3D91
   ]])
     end, = {
@@ -34601,7 +34601,7 @@ test:do_test(
  =      WHERE f=3D'abcdefghi'
      =     OR c=3D9009
          = OR b=3D663
-         OR (g=3D'wvutsrq' AND = f GLOB 'klmno*')
+         OR (g=3D'wvutsrq'= AND f LIKE 'klmno%')
          OR = b=3D91
   ]])
     end, = {
@@ -34615,15 +34615,15 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'kjihgfe' AND f GLOB = 'qrstu*')
+      WHERE (g=3D'kjihgfe' AND f = LIKE 'qrstu%')
          OR ((a = BETWEEN 29 AND 31) AND a!=3D30)
-         = OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
+       =   OR (f LIKE '_opqr%' AND f LIKE 'nopq%')
    =       OR b=3D1015
-         = OR (g=3D'qponmlk' AND f GLOB 'qrstu*')
+       =   OR (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR b=3D916
        =   OR (d>=3D31.0 AND d<32.0 AND d IS NOT = NULL)
          OR b=3D69
- =         OR (g=3D'hgfedcb' AND f GLOB = 'fghij*')
+         OR (g=3D'hgfedcb' AND = f LIKE 'fghij%')
   ]])
    =  end, {
         -- = <where7-2.927.1>
@@ -34636,15 +34636,15 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'kjihgfe' AND f GLOB 'qrstu*')
+     =  WHERE (g=3D'kjihgfe' AND f LIKE 'qrstu%')
    =       OR ((a BETWEEN 29 AND 31) AND a!=3D30)
- =         OR (f GLOB '?opqr*' AND f GLOB = 'nopq*')
+         OR (f LIKE '_opqr%' AND = f LIKE 'nopq%')
          OR = b=3D1015
-         OR (g=3D'qponmlk' AND f = GLOB 'qrstu*')
+         OR (g=3D'qponmlk' = AND f LIKE 'qrstu%')
          OR = b=3D916
          OR (d>=3D31.0 = AND d<32.0 AND d IS NOT NULL)
        =   OR b=3D69
-         OR (g=3D'hgfedcb'= AND f GLOB 'fghij*')
+         OR = (g=3D'hgfedcb' AND f LIKE 'fghij%')
  =  ]])
     end, {
    =      -- <where7-2.927.2>
@@ -34664,7 = +34664,7 @@ test:do_test(
          = OR (d>=3D20.0 AND d<21.0 AND d IS NOT NULL)
  =         OR a=3D63
      =     OR f=3D'mnopqrstu'
-         = OR (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
    =       OR b=3D495
        =   OR a=3D35
          OR = a=3D22
@@ -34687,7 +34687,7 @@ test:do_test(
  =         OR (d>=3D20.0 AND d<21.0 AND d IS NOT = NULL)
          OR = a=3D63
          OR = f=3D'mnopqrstu'
-         OR (g=3D'mlkjihg' = AND f GLOB 'ijklm*')
+         OR = (g=3D'mlkjihg' AND f LIKE 'ijklm%')
      =     OR b=3D495
          OR = a=3D35
          OR a=3D22
@@= -34704,7 +34704,7 @@ test:do_test(
      =    return count_steps_sort([[
      = SELECT a FROM t2
       WHERE = b=3D869
-         OR (g=3D'rqponml' AND f = GLOB 'jklmn*')
+         OR (g=3D'rqponml' = AND f LIKE 'jklmn%')
          OR = b=3D289
          OR = a=3D62
          OR ((a BETWEEN 9 AND = 11) AND a!=3D10)
@@ -34721,7 +34721,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D869
-   =       OR (g=3D'rqponml' AND f GLOB 'jklmn*')
+ =         OR (g=3D'rqponml' AND f LIKE = 'jklmn%')
          OR = b=3D289
          OR = a=3D62
          OR ((a BETWEEN 9 AND = 11) AND a!=3D10)
@@ -34774,7 +34774,7 @@ = test:do_test(
       WHERE ((a BETWEEN 57 = AND 59) AND a!=3D58)
          OR = b=3D1078
          OR ((a BETWEEN 21 = AND 23) AND a!=3D22)
-         OR = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
    =       OR (d>=3D20.0 AND d<21.0 AND d IS NOT = NULL)
          OR = b=3D429
   ]])
@@ -34792,7 +34792,7 @@ = test:do_test(
       WHERE ((a BETWEEN 57 = AND 59) AND a!=3D58)
          OR = b=3D1078
          OR ((a BETWEEN 21 = AND 23) AND a!=3D22)
-         OR = (g=3D'mlkjihg' AND f GLOB 'ijklm*')
+       =   OR (g=3D'mlkjihg' AND f LIKE 'ijklm%')
    =       OR (d>=3D20.0 AND d<21.0 AND d IS NOT = NULL)
          OR = b=3D429
   ]])
@@ -34876,7 +34876,7 @@ = test:do_test(
       WHERE (d>=3D56.0 = AND d<57.0 AND d IS NOT NULL)
        =   OR b=3D858
          OR = a=3D58
-         OR (g=3D'onmlkji' AND f = GLOB 'xyzab*')
+         OR (g=3D'onmlkji' = AND f LIKE 'xyzab%')
          OR = c=3D21021
          OR ((a BETWEEN 45 = AND 47) AND a!=3D46)
          OR = b=3D616
@@ -34897,7 +34897,7 @@ test:do_test(
  =      WHERE (d>=3D56.0 AND d<57.0 AND d IS NOT = NULL)
          OR = b=3D858
          OR a=3D58
-=         OR (g=3D'onmlkji' AND f GLOB = 'xyzab*')
+         OR (g=3D'onmlkji' AND = f LIKE 'xyzab%')
          OR = c=3D21021
          OR ((a BETWEEN 45 = AND 47) AND a!=3D46)
          OR = b=3D616
@@ -34917,7 +34917,7 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D682
          OR = b=3D99
-         OR (f GLOB '?defg*' AND f = GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
        =   OR b=3D531
   ]])
    =  end, {
@@ -34933,7 +34933,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D682
  =         OR b=3D99
-       =   OR (f GLOB '?defg*' AND f GLOB 'cdef*')
+     =     OR (f LIKE '_defg%' AND f LIKE 'cdef%')
  =         OR b=3D531
  =  ]])
     end, {
@@ -34948,13 = +34948,13 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE ((a BETWEEN 56 AND = 58) AND a!=3D57)
-         OR (g=3D'kjihgfe'= AND f GLOB 'stuvw*')
-         OR (f GLOB = '?jklm*' AND f GLOB 'ijkl*')
+         OR = (g=3D'kjihgfe' AND f LIKE 'stuvw%')
+       =   OR (f LIKE '_jklm%' AND f LIKE 'ijkl%')
    =       OR b=3D726
        =   OR a=3D79
          OR = a=3D47
          OR b=3D212
-=         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
          OR = c=3D8008
   ]])
     end, = {
@@ -34969,13 +34969,13 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE ((a BETWEEN 56 AND 58) AND a!=3D57)
-   =       OR (g=3D'kjihgfe' AND f GLOB 'stuvw*')
- =         OR (f GLOB '?jklm*' AND f GLOB = 'ijkl*')
+         OR (g=3D'kjihgfe' AND f = LIKE 'stuvw%')
+         OR (f LIKE = '_jklm%' AND f LIKE 'ijkl%')
        =   OR b=3D726
          OR = a=3D79
          OR = a=3D47
          OR b=3D212
-=         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
          OR = c=3D8008
   ]])
     end, = {
@@ -34993,7 +34993,7 @@ test:do_test(
  =         OR ((a BETWEEN 60 AND 62) AND = a!=3D61)
          OR = a=3D5
          OR b=3D33
- =         OR (f GLOB '?yzab*' AND f GLOB = 'xyza*')
+         OR (f LIKE '_yzab%' AND = f LIKE 'xyza%')
          OR = a=3D59
          OR = b=3D44
          OR (d>=3D14.0 AND = d<15.0 AND d IS NOT NULL)
@@ -35014,7 +35014,7 @@ = test:do_test(
          OR ((a = BETWEEN 60 AND 62) AND a!=3D61)
        =   OR a=3D5
          OR = b=3D33
-         OR (f GLOB '?yzab*' AND f = GLOB 'xyza*')
+         OR (f LIKE = '_yzab%' AND f LIKE 'xyza%')
        =   OR a=3D59
          OR = b=3D44
          OR (d>=3D14.0 AND = d<15.0 AND d IS NOT NULL)
@@ -35213,8 +35213,8 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE a=3D96
  =         OR (d>=3D23.0 AND d<24.0 AND d IS NOT = NULL)
-         OR (g=3D'ponmlkj' AND f = GLOB 'vwxyz*')
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
+       =   OR (f LIKE '_fghi%' AND f LIKE 'efgh%')
    =       OR ((a BETWEEN 37 AND 39) AND = a!=3D38)
          OR = a=3D85
          OR ((a BETWEEN 10 = AND 12) AND a!=3D11)
@@ -35236,8 +35236,8 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE a=3D96
  =         OR (d>=3D23.0 AND d<24.0 AND d IS NOT = NULL)
-         OR (g=3D'ponmlkj' AND f = GLOB 'vwxyz*')
-         OR (f GLOB = '?fghi*' AND f GLOB 'efgh*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'vwxyz%')
+       =   OR (f LIKE '_fghi%' AND f LIKE 'efgh%')
    =       OR ((a BETWEEN 37 AND 39) AND = a!=3D38)
          OR = a=3D85
          OR ((a BETWEEN 10 = AND 12) AND a!=3D11)
@@ -35299,17 +35299,17 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'hijkl%')
    =       OR a=3D60
        =   OR a=3D4
          OR = b=3D520
-         OR (g=3D'ihgfedc' AND f = GLOB 'bcdef*')
+         OR (g=3D'ihgfedc' = AND f LIKE 'bcdef%')
          OR = a=3D44
          OR = a=3D36
          OR (d>=3D76.0 AND = d<77.0 AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR b=3D715
-         = OR (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.945.1>
@@ -35322,17 = +35322,17 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'hijkl*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'hijkl%')
          OR = a=3D60
          OR = a=3D4
          OR b=3D520
- =         OR (g=3D'ihgfedc' AND f GLOB = 'bcdef*')
+         OR (g=3D'ihgfedc' AND = f LIKE 'bcdef%')
          OR = a=3D44
          OR = a=3D36
          OR (d>=3D76.0 AND = d<77.0 AND d IS NOT NULL)
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR b=3D715
-         = OR (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
  =  ]])
     end, {
    =      -- <where7-2.945.2>
@@ -35349,10 = +35349,10 @@ test:do_test(
          = OR ((a BETWEEN 56 AND 58) AND a!=3D57)
      =     OR (d>=3D15.0 AND d<16.0 AND d IS NOT = NULL)
          OR (d>=3D55.0 AND = d<56.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
    =       OR a=3D24
        =   OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL)
- =         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
   ]])
    =  end, {
         -- = <where7-2.946.1>
@@ -35369,10 +35369,10 @@ = test:do_test(
          OR ((a = BETWEEN 56 AND 58) AND a!=3D57)
        =   OR (d>=3D15.0 AND d<16.0 AND d IS NOT = NULL)
          OR (d>=3D55.0 AND = d<56.0 AND d IS NOT NULL)
-         OR = (g=3D'jihgfed' AND f GLOB 'yzabc*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'yzabc%')
    =       OR a=3D24
        =   OR (d>=3D99.0 AND d<100.0 AND d IS NOT NULL)
- =         OR (f GLOB '?bcde*' AND f GLOB = 'abcd*')
+         OR (f LIKE '_bcde%' AND = f LIKE 'abcd%')
   ]])
    =  end, {
         -- = <where7-2.946.2>
@@ -35385,12 +35385,12 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'utsrqpo' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'utsrqpo' AND f LIKE 'vwxyz%')
    =       OR b=3D132
        =   OR f=3D'ghijklmno'
          = OR b=3D740
-         OR (g=3D'qponmlk' AND = f GLOB 'mnopq*')
-         OR (g=3D'tsrqpon'= AND f GLOB 'abcde*')
+         OR = (g=3D'qponmlk' AND f LIKE 'mnopq%')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'abcde%')
    =       OR b=3D1059
  =  ]])
     end, {
@@ -35404,12 = +35404,12 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'utsrqpo' AND f GLOB = 'vwxyz*')
+      WHERE (g=3D'utsrqpo' AND f = LIKE 'vwxyz%')
          OR = b=3D132
          OR = f=3D'ghijklmno'
          OR = b=3D740
-         OR (g=3D'qponmlk' AND f = GLOB 'mnopq*')
-         OR (g=3D'tsrqpon' = AND f GLOB 'abcde*')
+         OR = (g=3D'qponmlk' AND f LIKE 'mnopq%')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'abcde%')
    =       OR b=3D1059
  =  ]])
     end, {
@@ -35459,10 = +35459,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'cdefg*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'cdefg%')
          OR = b=3D1026
          OR (d>=3D1.0 = AND d<2.0 AND d IS NOT NULL)
-         = OR (g=3D'wvutsrq' AND f GLOB 'lmnop*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'lmnop%')
    =       OR b=3D355
        =   OR b=3D641
          OR = (d>=3D53.0 AND d<54.0 AND d IS NOT NULL)
@@ -35478,10 = +35478,10 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'nmlkjih' AND f GLOB = 'cdefg*')
+      WHERE (g=3D'nmlkjih' AND f = LIKE 'cdefg%')
          OR = b=3D1026
          OR (d>=3D1.0 = AND d<2.0 AND d IS NOT NULL)
-         = OR (g=3D'wvutsrq' AND f GLOB 'lmnop*')
+       =   OR (g=3D'wvutsrq' AND f LIKE 'lmnop%')
    =       OR b=3D355
        =   OR b=3D641
          OR = (d>=3D53.0 AND d<54.0 AND d IS NOT NULL)
@@ -35506,7 = +35506,7 @@ test:do_test(
          = OR f=3D'opqrstuvw'
          OR = a=3D41
          OR a=3D83
- =         OR (g=3D'nmlkjih' AND f GLOB = 'cdefg*')
+         OR (g=3D'nmlkjih' AND = f LIKE 'cdefg%')
          OR = b=3D751
   ]])
     end, = {
@@ -35529,7 +35529,7 @@ test:do_test(
  =         OR f=3D'opqrstuvw'
    =       OR a=3D41
        =   OR a=3D83
-         OR (g=3D'nmlkjih'= AND f GLOB 'cdefg*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'cdefg%')
      =     OR b=3D751
   ]])
  =    end, {
@@ -35579,7 +35579,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR f=3D'bcdefghij'
      =     OR f=3D'hijklmnop'
        =   OR a=3D65
@@ -35602,7 +35602,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'qponmlk' AND f GLOB 'qrstu*')
+     =  WHERE (g=3D'qponmlk' AND f LIKE 'qrstu%')
    =       OR f=3D'bcdefghij'
      =     OR f=3D'hijklmnop'
        =   OR a=3D65
@@ -35625,11 +35625,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 10 AND 12) AND = a!=3D11)
          OR ((a BETWEEN 79 = AND 81) AND a!=3D80)
-         OR = (g=3D'kjihgfe' AND f GLOB 'stuvw*')
-       =   OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =     OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'pqrst%')
          OR = b=3D1100
          OR = c=3D6006
          OR = c=3D4004
@@ -35647,11 +35647,11 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+     =  WHERE (g=3D'jihgfed' AND f LIKE 'vwxyz%')
    =       OR ((a BETWEEN 10 AND 12) AND = a!=3D11)
          OR ((a BETWEEN 79 = AND 81) AND a!=3D80)
-         OR = (g=3D'kjihgfe' AND f GLOB 'stuvw*')
-       =   OR (g=3D'qponmlk' AND f GLOB 'pqrst*')
+     =     OR (g=3D'kjihgfe' AND f LIKE 'stuvw%')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'pqrst%')
          OR = b=3D1100
          OR = c=3D6006
          OR = c=3D4004
@@ -35728,7 +35728,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE (d>=3D42.0 AND = d<43.0 AND d IS NOT NULL)
-         OR = (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
    =       OR ((a BETWEEN 21 AND 23) AND = a!=3D22)
          OR (d>=3D12.0 = AND d<13.0 AND d IS NOT NULL)
        =   OR b=3D737
@@ -35745,7 +35745,7 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE (d>=3D42.0 AND = d<43.0 AND d IS NOT NULL)
-         OR = (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
    =       OR ((a BETWEEN 21 AND 23) AND = a!=3D22)
          OR (d>=3D12.0 = AND d<13.0 AND d IS NOT NULL)
        =   OR b=3D737
@@ -35761,7 +35761,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'rqponml' AND f GLOB 'klmno*')
+     =  WHERE (g=3D'rqponml' AND f LIKE 'klmno%')
    =       OR ((a BETWEEN 5 AND 7) AND a!=3D6)
  =  ]])
     end, {
@@ -35775,7 = +35775,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'rqponml' AND f GLOB = 'klmno*')
+      WHERE (g=3D'rqponml' AND f = LIKE 'klmno%')
          OR ((a = BETWEEN 5 AND 7) AND a!=3D6)
   ]])
  =    end, {
@@ -35789,7 +35789,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR c=3D32032
        =   OR f=3D'opqrstuvw'
          = OR ((a BETWEEN 66 AND 68) AND a!=3D67)
@@ -35807,7 +35807,7 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'hgfedcb' AND f GLOB 'hijkl*')
+     =  WHERE (g=3D'hgfedcb' AND f LIKE 'hijkl%')
    =       OR c=3D32032
        =   OR f=3D'opqrstuvw'
          = OR ((a BETWEEN 66 AND 68) AND a!=3D67)
@@ -35875,11 +35875,11 = @@ test:do_test(
          OR ((a = BETWEEN 8 AND 10) AND a!=3D9)
        =   OR ((a BETWEEN 86 AND 88) AND a!=3D87)
    =       OR b=3D146
-         = OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
    =       OR ((a BETWEEN 73 AND 75) AND a!=3D74)
- =         OR (g=3D'utsrqpo' AND f GLOB = 'uvwxy*')
+         OR (g=3D'utsrqpo' AND = f LIKE 'uvwxy%')
          OR ((a = BETWEEN 60 AND 62) AND a!=3D61)
-         = OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D704
  =  ]])
     end, {
@@ -35897,11 = +35897,11 @@ test:do_test(
          = OR ((a BETWEEN 8 AND 10) AND a!=3D9)
      =     OR ((a BETWEEN 86 AND 88) AND a!=3D87)
  =         OR b=3D146
-       =   OR (g=3D'ponmlkj' AND f GLOB 'rstuv*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'rstuv%')
  =         OR ((a BETWEEN 73 AND 75) AND = a!=3D74)
-         OR (g=3D'utsrqpo' AND f = GLOB 'uvwxy*')
+         OR (g=3D'utsrqpo' = AND f LIKE 'uvwxy%')
          OR ((a = BETWEEN 60 AND 62) AND a!=3D61)
-         = OR (g=3D'ihgfedc' AND f GLOB 'efghi*')
+       =   OR (g=3D'ihgfedc' AND f LIKE 'efghi%')
    =       OR b=3D704
  =  ]])
     end, {
@@ -35950,7 = +35950,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE c=3D17017
- =         OR (g=3D'qponmlk' AND f GLOB = 'mnopq*')
+         OR (g=3D'qponmlk' AND = f LIKE 'mnopq%')
          OR = b=3D971
          OR = a=3D37
          OR a=3D7
@@ = -35970,7 +35970,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE c=3D17017
- =         OR (g=3D'qponmlk' AND f GLOB = 'mnopq*')
+         OR (g=3D'qponmlk' AND = f LIKE 'mnopq%')
          OR = b=3D971
          OR = a=3D37
          OR a=3D7
@@ = -35990,7 +35990,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE = f=3D'tuvwxyzab'
-         OR (f GLOB = '?stuv*' AND f GLOB 'rstu*')
+         OR = (f LIKE '_stuv%' AND f LIKE 'rstu%')
  =  ]])
     end, {
    =      -- <where7-2.963.1>
@@ -36004,7 = +36004,7 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE = f=3D'tuvwxyzab'
-         OR (f GLOB = '?stuv*' AND f GLOB 'rstu*')
+         OR = (f LIKE '_stuv%' AND f LIKE 'rstu%')
  =  ]])
     end, {
    =      -- <where7-2.963.2>
@@ -36019,7 = +36019,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D638
  =         OR (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
-         OR (g=3D'gfedcba' AND f = GLOB 'lmnop*')
+         OR (g=3D'gfedcba' = AND f LIKE 'lmnop%')
          OR = b=3D165
          OR ((a BETWEEN 10 = AND 12) AND a!=3D11)
          OR = f=3D'stuvwxyza'
@@ -36041,7 +36041,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D638
  =         OR (d>=3D44.0 AND d<45.0 AND d IS NOT = NULL)
-         OR (g=3D'gfedcba' AND f = GLOB 'lmnop*')
+         OR (g=3D'gfedcba' = AND f LIKE 'lmnop%')
          OR = b=3D165
          OR ((a BETWEEN 10 = AND 12) AND a!=3D11)
          OR = f=3D'stuvwxyza'
@@ -36067,7 +36067,7 @@ = test:do_test(
          OR = a=3D93
          OR = b=3D858
          OR (d>=3D18.0 = AND d<19.0 AND d IS NOT NULL)
-         = OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.965.1>
@@ -36086,7 = +36086,7 @@ test:do_test(
          = OR a=3D93
          OR = b=3D858
          OR (d>=3D18.0 = AND d<19.0 AND d IS NOT NULL)
-         = OR (g=3D'jihgfed' AND f GLOB 'vwxyz*')
+       =   OR (g=3D'jihgfed' AND f LIKE 'vwxyz%')
  =  ]])
     end, {
    =      -- <where7-2.965.2>
@@ -36157,7 = +36157,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t2
-      WHERE (g=3D'qponmlk' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'mnopq%')
          OR ((a = BETWEEN 24 AND 26) AND a!=3D25)
        =   OR a=3D5
          OR = b=3D396
@@ -36174,7 +36174,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'qponmlk' AND f GLOB = 'mnopq*')
+      WHERE (g=3D'qponmlk' AND f = LIKE 'mnopq%')
          OR ((a = BETWEEN 24 AND 26) AND a!=3D25)
        =   OR a=3D5
          OR = b=3D396
@@ -36191,7 +36191,7 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t2
-      WHERE (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'fedcbaz' AND f = LIKE 'rstuv%')
          OR = b=3D748
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 69 AND 71) AND a!=3D70)
@@ -36210,7 = +36210,7 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'fedcbaz' AND f GLOB = 'rstuv*')
+      WHERE (g=3D'fedcbaz' AND f = LIKE 'rstuv%')
          OR = b=3D748
          OR (d>=3D97.0 = AND d<98.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 69 AND 71) AND a!=3D70)
@@ -36231,7 = +36231,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D30.0 AND = d<31.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 8 AND 10) AND a!=3D9)
-     =     OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
+   =       OR (f LIKE '_pqrs%' AND f LIKE = 'opqr%')
          OR = a=3D50
          OR = a=3D46
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
@@ -36249,7 +36249,7 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D30.0 AND = d<31.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 8 AND 10) AND a!=3D9)
-     =     OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
+   =       OR (f LIKE '_pqrs%' AND f LIKE = 'opqr%')
          OR = a=3D50
          OR = a=3D46
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
@@ -36312,7 +36312,7 @@ = test:do_test(
          OR = c=3D16016
          OR = b=3D1078
          OR = b=3D960
-         OR (g=3D'hgfedcb' AND f = GLOB 'jklmn*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'jklmn%')
   ]])
    =  end, {
         -- = <where7-2.972.1>
@@ -36330,7 +36330,7 @@ = test:do_test(
          OR = c=3D16016
          OR = b=3D1078
          OR = b=3D960
-         OR (g=3D'hgfedcb' AND f = GLOB 'jklmn*')
+         OR (g=3D'hgfedcb' = AND f LIKE 'jklmn%')
   ]])
    =  end, {
         -- = <where7-2.972.2>
@@ -36345,7 +36345,7 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1081
  =         OR ((a BETWEEN 19 AND 21) AND = a!=3D20)
-         OR (g=3D'ponmlkj' AND f = GLOB 'tuvwx*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'tuvwx%')
          OR ((a = BETWEEN 73 AND 75) AND a!=3D74)
        =   OR (d>=3D38.0 AND d<39.0 AND d IS NOT = NULL)
          OR a=3D6
@@ = -36363,7 +36363,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE = b=3D1081
          OR ((a BETWEEN 19 = AND 21) AND a!=3D20)
-         OR = (g=3D'ponmlkj' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'ponmlkj' AND f LIKE 'tuvwx%')
    =       OR ((a BETWEEN 73 AND 75) AND = a!=3D74)
          OR (d>=3D38.0 = AND d<39.0 AND d IS NOT NULL)
        =   OR a=3D6
@@ -36379,10 +36379,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
-       =   OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR = a=3D92
-         OR (f GLOB '?klmn*' AND f = GLOB 'jklm*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
        =   OR f=3D'fghijklmn'
          = OR a=3D100
          OR = b=3D209
@@ -36402,10 +36402,10 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE = (g=3D'fedcbaz' AND f GLOB 'rstuv*')
-       =   OR (g=3D'rqponml' AND f GLOB 'lmnop*')
+     =  WHERE (g=3D'fedcbaz' AND f LIKE 'rstuv%')
+   =       OR (g=3D'rqponml' AND f LIKE = 'lmnop%')
          OR = a=3D92
-         OR (f GLOB '?klmn*' AND f = GLOB 'jklm*')
+         OR (f LIKE = '_klmn%' AND f LIKE 'jklm%')
        =   OR f=3D'fghijklmn'
          = OR a=3D100
          OR = b=3D209
@@ -36458,13 +36458,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE ((a BETWEEN 51 AND 53) AND = a!=3D52)
-         OR (g=3D'utsrqpo' AND f = GLOB 'uvwxy*')
-         OR (f GLOB = '?cdef*' AND f GLOB 'bcde*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
    =       OR b=3D91
        =   OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR b=3D77
- =         OR (g=3D'ponmlkj' AND f GLOB = 'uvwxy*')
-         OR (g=3D'vutsrqp' AND = f GLOB 'pqrst*')
+         OR (g=3D'ponmlkj'= AND f LIKE 'uvwxy%')
+         OR = (g=3D'vutsrqp' AND f LIKE 'pqrst%')
  =  ]])
     end, {
    =      -- <where7-2.976.1>
@@ -36478,13 = +36478,13 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t3
       WHERE ((a BETWEEN 51 AND = 53) AND a!=3D52)
-         OR (g=3D'utsrqpo'= AND f GLOB 'uvwxy*')
-         OR (f GLOB = '?cdef*' AND f GLOB 'bcde*')
+         OR = (g=3D'utsrqpo' AND f LIKE 'uvwxy%')
+       =   OR (f LIKE '_cdef%' AND f LIKE 'bcde%')
    =       OR b=3D91
        =   OR (d>=3D45.0 AND d<46.0 AND d IS NOT = NULL)
          OR b=3D77
- =         OR (g=3D'ponmlkj' AND f GLOB = 'uvwxy*')
-         OR (g=3D'vutsrqp' AND = f GLOB 'pqrst*')
+         OR (g=3D'ponmlkj'= AND f LIKE 'uvwxy%')
+         OR = (g=3D'vutsrqp' AND f LIKE 'pqrst%')
  =  ]])
     end, {
    =      -- <where7-2.976.2>
@@ -36582,13 = +36582,13 @@ test:do_test(
        =  return count_steps_sort([[
      SELECT a = FROM t2
       WHERE b=3D737
- =         OR (g=3D'wvutsrq' AND f GLOB = 'ijklm*')
-         OR (f GLOB '?ghij*' = AND f GLOB 'fghi*')
+         OR = (g=3D'wvutsrq' AND f LIKE 'ijklm%')
+       =   OR (f LIKE '_ghij%' AND f LIKE 'fghi%')
    =       OR a=3D40
        =   OR f=3D'uvwxyzabc'
          = OR b=3D311
-         OR (g=3D'nmlkjih' AND = f GLOB 'bcdef*')
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'bcdef%')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D927
        =   OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
   ]])
@@ -36604,13 +36604,13 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t3
       WHERE b=3D737
-   =       OR (g=3D'wvutsrq' AND f GLOB 'ijklm*')
- =         OR (f GLOB '?ghij*' AND f GLOB = 'fghi*')
+         OR (g=3D'wvutsrq' AND f = LIKE 'ijklm%')
+         OR (f LIKE = '_ghij%' AND f LIKE 'fghi%')
        =   OR a=3D40
          OR = f=3D'uvwxyzabc'
          OR = b=3D311
-         OR (g=3D'nmlkjih' AND f = GLOB 'bcdef*')
-         OR (f GLOB = '?hijk*' AND f GLOB 'ghij*')
+         OR = (g=3D'nmlkjih' AND f LIKE 'bcdef%')
+       =   OR (f LIKE '_hijk%' AND f LIKE 'ghij%')
    =       OR b=3D927
        =   OR (d>=3D50.0 AND d<51.0 AND d IS NOT = NULL)
   ]])
@@ -36657,16 +36657,16 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'xwvutsr' AND f GLOB 'ghijk*')
+     =  WHERE (g=3D'xwvutsr' AND f LIKE 'ghijk%')
    =       OR b=3D487
        =   OR f=3D'tuvwxyzab'
-         OR = (g=3D'onmlkji' AND f GLOB 'wxyza*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'wxyza%')
    =       OR b=3D971
        =   OR c=3D19019
          OR = a=3D39
-         OR (f GLOB '?nopq*' AND f = GLOB 'mnop*')
+         OR (f LIKE = '_nopq%' AND f LIKE 'mnop%')
        =   OR b=3D550
-         OR = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D660
  =  ]])
     end, {
@@ -36680,16 = +36680,16 @@ test:do_test(
    =  function()
         return = count_steps_sort([[
      SELECT a FROM = t3
-      WHERE (g=3D'xwvutsr' AND f GLOB = 'ghijk*')
+      WHERE (g=3D'xwvutsr' AND f = LIKE 'ghijk%')
          OR = b=3D487
          OR = f=3D'tuvwxyzab'
-         OR (g=3D'onmlkji' = AND f GLOB 'wxyza*')
+         OR = (g=3D'onmlkji' AND f LIKE 'wxyza%')
      =     OR b=3D971
          OR = c=3D19019
          OR = a=3D39
-         OR (f GLOB '?nopq*' AND f = GLOB 'mnop*')
+         OR (f LIKE = '_nopq%' AND f LIKE 'mnop%')
        =   OR b=3D550
-         OR = (g=3D'kjihgfe' AND f GLOB 'tuvwx*')
+       =   OR (g=3D'kjihgfe' AND f LIKE 'tuvwx%')
    =       OR b=3D660
  =  ]])
     end, {
@@ -36735,7 = +36735,7 @@ test:do_test(
          = OR b=3D630
          OR = b=3D935
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
    =       OR f=3D'yzabcdefg'
      =     OR ((a BETWEEN 37 AND 39) AND a!=3D38)
  =  ]])
@@ -36754,7 +36754,7 @@ = test:do_test(
          OR = b=3D630
          OR = b=3D935
          OR (d>=3D20.0 = AND d<21.0 AND d IS NOT NULL)
-         = OR (g=3D'srqponm' AND f GLOB 'defgh*')
+       =   OR (g=3D'srqponm' AND f LIKE 'defgh%')
    =       OR f=3D'yzabcdefg'
      =     OR ((a BETWEEN 37 AND 39) AND a!=3D38)
  =  ]])
@@ -36774,7 +36774,7 @@ = test:do_test(
          OR = (d>=3D86.0 AND d<87.0 AND d IS NOT NULL)
    =       OR f=3D'abcdefghi'
      =     OR b=3D696
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR b=3D682
        =   OR a=3D32
          OR ((a = BETWEEN 34 AND 36) AND a!=3D35)
@@ -36797,7 +36797,7 @@ = test:do_test(
          OR = (d>=3D86.0 AND d<87.0 AND d IS NOT NULL)
    =       OR f=3D'abcdefghi'
      =     OR b=3D696
-         OR = (g=3D'vutsrqp' AND f GLOB 'qrstu*')
+       =   OR (g=3D'vutsrqp' AND f LIKE 'qrstu%')
    =       OR b=3D682
        =   OR a=3D32
          OR ((a = BETWEEN 34 AND 36) AND a!=3D35)
@@ -36815,8 +36815,8 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE = (g=3D'gfedcba' AND f GLOB 'lmnop*')
-       =   OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
+     =  WHERE (g=3D'gfedcba' AND f LIKE 'lmnop%')
+   =       OR (f LIKE '_ijkl%' AND f LIKE = 'hijk%')
          OR = b=3D311
   ]])
     end, = {
@@ -36830,8 +36830,8 @@ test:do_test(
  =    function()
        =  return count_steps_sort([[
      SELECT a = FROM t3
-      WHERE (g=3D'gfedcba' AND f GLOB = 'lmnop*')
-         OR (f GLOB '?ijkl*' = AND f GLOB 'hijk*')
+      WHERE (g=3D'gfedcba' = AND f LIKE 'lmnop%')
+         OR (f LIKE = '_ijkl%' AND f LIKE 'hijk%')
        =   OR b=3D311
   ]])
    =  end, {
@@ -36884,7 +36884,7 @@ = test:do_test(
       WHERE ((a BETWEEN 98 = AND 100) AND a!=3D99)
          OR = b=3D110
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
-         OR = (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'xyzab%')
    =       OR b=3D484
        =   OR (d>=3D82.0 AND d<83.0 AND d IS NOT = NULL)
   ]])
@@ -36902,7 +36902,7 @@ = test:do_test(
       WHERE ((a BETWEEN 98 = AND 100) AND a!=3D99)
          OR = b=3D110
          OR ((a BETWEEN 38 = AND 40) AND a!=3D39)
-         OR = (g=3D'tsrqpon' AND f GLOB 'xyzab*')
+       =   OR (g=3D'tsrqpon' AND f LIKE 'xyzab%')
    =       OR b=3D484
        =   OR (d>=3D82.0 AND d<83.0 AND d IS NOT = NULL)
   ]])
@@ -36925,7 +36925,7 @@ = test:do_test(
          OR = c=3D27027
          OR = b=3D1026
          OR = c=3D6006
-         OR (g=3D'ponmlkj' AND f = GLOB 'uvwxy*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'uvwxy%')
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -36947,7 = +36947,7 @@ test:do_test(
          = OR c=3D27027
          OR = b=3D1026
          OR = c=3D6006
-         OR (g=3D'ponmlkj' AND f = GLOB 'uvwxy*')
+         OR (g=3D'ponmlkj' = AND f LIKE 'uvwxy%')
          OR = (d>=3D73.0 AND d<74.0 AND d IS NOT NULL)
  =  ]])
     end, {
@@ -36963,11 = +36963,11 @@ test:do_test(
      SELECT a FROM = t2
       WHERE (d>=3D79.0 AND = d<80.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 18 AND 20) AND a!=3D19)
-     =     OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'nopqr%')
          OR = a=3D97
          OR (d>=3D45.0 AND = d<46.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 22 AND 24) AND a!=3D23)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'ghijk%')
          OR = b=3D674
          OR = c=3D14014
          OR = b=3D69
@@ -36985,11 +36985,11 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE (d>=3D79.0 AND = d<80.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 18 AND 20) AND a!=3D19)
-     =     OR (g=3D'qponmlk' AND f GLOB 'nopqr*')
+   =       OR (g=3D'qponmlk' AND f LIKE = 'nopqr%')
          OR = a=3D97
          OR (d>=3D45.0 AND = d<46.0 AND d IS NOT NULL)
        =   OR ((a BETWEEN 22 AND 24) AND a!=3D23)
-     =     OR (g=3D'mlkjihg' AND f GLOB 'ghijk*')
+   =       OR (g=3D'mlkjihg' AND f LIKE = 'ghijk%')
          OR = b=3D674
          OR = c=3D14014
          OR = b=3D69
@@ -37039,12 +37039,12 @@ = test:do_test(
      SELECT a FROM = t2
       WHERE b=3D451
  =         OR ((a BETWEEN 11 AND 13) AND = a!=3D12)
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR = b=3D539
          OR a=3D26
-=         OR (g=3D'srqponm' AND f GLOB = 'efghi*')
+         OR (g=3D'srqponm' AND = f LIKE 'efghi%')
          OR = b=3D465
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
   ]])
    =  end, {
         -- = <where7-2.991.1>
@@ -37059,12 +37059,12 @@ = test:do_test(
      SELECT a FROM = t3
       WHERE b=3D451
  =         OR ((a BETWEEN 11 AND 13) AND = a!=3D12)
-         OR (g=3D'tsrqpon' AND f = GLOB 'abcde*')
+         OR (g=3D'tsrqpon' = AND f LIKE 'abcde%')
          OR = b=3D539
          OR a=3D26
-=         OR (g=3D'srqponm' AND f GLOB = 'efghi*')
+         OR (g=3D'srqponm' AND = f LIKE 'efghi%')
          OR = b=3D465
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
   ]])
    =  end, {
         -- = <where7-2.991.2>
@@ -37135,9 +37135,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t2
-      WHERE (f = GLOB '?cdef*' AND f GLOB 'bcde*')
+      WHERE = (f LIKE '_cdef%' AND f LIKE 'bcde%')
      =     OR a=3D13
-         OR (f = GLOB '?stuv*' AND f GLOB 'rstu*')
+       =   OR (f LIKE '_stuv%' AND f LIKE 'rstu%')
    =       OR b=3D322
        =   OR ((a BETWEEN 33 AND 35) AND a!=3D34)
    =       OR b=3D377
@@ -37156,9 +37156,9 @@ = test:do_test(
     function()
  =        return count_steps_sort([[
  =     SELECT a FROM t3
-      WHERE (f = GLOB '?cdef*' AND f GLOB 'bcde*')
+      WHERE = (f LIKE '_cdef%' AND f LIKE 'bcde%')
      =     OR a=3D13
-         OR (f = GLOB '?stuv*' AND f GLOB 'rstu*')
+       =   OR (f LIKE '_stuv%' AND f LIKE 'rstu%')
    =       OR b=3D322
        =   OR ((a BETWEEN 33 AND 35) AND a!=3D34)
    =       OR b=3D377
@@ -37181,9 +37181,9 @@ = test:do_test(
          OR = b=3D990
          OR (d>=3D36.0 = AND d<37.0 AND d IS NOT NULL)
        =   OR b=3D605
-         OR = (g=3D'srqponm' AND f GLOB 'cdefg*')
+       =   OR (g=3D'srqponm' AND f LIKE 'cdefg%')
    =       OR (d>=3D36.0 AND d<37.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'qrstu*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'qrstu%')
          OR = b=3D968
          OR = a=3D66
   ]])
@@ -37202,9 +37202,9 @@ = test:do_test(
          OR = b=3D990
          OR (d>=3D36.0 = AND d<37.0 AND d IS NOT NULL)
        =   OR b=3D605
-         OR = (g=3D'srqponm' AND f GLOB 'cdefg*')
+       =   OR (g=3D'srqponm' AND f LIKE 'cdefg%')
    =       OR (d>=3D36.0 AND d<37.0 AND d IS NOT = NULL)
-         OR (g=3D'vutsrqp' AND f = GLOB 'qrstu*')
+         OR (g=3D'vutsrqp' = AND f LIKE 'qrstu%')
          OR = b=3D968
          OR = a=3D66
   ]])
@@ -37220,12 +37220,12 @@ = test:do_test(
         return = count_steps_sort([[
      SELECT a FROM = t2
       WHERE b=3D1059
- =         OR (g=3D'srqponm' AND f GLOB = 'ghijk*')
-         OR (g=3D'utsrqpo' AND = f GLOB 'tuvwx*')
-         OR (g=3D'nmlkjih'= AND f GLOB 'fghij*')
+         OR = (g=3D'srqponm' AND f LIKE 'ghijk%')
+       =   OR (g=3D'utsrqpo' AND f LIKE 'tuvwx%')
+     =     OR (g=3D'nmlkjih' AND f LIKE 'fghij%')
  =         OR (d>=3D17.0 AND d<18.0 AND d IS NOT = NULL)
          OR (d>=3D37.0 AND = d<38.0 AND d IS NOT NULL)
-         OR = (g=3D'onmlkji' AND f GLOB 'abcde*')
+       =   OR (g=3D'onmlkji' AND f LIKE 'abcde%')
    =       OR ((a BETWEEN 39 AND 41) AND = a!=3D40)
   ]])
     end, = {
@@ -37240,12 +37240,12 @@ test:do_test(
  =        return count_steps_sort([[
  =     SELECT a FROM t3
      =  WHERE b=3D1059
-         OR = (g=3D'srqponm' AND f GLOB 'ghijk*')
-       =   OR (g=3D'utsrqpo' AND f GLOB 'tuvwx*')
-     =     OR (g=3D'nmlkjih' AND f GLOB 'fghij*')
+   =       OR (g=3D'srqponm' AND f LIKE 'ghijk%')
+ =         OR (g=3D'utsrqpo' AND f LIKE = 'tuvwx%')
+         OR (g=3D'nmlkjih' AND = f LIKE 'fghij%')
          OR = (d>=3D17.0 AND d<18.0 AND d IS NOT NULL)
    =       OR (d>=3D37.0 AND d<38.0 AND d IS NOT = NULL)
-         OR (g=3D'onmlkji' AND f = GLOB 'abcde*')
+         OR (g=3D'onmlkji' = AND f LIKE 'abcde%')
          OR ((a = BETWEEN 39 AND 41) AND a!=3D40)
  =  ]])
     end, {
@@ -37261,7 = +37261,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE ((a BETWEEN 41 AND 43) AND = a!=3D42)
          OR = f=3D'nopqrstuv'
-         OR (g=3D'ponmlkj' = AND f GLOB 'stuvw*')
+         OR = (g=3D'ponmlkj' AND f LIKE 'stuvw%')
      =     OR a=3D42
          OR = b=3D729
          OR = b=3D297
@@ -37282,7 +37282,7 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE ((a BETWEEN 41 AND 43) AND a!=3D42)
    =       OR f=3D'nopqrstuv'
-       =   OR (g=3D'ponmlkj' AND f GLOB 'stuvw*')
+     =     OR (g=3D'ponmlkj' AND f LIKE 'stuvw%')
  =         OR a=3D42
      =     OR b=3D729
          OR = b=3D297
@@ -37337,9 +37337,9 @@ test:do_test(
  =     SELECT a FROM t2
      =  WHERE b=3D451
          OR = b=3D660
-         OR (g=3D'onmlkji' AND f = GLOB 'yzabc*')
+         OR (g=3D'onmlkji' = AND f LIKE 'yzabc%')
          OR = b=3D781
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
          OR = b=3D198
          OR = b=3D1023
          OR = a=3D98
@@ -37359,9 +37359,9 @@ test:do_test(
  =     SELECT a FROM t3
      =  WHERE b=3D451
          OR = b=3D660
-         OR (g=3D'onmlkji' AND f = GLOB 'yzabc*')
+         OR (g=3D'onmlkji' = AND f LIKE 'yzabc%')
          OR = b=3D781
-         OR (g=3D'jihgfed' AND f = GLOB 'wxyza*')
+         OR (g=3D'jihgfed' = AND f LIKE 'wxyza%')
          OR = b=3D198
          OR = b=3D1023
          OR = a=3D98
@@ -37383,7 +37383,7 @@ test:do_test(
  =         OR a=3D86
      =     OR c=3D17017
          = OR ((a BETWEEN 85 AND 87) AND a!=3D86)
-       =   OR (g=3D'gfedcba' AND f GLOB 'mnopq*')
+     =     OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
  =         OR a=3D80
      =     OR b=3D773
   ]])
@@ = -37402,7 +37402,7 @@ test:do_test(
        =   OR a=3D86
          OR = c=3D17017
          OR ((a BETWEEN 85 = AND 87) AND a!=3D86)
-         OR = (g=3D'gfedcba' AND f GLOB 'mnopq*')
+       =   OR (g=3D'gfedcba' AND f LIKE 'mnopq%')
    =       OR a=3D80
        =   OR b=3D773
   ]])
@@ -37419,7 = +37419,7 @@ test:do_test(
      SELECT a FROM = t2
       WHERE b=3D1092
  =         OR a=3D23
-       =   OR (f GLOB '?defg*' AND f GLOB 'cdef*')
+     =     OR (f LIKE '_defg%' AND f LIKE 'cdef%')
  =         OR d<0.0
      =     OR (d>=3D22.0 AND d<23.0 AND d IS NOT = NULL)
          OR a=3D91
@@ = -37437,7 +37437,7 @@ test:do_test(
      SELECT = a FROM t3
       WHERE = b=3D1092
          OR = a=3D23
-         OR (f GLOB '?defg*' AND f = GLOB 'cdef*')
+         OR (f LIKE = '_defg%' AND f LIKE 'cdef%')
        =   OR d<0.0
          OR = (d>=3D22.0 AND d<23.0 AND d IS NOT NULL)
    =       OR a=3D91


--
WBR, Nikita Tatunov.

= --Apple-Mail=_C5906CD7-856B-4C72-9D3C-1AA7A1FE35B9--