os/persistentdata/persistentstorage/sqlite3api/TEST/TclScript/like2.test
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
# 2008 May 26
sl@0
     2
#
sl@0
     3
# The author disclaims copyright to this source code.  In place of
sl@0
     4
# a legal notice, here is a blessing:
sl@0
     5
#
sl@0
     6
#    May you do good and not evil.
sl@0
     7
#    May you find forgiveness for yourself and forgive others.
sl@0
     8
#    May you share freely, never taking more than you give.
sl@0
     9
#
sl@0
    10
#***********************************************************************
sl@0
    11
# This file implements regression tests for SQLite library.  The
sl@0
    12
# focus of this file is testing the LIKE and GLOB operators and
sl@0
    13
# in particular the optimizations that occur to help those operators
sl@0
    14
# run faster.
sl@0
    15
#
sl@0
    16
# $Id: like2.test,v 1.1 2008/05/26 18:33:41 drh Exp $
sl@0
    17
sl@0
    18
set testdir [file dirname $argv0]
sl@0
    19
source $testdir/tester.tcl
sl@0
    20
sl@0
    21
do_test like2-1.1 {
sl@0
    22
  db eval {
sl@0
    23
    CREATE TABLE t1(x INT, y COLLATE NOCASE);
sl@0
    24
    INSERT INTO t1(x,y) VALUES(1,CAST(x'01' AS TEXT));
sl@0
    25
    INSERT INTO t1(x,y) VALUES(2,CAST(x'02' AS TEXT));
sl@0
    26
    INSERT INTO t1(x,y) VALUES(3,CAST(x'03' AS TEXT));
sl@0
    27
    INSERT INTO t1(x,y) VALUES(4,CAST(x'04' AS TEXT));
sl@0
    28
    INSERT INTO t1(x,y) VALUES(5,CAST(x'05' AS TEXT));
sl@0
    29
    INSERT INTO t1(x,y) VALUES(6,CAST(x'06' AS TEXT));
sl@0
    30
    INSERT INTO t1(x,y) VALUES(7,CAST(x'07' AS TEXT));
sl@0
    31
    INSERT INTO t1(x,y) VALUES(8,CAST(x'08' AS TEXT));
sl@0
    32
    INSERT INTO t1(x,y) VALUES(9,CAST(x'09' AS TEXT));
sl@0
    33
    INSERT INTO t1(x,y) VALUES(10,CAST(x'0a' AS TEXT));
sl@0
    34
    INSERT INTO t1(x,y) VALUES(11,CAST(x'0b' AS TEXT));
sl@0
    35
    INSERT INTO t1(x,y) VALUES(12,CAST(x'0c' AS TEXT));
sl@0
    36
    INSERT INTO t1(x,y) VALUES(13,CAST(x'0d' AS TEXT));
sl@0
    37
    INSERT INTO t1(x,y) VALUES(14,CAST(x'0e' AS TEXT));
sl@0
    38
    INSERT INTO t1(x,y) VALUES(15,CAST(x'0f' AS TEXT));
sl@0
    39
    INSERT INTO t1(x,y) VALUES(16,CAST(x'10' AS TEXT));
sl@0
    40
    INSERT INTO t1(x,y) VALUES(17,CAST(x'11' AS TEXT));
sl@0
    41
    INSERT INTO t1(x,y) VALUES(18,CAST(x'12' AS TEXT));
sl@0
    42
    INSERT INTO t1(x,y) VALUES(19,CAST(x'13' AS TEXT));
sl@0
    43
    INSERT INTO t1(x,y) VALUES(20,CAST(x'14' AS TEXT));
sl@0
    44
    INSERT INTO t1(x,y) VALUES(21,CAST(x'15' AS TEXT));
sl@0
    45
    INSERT INTO t1(x,y) VALUES(22,CAST(x'16' AS TEXT));
sl@0
    46
    INSERT INTO t1(x,y) VALUES(23,CAST(x'17' AS TEXT));
sl@0
    47
    INSERT INTO t1(x,y) VALUES(24,CAST(x'18' AS TEXT));
sl@0
    48
    INSERT INTO t1(x,y) VALUES(25,CAST(x'19' AS TEXT));
sl@0
    49
    INSERT INTO t1(x,y) VALUES(26,CAST(x'1a' AS TEXT));
sl@0
    50
    INSERT INTO t1(x,y) VALUES(27,CAST(x'1b' AS TEXT));
sl@0
    51
    INSERT INTO t1(x,y) VALUES(28,CAST(x'1c' AS TEXT));
sl@0
    52
    INSERT INTO t1(x,y) VALUES(29,CAST(x'1d' AS TEXT));
sl@0
    53
    INSERT INTO t1(x,y) VALUES(30,CAST(x'1e' AS TEXT));
sl@0
    54
    INSERT INTO t1(x,y) VALUES(31,CAST(x'1f' AS TEXT));
sl@0
    55
    INSERT INTO t1(x,y) VALUES(32,' ');
sl@0
    56
    INSERT INTO t1(x,y) VALUES(33,'!');
sl@0
    57
    INSERT INTO t1(x,y) VALUES(34,'"');
sl@0
    58
    INSERT INTO t1(x,y) VALUES(35,'#');
sl@0
    59
    INSERT INTO t1(x,y) VALUES(36,'$');
sl@0
    60
    INSERT INTO t1(x,y) VALUES(37,'%');
sl@0
    61
    INSERT INTO t1(x,y) VALUES(38,'&');
sl@0
    62
    INSERT INTO t1(x,y) VALUES(39,'''');
sl@0
    63
    INSERT INTO t1(x,y) VALUES(40,'(');
sl@0
    64
    INSERT INTO t1(x,y) VALUES(41,')');
sl@0
    65
    INSERT INTO t1(x,y) VALUES(42,'*');
sl@0
    66
    INSERT INTO t1(x,y) VALUES(43,'+');
sl@0
    67
    INSERT INTO t1(x,y) VALUES(44,',');
sl@0
    68
    INSERT INTO t1(x,y) VALUES(45,'-');
sl@0
    69
    INSERT INTO t1(x,y) VALUES(46,'.');
sl@0
    70
    INSERT INTO t1(x,y) VALUES(47,'/');
sl@0
    71
    INSERT INTO t1(x,y) VALUES(48,'0');
sl@0
    72
    INSERT INTO t1(x,y) VALUES(49,'1');
sl@0
    73
    INSERT INTO t1(x,y) VALUES(50,'2');
sl@0
    74
    INSERT INTO t1(x,y) VALUES(51,'3');
sl@0
    75
    INSERT INTO t1(x,y) VALUES(52,'4');
sl@0
    76
    INSERT INTO t1(x,y) VALUES(53,'5');
sl@0
    77
    INSERT INTO t1(x,y) VALUES(54,'6');
sl@0
    78
    INSERT INTO t1(x,y) VALUES(55,'7');
sl@0
    79
    INSERT INTO t1(x,y) VALUES(56,'8');
sl@0
    80
    INSERT INTO t1(x,y) VALUES(57,'9');
sl@0
    81
    INSERT INTO t1(x,y) VALUES(58,':');
sl@0
    82
    INSERT INTO t1(x,y) VALUES(59,';');
sl@0
    83
    INSERT INTO t1(x,y) VALUES(60,'<');
sl@0
    84
    INSERT INTO t1(x,y) VALUES(61,'=');
sl@0
    85
    INSERT INTO t1(x,y) VALUES(62,'>');
sl@0
    86
    INSERT INTO t1(x,y) VALUES(63,'?');
sl@0
    87
    INSERT INTO t1(x,y) VALUES(64,'@');
sl@0
    88
    INSERT INTO t1(x,y) VALUES(65,'A');
sl@0
    89
    INSERT INTO t1(x,y) VALUES(66,'B');
sl@0
    90
    INSERT INTO t1(x,y) VALUES(67,'C');
sl@0
    91
    INSERT INTO t1(x,y) VALUES(68,'D');
sl@0
    92
    INSERT INTO t1(x,y) VALUES(69,'E');
sl@0
    93
    INSERT INTO t1(x,y) VALUES(70,'F');
sl@0
    94
    INSERT INTO t1(x,y) VALUES(71,'G');
sl@0
    95
    INSERT INTO t1(x,y) VALUES(72,'H');
sl@0
    96
    INSERT INTO t1(x,y) VALUES(73,'I');
sl@0
    97
    INSERT INTO t1(x,y) VALUES(74,'J');
sl@0
    98
    INSERT INTO t1(x,y) VALUES(75,'K');
sl@0
    99
    INSERT INTO t1(x,y) VALUES(76,'L');
sl@0
   100
    INSERT INTO t1(x,y) VALUES(77,'M');
sl@0
   101
    INSERT INTO t1(x,y) VALUES(78,'N');
sl@0
   102
    INSERT INTO t1(x,y) VALUES(79,'O');
sl@0
   103
    INSERT INTO t1(x,y) VALUES(80,'P');
sl@0
   104
    INSERT INTO t1(x,y) VALUES(81,'Q');
sl@0
   105
    INSERT INTO t1(x,y) VALUES(82,'R');
sl@0
   106
    INSERT INTO t1(x,y) VALUES(83,'S');
sl@0
   107
    INSERT INTO t1(x,y) VALUES(84,'T');
sl@0
   108
    INSERT INTO t1(x,y) VALUES(85,'U');
sl@0
   109
    INSERT INTO t1(x,y) VALUES(86,'V');
sl@0
   110
    INSERT INTO t1(x,y) VALUES(87,'W');
sl@0
   111
    INSERT INTO t1(x,y) VALUES(88,'X');
sl@0
   112
    INSERT INTO t1(x,y) VALUES(89,'Y');
sl@0
   113
    INSERT INTO t1(x,y) VALUES(90,'Z');
sl@0
   114
    INSERT INTO t1(x,y) VALUES(91,'[');
sl@0
   115
    INSERT INTO t1(x,y) VALUES(92,'\');
sl@0
   116
    INSERT INTO t1(x,y) VALUES(93,']');
sl@0
   117
    INSERT INTO t1(x,y) VALUES(94,'^');
sl@0
   118
    INSERT INTO t1(x,y) VALUES(95,'_');
sl@0
   119
    INSERT INTO t1(x,y) VALUES(96,'`');
sl@0
   120
    INSERT INTO t1(x,y) VALUES(97,'a');
sl@0
   121
    INSERT INTO t1(x,y) VALUES(98,'b');
sl@0
   122
    INSERT INTO t1(x,y) VALUES(99,'c');
sl@0
   123
    INSERT INTO t1(x,y) VALUES(100,'d');
sl@0
   124
    INSERT INTO t1(x,y) VALUES(101,'e');
sl@0
   125
    INSERT INTO t1(x,y) VALUES(102,'f');
sl@0
   126
    INSERT INTO t1(x,y) VALUES(103,'g');
sl@0
   127
    INSERT INTO t1(x,y) VALUES(104,'h');
sl@0
   128
    INSERT INTO t1(x,y) VALUES(105,'i');
sl@0
   129
    INSERT INTO t1(x,y) VALUES(106,'j');
sl@0
   130
    INSERT INTO t1(x,y) VALUES(107,'k');
sl@0
   131
    INSERT INTO t1(x,y) VALUES(108,'l');
sl@0
   132
    INSERT INTO t1(x,y) VALUES(109,'m');
sl@0
   133
    INSERT INTO t1(x,y) VALUES(110,'n');
sl@0
   134
    INSERT INTO t1(x,y) VALUES(111,'o');
sl@0
   135
    INSERT INTO t1(x,y) VALUES(112,'p');
sl@0
   136
    INSERT INTO t1(x,y) VALUES(113,'q');
sl@0
   137
    INSERT INTO t1(x,y) VALUES(114,'r');
sl@0
   138
    INSERT INTO t1(x,y) VALUES(115,'s');
sl@0
   139
    INSERT INTO t1(x,y) VALUES(116,'t');
sl@0
   140
    INSERT INTO t1(x,y) VALUES(117,'u');
sl@0
   141
    INSERT INTO t1(x,y) VALUES(118,'v');
sl@0
   142
    INSERT INTO t1(x,y) VALUES(119,'w');
sl@0
   143
    INSERT INTO t1(x,y) VALUES(120,'x');
sl@0
   144
    INSERT INTO t1(x,y) VALUES(121,'y');
sl@0
   145
    INSERT INTO t1(x,y) VALUES(122,'z');
sl@0
   146
    INSERT INTO t1(x,y) VALUES(123,'{');
sl@0
   147
    INSERT INTO t1(x,y) VALUES(124,'|');
sl@0
   148
    INSERT INTO t1(x,y) VALUES(125,'}');
sl@0
   149
    INSERT INTO t1(x,y) VALUES(126,'~');
sl@0
   150
    INSERT INTO t1(x,y) VALUES(127,CAST(x'7f' AS TEXT));
sl@0
   151
    SELECT count(*) FROM t1;
sl@0
   152
  }
sl@0
   153
} {127}
sl@0
   154
do_test like2-1.2 {
sl@0
   155
  db eval {
sl@0
   156
    CREATE TABLE t2(x INT, y COLLATE NOCASE);
sl@0
   157
    INSERT INTO t2 SELECT * FROM t1;
sl@0
   158
    CREATE INDEX i2 ON t2(y);
sl@0
   159
    SELECT count(*) FROM t2;
sl@0
   160
  }
sl@0
   161
} {127}
sl@0
   162
do_test like2-1.3 {
sl@0
   163
  db eval {
sl@0
   164
    CREATE TABLE t3(x INT, y COLLATE NOCASE);
sl@0
   165
    INSERT INTO t3 SELECT x, 'abc' || y || 'xyz' FROM t1;
sl@0
   166
    CREATE INDEX i3 ON t3(y);
sl@0
   167
    SELECT count(*) FROM t2;
sl@0
   168
  }
sl@0
   169
} {127}
sl@0
   170
do_test like-2.32.1 {
sl@0
   171
  db eval "SELECT x FROM t1 WHERE y LIKE ' %'"
sl@0
   172
} {32}
sl@0
   173
do_test like-2.32.2 {
sl@0
   174
  db eval "SELECT x FROM t2 WHERE y LIKE ' %'"
sl@0
   175
} {32}
sl@0
   176
do_test like-2.32.3 {
sl@0
   177
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc %'"
sl@0
   178
} {32}
sl@0
   179
do_test like-2.33.1 {
sl@0
   180
  db eval "SELECT x FROM t1 WHERE y LIKE '!%'"
sl@0
   181
} {33}
sl@0
   182
do_test like-2.33.2 {
sl@0
   183
  db eval "SELECT x FROM t2 WHERE y LIKE '!%'"
sl@0
   184
} {33}
sl@0
   185
do_test like-2.33.3 {
sl@0
   186
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc!%'"
sl@0
   187
} {33}
sl@0
   188
do_test like-2.34.1 {
sl@0
   189
  db eval "SELECT x FROM t1 WHERE y LIKE '\"%'"
sl@0
   190
} {34}
sl@0
   191
do_test like-2.34.2 {
sl@0
   192
  db eval "SELECT x FROM t2 WHERE y LIKE '\"%'"
sl@0
   193
} {34}
sl@0
   194
do_test like-2.34.3 {
sl@0
   195
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\"%'"
sl@0
   196
} {34}
sl@0
   197
do_test like-2.35.1 {
sl@0
   198
  db eval "SELECT x FROM t1 WHERE y LIKE '#%'"
sl@0
   199
} {35}
sl@0
   200
do_test like-2.35.2 {
sl@0
   201
  db eval "SELECT x FROM t2 WHERE y LIKE '#%'"
sl@0
   202
} {35}
sl@0
   203
do_test like-2.35.3 {
sl@0
   204
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc#%'"
sl@0
   205
} {35}
sl@0
   206
do_test like-2.36.1 {
sl@0
   207
  db eval "SELECT x FROM t1 WHERE y LIKE '\$%'"
sl@0
   208
} {36}
sl@0
   209
do_test like-2.36.2 {
sl@0
   210
  db eval "SELECT x FROM t2 WHERE y LIKE '\$%'"
sl@0
   211
} {36}
sl@0
   212
do_test like-2.36.3 {
sl@0
   213
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\$%'"
sl@0
   214
} {36}
sl@0
   215
do_test like-2.38.1 {
sl@0
   216
  db eval "SELECT x FROM t1 WHERE y LIKE '&%'"
sl@0
   217
} {38}
sl@0
   218
do_test like-2.38.2 {
sl@0
   219
  db eval "SELECT x FROM t2 WHERE y LIKE '&%'"
sl@0
   220
} {38}
sl@0
   221
do_test like-2.38.3 {
sl@0
   222
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc&%'"
sl@0
   223
} {38}
sl@0
   224
do_test like-2.39.1 {
sl@0
   225
  db eval "SELECT x FROM t1 WHERE y LIKE '''%'"
sl@0
   226
} {39}
sl@0
   227
do_test like-2.39.2 {
sl@0
   228
  db eval "SELECT x FROM t2 WHERE y LIKE '''%'"
sl@0
   229
} {39}
sl@0
   230
do_test like-2.39.3 {
sl@0
   231
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc''%'"
sl@0
   232
} {39}
sl@0
   233
do_test like-2.40.1 {
sl@0
   234
  db eval "SELECT x FROM t1 WHERE y LIKE '(%'"
sl@0
   235
} {40}
sl@0
   236
do_test like-2.40.2 {
sl@0
   237
  db eval "SELECT x FROM t2 WHERE y LIKE '(%'"
sl@0
   238
} {40}
sl@0
   239
do_test like-2.40.3 {
sl@0
   240
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc(%'"
sl@0
   241
} {40}
sl@0
   242
do_test like-2.41.1 {
sl@0
   243
  db eval "SELECT x FROM t1 WHERE y LIKE ')%'"
sl@0
   244
} {41}
sl@0
   245
do_test like-2.41.2 {
sl@0
   246
  db eval "SELECT x FROM t2 WHERE y LIKE ')%'"
sl@0
   247
} {41}
sl@0
   248
do_test like-2.41.3 {
sl@0
   249
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc)%'"
sl@0
   250
} {41}
sl@0
   251
do_test like-2.42.1 {
sl@0
   252
  db eval "SELECT x FROM t1 WHERE y LIKE '*%'"
sl@0
   253
} {42}
sl@0
   254
do_test like-2.42.2 {
sl@0
   255
  db eval "SELECT x FROM t2 WHERE y LIKE '*%'"
sl@0
   256
} {42}
sl@0
   257
do_test like-2.42.3 {
sl@0
   258
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc*%'"
sl@0
   259
} {42}
sl@0
   260
do_test like-2.43.1 {
sl@0
   261
  db eval "SELECT x FROM t1 WHERE y LIKE '+%'"
sl@0
   262
} {43}
sl@0
   263
do_test like-2.43.2 {
sl@0
   264
  db eval "SELECT x FROM t2 WHERE y LIKE '+%'"
sl@0
   265
} {43}
sl@0
   266
do_test like-2.43.3 {
sl@0
   267
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc+%'"
sl@0
   268
} {43}
sl@0
   269
do_test like-2.44.1 {
sl@0
   270
  db eval "SELECT x FROM t1 WHERE y LIKE ',%'"
sl@0
   271
} {44}
sl@0
   272
do_test like-2.44.2 {
sl@0
   273
  db eval "SELECT x FROM t2 WHERE y LIKE ',%'"
sl@0
   274
} {44}
sl@0
   275
do_test like-2.44.3 {
sl@0
   276
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc,%'"
sl@0
   277
} {44}
sl@0
   278
do_test like-2.45.1 {
sl@0
   279
  db eval "SELECT x FROM t1 WHERE y LIKE '-%'"
sl@0
   280
} {45}
sl@0
   281
do_test like-2.45.2 {
sl@0
   282
  db eval "SELECT x FROM t2 WHERE y LIKE '-%'"
sl@0
   283
} {45}
sl@0
   284
do_test like-2.45.3 {
sl@0
   285
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc-%'"
sl@0
   286
} {45}
sl@0
   287
do_test like-2.46.1 {
sl@0
   288
  db eval "SELECT x FROM t1 WHERE y LIKE '.%'"
sl@0
   289
} {46}
sl@0
   290
do_test like-2.46.2 {
sl@0
   291
  db eval "SELECT x FROM t2 WHERE y LIKE '.%'"
sl@0
   292
} {46}
sl@0
   293
do_test like-2.46.3 {
sl@0
   294
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc.%'"
sl@0
   295
} {46}
sl@0
   296
do_test like-2.47.1 {
sl@0
   297
  db eval "SELECT x FROM t1 WHERE y LIKE '/%'"
sl@0
   298
} {47}
sl@0
   299
do_test like-2.47.2 {
sl@0
   300
  db eval "SELECT x FROM t2 WHERE y LIKE '/%'"
sl@0
   301
} {47}
sl@0
   302
do_test like-2.47.3 {
sl@0
   303
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc/%'"
sl@0
   304
} {47}
sl@0
   305
do_test like-2.48.1 {
sl@0
   306
  db eval "SELECT x FROM t1 WHERE y LIKE '0%'"
sl@0
   307
} {48}
sl@0
   308
do_test like-2.48.2 {
sl@0
   309
  db eval "SELECT x FROM t2 WHERE y LIKE '0%'"
sl@0
   310
} {48}
sl@0
   311
do_test like-2.48.3 {
sl@0
   312
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc0%'"
sl@0
   313
} {48}
sl@0
   314
do_test like-2.49.1 {
sl@0
   315
  db eval "SELECT x FROM t1 WHERE y LIKE '1%'"
sl@0
   316
} {49}
sl@0
   317
do_test like-2.49.2 {
sl@0
   318
  db eval "SELECT x FROM t2 WHERE y LIKE '1%'"
sl@0
   319
} {49}
sl@0
   320
do_test like-2.49.3 {
sl@0
   321
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc1%'"
sl@0
   322
} {49}
sl@0
   323
do_test like-2.50.1 {
sl@0
   324
  db eval "SELECT x FROM t1 WHERE y LIKE '2%'"
sl@0
   325
} {50}
sl@0
   326
do_test like-2.50.2 {
sl@0
   327
  db eval "SELECT x FROM t2 WHERE y LIKE '2%'"
sl@0
   328
} {50}
sl@0
   329
do_test like-2.50.3 {
sl@0
   330
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc2%'"
sl@0
   331
} {50}
sl@0
   332
do_test like-2.51.1 {
sl@0
   333
  db eval "SELECT x FROM t1 WHERE y LIKE '3%'"
sl@0
   334
} {51}
sl@0
   335
do_test like-2.51.2 {
sl@0
   336
  db eval "SELECT x FROM t2 WHERE y LIKE '3%'"
sl@0
   337
} {51}
sl@0
   338
do_test like-2.51.3 {
sl@0
   339
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc3%'"
sl@0
   340
} {51}
sl@0
   341
do_test like-2.52.1 {
sl@0
   342
  db eval "SELECT x FROM t1 WHERE y LIKE '4%'"
sl@0
   343
} {52}
sl@0
   344
do_test like-2.52.2 {
sl@0
   345
  db eval "SELECT x FROM t2 WHERE y LIKE '4%'"
sl@0
   346
} {52}
sl@0
   347
do_test like-2.52.3 {
sl@0
   348
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc4%'"
sl@0
   349
} {52}
sl@0
   350
do_test like-2.53.1 {
sl@0
   351
  db eval "SELECT x FROM t1 WHERE y LIKE '5%'"
sl@0
   352
} {53}
sl@0
   353
do_test like-2.53.2 {
sl@0
   354
  db eval "SELECT x FROM t2 WHERE y LIKE '5%'"
sl@0
   355
} {53}
sl@0
   356
do_test like-2.53.3 {
sl@0
   357
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc5%'"
sl@0
   358
} {53}
sl@0
   359
do_test like-2.54.1 {
sl@0
   360
  db eval "SELECT x FROM t1 WHERE y LIKE '6%'"
sl@0
   361
} {54}
sl@0
   362
do_test like-2.54.2 {
sl@0
   363
  db eval "SELECT x FROM t2 WHERE y LIKE '6%'"
sl@0
   364
} {54}
sl@0
   365
do_test like-2.54.3 {
sl@0
   366
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc6%'"
sl@0
   367
} {54}
sl@0
   368
do_test like-2.55.1 {
sl@0
   369
  db eval "SELECT x FROM t1 WHERE y LIKE '7%'"
sl@0
   370
} {55}
sl@0
   371
do_test like-2.55.2 {
sl@0
   372
  db eval "SELECT x FROM t2 WHERE y LIKE '7%'"
sl@0
   373
} {55}
sl@0
   374
do_test like-2.55.3 {
sl@0
   375
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc7%'"
sl@0
   376
} {55}
sl@0
   377
do_test like-2.56.1 {
sl@0
   378
  db eval "SELECT x FROM t1 WHERE y LIKE '8%'"
sl@0
   379
} {56}
sl@0
   380
do_test like-2.56.2 {
sl@0
   381
  db eval "SELECT x FROM t2 WHERE y LIKE '8%'"
sl@0
   382
} {56}
sl@0
   383
do_test like-2.56.3 {
sl@0
   384
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc8%'"
sl@0
   385
} {56}
sl@0
   386
do_test like-2.57.1 {
sl@0
   387
  db eval "SELECT x FROM t1 WHERE y LIKE '9%'"
sl@0
   388
} {57}
sl@0
   389
do_test like-2.57.2 {
sl@0
   390
  db eval "SELECT x FROM t2 WHERE y LIKE '9%'"
sl@0
   391
} {57}
sl@0
   392
do_test like-2.57.3 {
sl@0
   393
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc9%'"
sl@0
   394
} {57}
sl@0
   395
do_test like-2.58.1 {
sl@0
   396
  db eval "SELECT x FROM t1 WHERE y LIKE ':%'"
sl@0
   397
} {58}
sl@0
   398
do_test like-2.58.2 {
sl@0
   399
  db eval "SELECT x FROM t2 WHERE y LIKE ':%'"
sl@0
   400
} {58}
sl@0
   401
do_test like-2.58.3 {
sl@0
   402
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc:%'"
sl@0
   403
} {58}
sl@0
   404
do_test like-2.59.1 {
sl@0
   405
  db eval "SELECT x FROM t1 WHERE y LIKE ';%'"
sl@0
   406
} {59}
sl@0
   407
do_test like-2.59.2 {
sl@0
   408
  db eval "SELECT x FROM t2 WHERE y LIKE ';%'"
sl@0
   409
} {59}
sl@0
   410
do_test like-2.59.3 {
sl@0
   411
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc;%'"
sl@0
   412
} {59}
sl@0
   413
do_test like-2.60.1 {
sl@0
   414
  db eval "SELECT x FROM t1 WHERE y LIKE '<%'"
sl@0
   415
} {60}
sl@0
   416
do_test like-2.60.2 {
sl@0
   417
  db eval "SELECT x FROM t2 WHERE y LIKE '<%'"
sl@0
   418
} {60}
sl@0
   419
do_test like-2.60.3 {
sl@0
   420
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc<%'"
sl@0
   421
} {60}
sl@0
   422
do_test like-2.61.1 {
sl@0
   423
  db eval "SELECT x FROM t1 WHERE y LIKE '=%'"
sl@0
   424
} {61}
sl@0
   425
do_test like-2.61.2 {
sl@0
   426
  db eval "SELECT x FROM t2 WHERE y LIKE '=%'"
sl@0
   427
} {61}
sl@0
   428
do_test like-2.61.3 {
sl@0
   429
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc=%'"
sl@0
   430
} {61}
sl@0
   431
do_test like-2.62.1 {
sl@0
   432
  db eval "SELECT x FROM t1 WHERE y LIKE '>%'"
sl@0
   433
} {62}
sl@0
   434
do_test like-2.62.2 {
sl@0
   435
  db eval "SELECT x FROM t2 WHERE y LIKE '>%'"
sl@0
   436
} {62}
sl@0
   437
do_test like-2.62.3 {
sl@0
   438
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc>%'"
sl@0
   439
} {62}
sl@0
   440
do_test like-2.63.1 {
sl@0
   441
  db eval "SELECT x FROM t1 WHERE y LIKE '?%'"
sl@0
   442
} {63}
sl@0
   443
do_test like-2.63.2 {
sl@0
   444
  db eval "SELECT x FROM t2 WHERE y LIKE '?%'"
sl@0
   445
} {63}
sl@0
   446
do_test like-2.63.3 {
sl@0
   447
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc?%'"
sl@0
   448
} {63}
sl@0
   449
do_test like-2.64.1 {
sl@0
   450
  db eval "SELECT x FROM t1 WHERE y LIKE '@%'"
sl@0
   451
} {64}
sl@0
   452
do_test like-2.64.2 {
sl@0
   453
  db eval "SELECT x FROM t2 WHERE y LIKE '@%'"
sl@0
   454
} {64}
sl@0
   455
do_test like-2.64.3 {
sl@0
   456
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc@%'"
sl@0
   457
} {64}
sl@0
   458
do_test like-2.65.1 {
sl@0
   459
  db eval "SELECT x FROM t1 WHERE y LIKE 'A%'"
sl@0
   460
} {65 97}
sl@0
   461
do_test like-2.65.2 {
sl@0
   462
  db eval "SELECT x FROM t2 WHERE y LIKE 'A%'"
sl@0
   463
} {65 97}
sl@0
   464
do_test like-2.65.3 {
sl@0
   465
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcA%'"
sl@0
   466
} {65 97}
sl@0
   467
do_test like-2.66.1 {
sl@0
   468
  db eval "SELECT x FROM t1 WHERE y LIKE 'B%'"
sl@0
   469
} {66 98}
sl@0
   470
do_test like-2.66.2 {
sl@0
   471
  db eval "SELECT x FROM t2 WHERE y LIKE 'B%'"
sl@0
   472
} {66 98}
sl@0
   473
do_test like-2.66.3 {
sl@0
   474
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcB%'"
sl@0
   475
} {66 98}
sl@0
   476
do_test like-2.67.1 {
sl@0
   477
  db eval "SELECT x FROM t1 WHERE y LIKE 'C%'"
sl@0
   478
} {67 99}
sl@0
   479
do_test like-2.67.2 {
sl@0
   480
  db eval "SELECT x FROM t2 WHERE y LIKE 'C%'"
sl@0
   481
} {67 99}
sl@0
   482
do_test like-2.67.3 {
sl@0
   483
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcC%'"
sl@0
   484
} {67 99}
sl@0
   485
do_test like-2.68.1 {
sl@0
   486
  db eval "SELECT x FROM t1 WHERE y LIKE 'D%'"
sl@0
   487
} {68 100}
sl@0
   488
do_test like-2.68.2 {
sl@0
   489
  db eval "SELECT x FROM t2 WHERE y LIKE 'D%'"
sl@0
   490
} {68 100}
sl@0
   491
do_test like-2.68.3 {
sl@0
   492
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcD%'"
sl@0
   493
} {68 100}
sl@0
   494
do_test like-2.69.1 {
sl@0
   495
  db eval "SELECT x FROM t1 WHERE y LIKE 'E%'"
sl@0
   496
} {69 101}
sl@0
   497
do_test like-2.69.2 {
sl@0
   498
  db eval "SELECT x FROM t2 WHERE y LIKE 'E%'"
sl@0
   499
} {69 101}
sl@0
   500
do_test like-2.69.3 {
sl@0
   501
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcE%'"
sl@0
   502
} {69 101}
sl@0
   503
do_test like-2.70.1 {
sl@0
   504
  db eval "SELECT x FROM t1 WHERE y LIKE 'F%'"
sl@0
   505
} {70 102}
sl@0
   506
do_test like-2.70.2 {
sl@0
   507
  db eval "SELECT x FROM t2 WHERE y LIKE 'F%'"
sl@0
   508
} {70 102}
sl@0
   509
do_test like-2.70.3 {
sl@0
   510
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcF%'"
sl@0
   511
} {70 102}
sl@0
   512
do_test like-2.71.1 {
sl@0
   513
  db eval "SELECT x FROM t1 WHERE y LIKE 'G%'"
sl@0
   514
} {71 103}
sl@0
   515
do_test like-2.71.2 {
sl@0
   516
  db eval "SELECT x FROM t2 WHERE y LIKE 'G%'"
sl@0
   517
} {71 103}
sl@0
   518
do_test like-2.71.3 {
sl@0
   519
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcG%'"
sl@0
   520
} {71 103}
sl@0
   521
do_test like-2.72.1 {
sl@0
   522
  db eval "SELECT x FROM t1 WHERE y LIKE 'H%'"
sl@0
   523
} {72 104}
sl@0
   524
do_test like-2.72.2 {
sl@0
   525
  db eval "SELECT x FROM t2 WHERE y LIKE 'H%'"
sl@0
   526
} {72 104}
sl@0
   527
do_test like-2.72.3 {
sl@0
   528
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcH%'"
sl@0
   529
} {72 104}
sl@0
   530
do_test like-2.73.1 {
sl@0
   531
  db eval "SELECT x FROM t1 WHERE y LIKE 'I%'"
sl@0
   532
} {73 105}
sl@0
   533
do_test like-2.73.2 {
sl@0
   534
  db eval "SELECT x FROM t2 WHERE y LIKE 'I%'"
sl@0
   535
} {73 105}
sl@0
   536
do_test like-2.73.3 {
sl@0
   537
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcI%'"
sl@0
   538
} {73 105}
sl@0
   539
do_test like-2.74.1 {
sl@0
   540
  db eval "SELECT x FROM t1 WHERE y LIKE 'J%'"
sl@0
   541
} {74 106}
sl@0
   542
do_test like-2.74.2 {
sl@0
   543
  db eval "SELECT x FROM t2 WHERE y LIKE 'J%'"
sl@0
   544
} {74 106}
sl@0
   545
do_test like-2.74.3 {
sl@0
   546
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcJ%'"
sl@0
   547
} {74 106}
sl@0
   548
do_test like-2.75.1 {
sl@0
   549
  db eval "SELECT x FROM t1 WHERE y LIKE 'K%'"
sl@0
   550
} {75 107}
sl@0
   551
do_test like-2.75.2 {
sl@0
   552
  db eval "SELECT x FROM t2 WHERE y LIKE 'K%'"
sl@0
   553
} {75 107}
sl@0
   554
do_test like-2.75.3 {
sl@0
   555
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcK%'"
sl@0
   556
} {75 107}
sl@0
   557
do_test like-2.76.1 {
sl@0
   558
  db eval "SELECT x FROM t1 WHERE y LIKE 'L%'"
sl@0
   559
} {76 108}
sl@0
   560
do_test like-2.76.2 {
sl@0
   561
  db eval "SELECT x FROM t2 WHERE y LIKE 'L%'"
sl@0
   562
} {76 108}
sl@0
   563
do_test like-2.76.3 {
sl@0
   564
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcL%'"
sl@0
   565
} {76 108}
sl@0
   566
do_test like-2.77.1 {
sl@0
   567
  db eval "SELECT x FROM t1 WHERE y LIKE 'M%'"
sl@0
   568
} {77 109}
sl@0
   569
do_test like-2.77.2 {
sl@0
   570
  db eval "SELECT x FROM t2 WHERE y LIKE 'M%'"
sl@0
   571
} {77 109}
sl@0
   572
do_test like-2.77.3 {
sl@0
   573
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcM%'"
sl@0
   574
} {77 109}
sl@0
   575
do_test like-2.78.1 {
sl@0
   576
  db eval "SELECT x FROM t1 WHERE y LIKE 'N%'"
sl@0
   577
} {78 110}
sl@0
   578
do_test like-2.78.2 {
sl@0
   579
  db eval "SELECT x FROM t2 WHERE y LIKE 'N%'"
sl@0
   580
} {78 110}
sl@0
   581
do_test like-2.78.3 {
sl@0
   582
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcN%'"
sl@0
   583
} {78 110}
sl@0
   584
do_test like-2.79.1 {
sl@0
   585
  db eval "SELECT x FROM t1 WHERE y LIKE 'O%'"
sl@0
   586
} {79 111}
sl@0
   587
do_test like-2.79.2 {
sl@0
   588
  db eval "SELECT x FROM t2 WHERE y LIKE 'O%'"
sl@0
   589
} {79 111}
sl@0
   590
do_test like-2.79.3 {
sl@0
   591
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcO%'"
sl@0
   592
} {79 111}
sl@0
   593
do_test like-2.80.1 {
sl@0
   594
  db eval "SELECT x FROM t1 WHERE y LIKE 'P%'"
sl@0
   595
} {80 112}
sl@0
   596
do_test like-2.80.2 {
sl@0
   597
  db eval "SELECT x FROM t2 WHERE y LIKE 'P%'"
sl@0
   598
} {80 112}
sl@0
   599
do_test like-2.80.3 {
sl@0
   600
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcP%'"
sl@0
   601
} {80 112}
sl@0
   602
do_test like-2.81.1 {
sl@0
   603
  db eval "SELECT x FROM t1 WHERE y LIKE 'Q%'"
sl@0
   604
} {81 113}
sl@0
   605
do_test like-2.81.2 {
sl@0
   606
  db eval "SELECT x FROM t2 WHERE y LIKE 'Q%'"
sl@0
   607
} {81 113}
sl@0
   608
do_test like-2.81.3 {
sl@0
   609
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcQ%'"
sl@0
   610
} {81 113}
sl@0
   611
do_test like-2.82.1 {
sl@0
   612
  db eval "SELECT x FROM t1 WHERE y LIKE 'R%'"
sl@0
   613
} {82 114}
sl@0
   614
do_test like-2.82.2 {
sl@0
   615
  db eval "SELECT x FROM t2 WHERE y LIKE 'R%'"
sl@0
   616
} {82 114}
sl@0
   617
do_test like-2.82.3 {
sl@0
   618
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcR%'"
sl@0
   619
} {82 114}
sl@0
   620
do_test like-2.83.1 {
sl@0
   621
  db eval "SELECT x FROM t1 WHERE y LIKE 'S%'"
sl@0
   622
} {83 115}
sl@0
   623
do_test like-2.83.2 {
sl@0
   624
  db eval "SELECT x FROM t2 WHERE y LIKE 'S%'"
sl@0
   625
} {83 115}
sl@0
   626
do_test like-2.83.3 {
sl@0
   627
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcS%'"
sl@0
   628
} {83 115}
sl@0
   629
do_test like-2.84.1 {
sl@0
   630
  db eval "SELECT x FROM t1 WHERE y LIKE 'T%'"
sl@0
   631
} {84 116}
sl@0
   632
do_test like-2.84.2 {
sl@0
   633
  db eval "SELECT x FROM t2 WHERE y LIKE 'T%'"
sl@0
   634
} {84 116}
sl@0
   635
do_test like-2.84.3 {
sl@0
   636
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcT%'"
sl@0
   637
} {84 116}
sl@0
   638
do_test like-2.85.1 {
sl@0
   639
  db eval "SELECT x FROM t1 WHERE y LIKE 'U%'"
sl@0
   640
} {85 117}
sl@0
   641
do_test like-2.85.2 {
sl@0
   642
  db eval "SELECT x FROM t2 WHERE y LIKE 'U%'"
sl@0
   643
} {85 117}
sl@0
   644
do_test like-2.85.3 {
sl@0
   645
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcU%'"
sl@0
   646
} {85 117}
sl@0
   647
do_test like-2.86.1 {
sl@0
   648
  db eval "SELECT x FROM t1 WHERE y LIKE 'V%'"
sl@0
   649
} {86 118}
sl@0
   650
do_test like-2.86.2 {
sl@0
   651
  db eval "SELECT x FROM t2 WHERE y LIKE 'V%'"
sl@0
   652
} {86 118}
sl@0
   653
do_test like-2.86.3 {
sl@0
   654
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcV%'"
sl@0
   655
} {86 118}
sl@0
   656
do_test like-2.87.1 {
sl@0
   657
  db eval "SELECT x FROM t1 WHERE y LIKE 'W%'"
sl@0
   658
} {87 119}
sl@0
   659
do_test like-2.87.2 {
sl@0
   660
  db eval "SELECT x FROM t2 WHERE y LIKE 'W%'"
sl@0
   661
} {87 119}
sl@0
   662
do_test like-2.87.3 {
sl@0
   663
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcW%'"
sl@0
   664
} {87 119}
sl@0
   665
do_test like-2.88.1 {
sl@0
   666
  db eval "SELECT x FROM t1 WHERE y LIKE 'X%'"
sl@0
   667
} {88 120}
sl@0
   668
do_test like-2.88.2 {
sl@0
   669
  db eval "SELECT x FROM t2 WHERE y LIKE 'X%'"
sl@0
   670
} {88 120}
sl@0
   671
do_test like-2.88.3 {
sl@0
   672
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcX%'"
sl@0
   673
} {88 120}
sl@0
   674
do_test like-2.89.1 {
sl@0
   675
  db eval "SELECT x FROM t1 WHERE y LIKE 'Y%'"
sl@0
   676
} {89 121}
sl@0
   677
do_test like-2.89.2 {
sl@0
   678
  db eval "SELECT x FROM t2 WHERE y LIKE 'Y%'"
sl@0
   679
} {89 121}
sl@0
   680
do_test like-2.89.3 {
sl@0
   681
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcY%'"
sl@0
   682
} {89 121}
sl@0
   683
do_test like-2.90.1 {
sl@0
   684
  db eval "SELECT x FROM t1 WHERE y LIKE 'Z%'"
sl@0
   685
} {90 122}
sl@0
   686
do_test like-2.90.2 {
sl@0
   687
  db eval "SELECT x FROM t2 WHERE y LIKE 'Z%'"
sl@0
   688
} {90 122}
sl@0
   689
do_test like-2.90.3 {
sl@0
   690
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcZ%'"
sl@0
   691
} {90 122}
sl@0
   692
do_test like-2.91.1 {
sl@0
   693
  db eval "SELECT x FROM t1 WHERE y LIKE '\[%'"
sl@0
   694
} {91}
sl@0
   695
do_test like-2.91.2 {
sl@0
   696
  db eval "SELECT x FROM t2 WHERE y LIKE '\[%'"
sl@0
   697
} {91}
sl@0
   698
do_test like-2.91.3 {
sl@0
   699
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\[%'"
sl@0
   700
} {91}
sl@0
   701
do_test like-2.92.1 {
sl@0
   702
  db eval "SELECT x FROM t1 WHERE y LIKE '\\%'"
sl@0
   703
} {92}
sl@0
   704
do_test like-2.92.2 {
sl@0
   705
  db eval "SELECT x FROM t2 WHERE y LIKE '\\%'"
sl@0
   706
} {92}
sl@0
   707
do_test like-2.92.3 {
sl@0
   708
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\\%'"
sl@0
   709
} {92}
sl@0
   710
do_test like-2.93.1 {
sl@0
   711
  db eval "SELECT x FROM t1 WHERE y LIKE '\]%'"
sl@0
   712
} {93}
sl@0
   713
do_test like-2.93.2 {
sl@0
   714
  db eval "SELECT x FROM t2 WHERE y LIKE '\]%'"
sl@0
   715
} {93}
sl@0
   716
do_test like-2.93.3 {
sl@0
   717
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\]%'"
sl@0
   718
} {93}
sl@0
   719
do_test like-2.94.1 {
sl@0
   720
  db eval "SELECT x FROM t1 WHERE y LIKE '^%'"
sl@0
   721
} {94}
sl@0
   722
do_test like-2.94.2 {
sl@0
   723
  db eval "SELECT x FROM t2 WHERE y LIKE '^%'"
sl@0
   724
} {94}
sl@0
   725
do_test like-2.94.3 {
sl@0
   726
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc^%'"
sl@0
   727
} {94}
sl@0
   728
do_test like-2.96.1 {
sl@0
   729
  db eval "SELECT x FROM t1 WHERE y LIKE '`%'"
sl@0
   730
} {96}
sl@0
   731
do_test like-2.96.2 {
sl@0
   732
  db eval "SELECT x FROM t2 WHERE y LIKE '`%'"
sl@0
   733
} {96}
sl@0
   734
do_test like-2.96.3 {
sl@0
   735
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc`%'"
sl@0
   736
} {96}
sl@0
   737
do_test like-2.97.1 {
sl@0
   738
  db eval "SELECT x FROM t1 WHERE y LIKE 'a%'"
sl@0
   739
} {65 97}
sl@0
   740
do_test like-2.97.2 {
sl@0
   741
  db eval "SELECT x FROM t2 WHERE y LIKE 'a%'"
sl@0
   742
} {65 97}
sl@0
   743
do_test like-2.97.3 {
sl@0
   744
  db eval "SELECT x FROM t3 WHERE y LIKE 'abca%'"
sl@0
   745
} {65 97}
sl@0
   746
do_test like-2.98.1 {
sl@0
   747
  db eval "SELECT x FROM t1 WHERE y LIKE 'b%'"
sl@0
   748
} {66 98}
sl@0
   749
do_test like-2.98.2 {
sl@0
   750
  db eval "SELECT x FROM t2 WHERE y LIKE 'b%'"
sl@0
   751
} {66 98}
sl@0
   752
do_test like-2.98.3 {
sl@0
   753
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcb%'"
sl@0
   754
} {66 98}
sl@0
   755
do_test like-2.99.1 {
sl@0
   756
  db eval "SELECT x FROM t1 WHERE y LIKE 'c%'"
sl@0
   757
} {67 99}
sl@0
   758
do_test like-2.99.2 {
sl@0
   759
  db eval "SELECT x FROM t2 WHERE y LIKE 'c%'"
sl@0
   760
} {67 99}
sl@0
   761
do_test like-2.99.3 {
sl@0
   762
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcc%'"
sl@0
   763
} {67 99}
sl@0
   764
do_test like-2.100.1 {
sl@0
   765
  db eval "SELECT x FROM t1 WHERE y LIKE 'd%'"
sl@0
   766
} {68 100}
sl@0
   767
do_test like-2.100.2 {
sl@0
   768
  db eval "SELECT x FROM t2 WHERE y LIKE 'd%'"
sl@0
   769
} {68 100}
sl@0
   770
do_test like-2.100.3 {
sl@0
   771
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcd%'"
sl@0
   772
} {68 100}
sl@0
   773
do_test like-2.101.1 {
sl@0
   774
  db eval "SELECT x FROM t1 WHERE y LIKE 'e%'"
sl@0
   775
} {69 101}
sl@0
   776
do_test like-2.101.2 {
sl@0
   777
  db eval "SELECT x FROM t2 WHERE y LIKE 'e%'"
sl@0
   778
} {69 101}
sl@0
   779
do_test like-2.101.3 {
sl@0
   780
  db eval "SELECT x FROM t3 WHERE y LIKE 'abce%'"
sl@0
   781
} {69 101}
sl@0
   782
do_test like-2.102.1 {
sl@0
   783
  db eval "SELECT x FROM t1 WHERE y LIKE 'f%'"
sl@0
   784
} {70 102}
sl@0
   785
do_test like-2.102.2 {
sl@0
   786
  db eval "SELECT x FROM t2 WHERE y LIKE 'f%'"
sl@0
   787
} {70 102}
sl@0
   788
do_test like-2.102.3 {
sl@0
   789
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcf%'"
sl@0
   790
} {70 102}
sl@0
   791
do_test like-2.103.1 {
sl@0
   792
  db eval "SELECT x FROM t1 WHERE y LIKE 'g%'"
sl@0
   793
} {71 103}
sl@0
   794
do_test like-2.103.2 {
sl@0
   795
  db eval "SELECT x FROM t2 WHERE y LIKE 'g%'"
sl@0
   796
} {71 103}
sl@0
   797
do_test like-2.103.3 {
sl@0
   798
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcg%'"
sl@0
   799
} {71 103}
sl@0
   800
do_test like-2.104.1 {
sl@0
   801
  db eval "SELECT x FROM t1 WHERE y LIKE 'h%'"
sl@0
   802
} {72 104}
sl@0
   803
do_test like-2.104.2 {
sl@0
   804
  db eval "SELECT x FROM t2 WHERE y LIKE 'h%'"
sl@0
   805
} {72 104}
sl@0
   806
do_test like-2.104.3 {
sl@0
   807
  db eval "SELECT x FROM t3 WHERE y LIKE 'abch%'"
sl@0
   808
} {72 104}
sl@0
   809
do_test like-2.105.1 {
sl@0
   810
  db eval "SELECT x FROM t1 WHERE y LIKE 'i%'"
sl@0
   811
} {73 105}
sl@0
   812
do_test like-2.105.2 {
sl@0
   813
  db eval "SELECT x FROM t2 WHERE y LIKE 'i%'"
sl@0
   814
} {73 105}
sl@0
   815
do_test like-2.105.3 {
sl@0
   816
  db eval "SELECT x FROM t3 WHERE y LIKE 'abci%'"
sl@0
   817
} {73 105}
sl@0
   818
do_test like-2.106.1 {
sl@0
   819
  db eval "SELECT x FROM t1 WHERE y LIKE 'j%'"
sl@0
   820
} {74 106}
sl@0
   821
do_test like-2.106.2 {
sl@0
   822
  db eval "SELECT x FROM t2 WHERE y LIKE 'j%'"
sl@0
   823
} {74 106}
sl@0
   824
do_test like-2.106.3 {
sl@0
   825
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcj%'"
sl@0
   826
} {74 106}
sl@0
   827
do_test like-2.107.1 {
sl@0
   828
  db eval "SELECT x FROM t1 WHERE y LIKE 'k%'"
sl@0
   829
} {75 107}
sl@0
   830
do_test like-2.107.2 {
sl@0
   831
  db eval "SELECT x FROM t2 WHERE y LIKE 'k%'"
sl@0
   832
} {75 107}
sl@0
   833
do_test like-2.107.3 {
sl@0
   834
  db eval "SELECT x FROM t3 WHERE y LIKE 'abck%'"
sl@0
   835
} {75 107}
sl@0
   836
do_test like-2.108.1 {
sl@0
   837
  db eval "SELECT x FROM t1 WHERE y LIKE 'l%'"
sl@0
   838
} {76 108}
sl@0
   839
do_test like-2.108.2 {
sl@0
   840
  db eval "SELECT x FROM t2 WHERE y LIKE 'l%'"
sl@0
   841
} {76 108}
sl@0
   842
do_test like-2.108.3 {
sl@0
   843
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcl%'"
sl@0
   844
} {76 108}
sl@0
   845
do_test like-2.109.1 {
sl@0
   846
  db eval "SELECT x FROM t1 WHERE y LIKE 'm%'"
sl@0
   847
} {77 109}
sl@0
   848
do_test like-2.109.2 {
sl@0
   849
  db eval "SELECT x FROM t2 WHERE y LIKE 'm%'"
sl@0
   850
} {77 109}
sl@0
   851
do_test like-2.109.3 {
sl@0
   852
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcm%'"
sl@0
   853
} {77 109}
sl@0
   854
do_test like-2.110.1 {
sl@0
   855
  db eval "SELECT x FROM t1 WHERE y LIKE 'n%'"
sl@0
   856
} {78 110}
sl@0
   857
do_test like-2.110.2 {
sl@0
   858
  db eval "SELECT x FROM t2 WHERE y LIKE 'n%'"
sl@0
   859
} {78 110}
sl@0
   860
do_test like-2.110.3 {
sl@0
   861
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcn%'"
sl@0
   862
} {78 110}
sl@0
   863
do_test like-2.111.1 {
sl@0
   864
  db eval "SELECT x FROM t1 WHERE y LIKE 'o%'"
sl@0
   865
} {79 111}
sl@0
   866
do_test like-2.111.2 {
sl@0
   867
  db eval "SELECT x FROM t2 WHERE y LIKE 'o%'"
sl@0
   868
} {79 111}
sl@0
   869
do_test like-2.111.3 {
sl@0
   870
  db eval "SELECT x FROM t3 WHERE y LIKE 'abco%'"
sl@0
   871
} {79 111}
sl@0
   872
do_test like-2.112.1 {
sl@0
   873
  db eval "SELECT x FROM t1 WHERE y LIKE 'p%'"
sl@0
   874
} {80 112}
sl@0
   875
do_test like-2.112.2 {
sl@0
   876
  db eval "SELECT x FROM t2 WHERE y LIKE 'p%'"
sl@0
   877
} {80 112}
sl@0
   878
do_test like-2.112.3 {
sl@0
   879
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcp%'"
sl@0
   880
} {80 112}
sl@0
   881
do_test like-2.113.1 {
sl@0
   882
  db eval "SELECT x FROM t1 WHERE y LIKE 'q%'"
sl@0
   883
} {81 113}
sl@0
   884
do_test like-2.113.2 {
sl@0
   885
  db eval "SELECT x FROM t2 WHERE y LIKE 'q%'"
sl@0
   886
} {81 113}
sl@0
   887
do_test like-2.113.3 {
sl@0
   888
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcq%'"
sl@0
   889
} {81 113}
sl@0
   890
do_test like-2.114.1 {
sl@0
   891
  db eval "SELECT x FROM t1 WHERE y LIKE 'r%'"
sl@0
   892
} {82 114}
sl@0
   893
do_test like-2.114.2 {
sl@0
   894
  db eval "SELECT x FROM t2 WHERE y LIKE 'r%'"
sl@0
   895
} {82 114}
sl@0
   896
do_test like-2.114.3 {
sl@0
   897
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcr%'"
sl@0
   898
} {82 114}
sl@0
   899
do_test like-2.115.1 {
sl@0
   900
  db eval "SELECT x FROM t1 WHERE y LIKE 's%'"
sl@0
   901
} {83 115}
sl@0
   902
do_test like-2.115.2 {
sl@0
   903
  db eval "SELECT x FROM t2 WHERE y LIKE 's%'"
sl@0
   904
} {83 115}
sl@0
   905
do_test like-2.115.3 {
sl@0
   906
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcs%'"
sl@0
   907
} {83 115}
sl@0
   908
do_test like-2.116.1 {
sl@0
   909
  db eval "SELECT x FROM t1 WHERE y LIKE 't%'"
sl@0
   910
} {84 116}
sl@0
   911
do_test like-2.116.2 {
sl@0
   912
  db eval "SELECT x FROM t2 WHERE y LIKE 't%'"
sl@0
   913
} {84 116}
sl@0
   914
do_test like-2.116.3 {
sl@0
   915
  db eval "SELECT x FROM t3 WHERE y LIKE 'abct%'"
sl@0
   916
} {84 116}
sl@0
   917
do_test like-2.117.1 {
sl@0
   918
  db eval "SELECT x FROM t1 WHERE y LIKE 'u%'"
sl@0
   919
} {85 117}
sl@0
   920
do_test like-2.117.2 {
sl@0
   921
  db eval "SELECT x FROM t2 WHERE y LIKE 'u%'"
sl@0
   922
} {85 117}
sl@0
   923
do_test like-2.117.3 {
sl@0
   924
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcu%'"
sl@0
   925
} {85 117}
sl@0
   926
do_test like-2.118.1 {
sl@0
   927
  db eval "SELECT x FROM t1 WHERE y LIKE 'v%'"
sl@0
   928
} {86 118}
sl@0
   929
do_test like-2.118.2 {
sl@0
   930
  db eval "SELECT x FROM t2 WHERE y LIKE 'v%'"
sl@0
   931
} {86 118}
sl@0
   932
do_test like-2.118.3 {
sl@0
   933
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcv%'"
sl@0
   934
} {86 118}
sl@0
   935
do_test like-2.119.1 {
sl@0
   936
  db eval "SELECT x FROM t1 WHERE y LIKE 'w%'"
sl@0
   937
} {87 119}
sl@0
   938
do_test like-2.119.2 {
sl@0
   939
  db eval "SELECT x FROM t2 WHERE y LIKE 'w%'"
sl@0
   940
} {87 119}
sl@0
   941
do_test like-2.119.3 {
sl@0
   942
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcw%'"
sl@0
   943
} {87 119}
sl@0
   944
do_test like-2.120.1 {
sl@0
   945
  db eval "SELECT x FROM t1 WHERE y LIKE 'x%'"
sl@0
   946
} {88 120}
sl@0
   947
do_test like-2.120.2 {
sl@0
   948
  db eval "SELECT x FROM t2 WHERE y LIKE 'x%'"
sl@0
   949
} {88 120}
sl@0
   950
do_test like-2.120.3 {
sl@0
   951
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcx%'"
sl@0
   952
} {88 120}
sl@0
   953
do_test like-2.121.1 {
sl@0
   954
  db eval "SELECT x FROM t1 WHERE y LIKE 'y%'"
sl@0
   955
} {89 121}
sl@0
   956
do_test like-2.121.2 {
sl@0
   957
  db eval "SELECT x FROM t2 WHERE y LIKE 'y%'"
sl@0
   958
} {89 121}
sl@0
   959
do_test like-2.121.3 {
sl@0
   960
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcy%'"
sl@0
   961
} {89 121}
sl@0
   962
do_test like-2.122.1 {
sl@0
   963
  db eval "SELECT x FROM t1 WHERE y LIKE 'z%'"
sl@0
   964
} {90 122}
sl@0
   965
do_test like-2.122.2 {
sl@0
   966
  db eval "SELECT x FROM t2 WHERE y LIKE 'z%'"
sl@0
   967
} {90 122}
sl@0
   968
do_test like-2.122.3 {
sl@0
   969
  db eval "SELECT x FROM t3 WHERE y LIKE 'abcz%'"
sl@0
   970
} {90 122}
sl@0
   971
do_test like-2.123.1 {
sl@0
   972
  db eval "SELECT x FROM t1 WHERE y LIKE '\173%'"
sl@0
   973
} {123}
sl@0
   974
do_test like-2.123.2 {
sl@0
   975
  db eval "SELECT x FROM t2 WHERE y LIKE '\173%'"
sl@0
   976
} {123}
sl@0
   977
do_test like-2.123.3 {
sl@0
   978
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\173%'"
sl@0
   979
} {123}
sl@0
   980
do_test like-2.124.1 {
sl@0
   981
  db eval "SELECT x FROM t1 WHERE y LIKE '|%'"
sl@0
   982
} {124}
sl@0
   983
do_test like-2.124.2 {
sl@0
   984
  db eval "SELECT x FROM t2 WHERE y LIKE '|%'"
sl@0
   985
} {124}
sl@0
   986
do_test like-2.124.3 {
sl@0
   987
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc|%'"
sl@0
   988
} {124}
sl@0
   989
do_test like-2.125.1 {
sl@0
   990
  db eval "SELECT x FROM t1 WHERE y LIKE '\175%'"
sl@0
   991
} {125}
sl@0
   992
do_test like-2.125.2 {
sl@0
   993
  db eval "SELECT x FROM t2 WHERE y LIKE '\175%'"
sl@0
   994
} {125}
sl@0
   995
do_test like-2.125.3 {
sl@0
   996
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc\175%'"
sl@0
   997
} {125}
sl@0
   998
do_test like-2.126.1 {
sl@0
   999
  db eval "SELECT x FROM t1 WHERE y LIKE '~%'"
sl@0
  1000
} {126}
sl@0
  1001
do_test like-2.126.2 {
sl@0
  1002
  db eval "SELECT x FROM t2 WHERE y LIKE '~%'"
sl@0
  1003
} {126}
sl@0
  1004
do_test like-2.126.3 {
sl@0
  1005
  db eval "SELECT x FROM t3 WHERE y LIKE 'abc~%'"
sl@0
  1006
} {126}
sl@0
  1007
sl@0
  1008
sl@0
  1009
finish_test