uqa-sql 0.5.4

PostgreSQL-compatible SQL compiler built on libpg_query
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
[
  {
    "base": "text",
    "check": "VALUE LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~ 'a%'::text)",
    "pretty": "VALUE ~~ 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE NOT LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1210 :opfuncid 851 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~ 'a%'::text)",
    "pretty": "VALUE !~~ 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1627 :opfuncid 1633 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~* 'a%'::text)",
    "pretty": "VALUE ~~* 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE NOT ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1628 :opfuncid 1634 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~* 'a%'::text)",
    "pretty": "VALUE !~~* 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE LIKE 'a!_%' ESCAPE '!'",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape('a!_%'::text, '!'::text))",
    "pretty": "VALUE ~~ like_escape('a!_%'::text, '!'::text)"
  },
  {
    "base": "text",
    "check": "VALUE SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 641 :opfuncid 1254 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~ similar_to_escape('a%'::text))",
    "pretty": "VALUE ~ similar_to_escape('a%'::text)"
  },
  {
    "base": "text",
    "check": "VALUE NOT SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 642 :opfuncid 1256 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE !~ similar_to_escape('a%'::text))",
    "pretty": "VALUE !~ similar_to_escape('a%'::text)"
  },
  {
    "base": "text",
    "check": "VALUE ~ 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 641 :opfuncid 1254 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE ~ 'a'::text)",
    "pretty": "VALUE ~ 'a'::text"
  },
  {
    "base": "text",
    "check": "VALUE !~* 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 1229 :opfuncid 1239 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE !~* 'a'::text)",
    "pretty": "VALUE !~* 'a'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1211 :opfuncid 1631 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~ 'a%'::text)",
    "pretty": "VALUE ~~ 'a%'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE NOT LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1212 :opfuncid 1632 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~ 'a%'::text)",
    "pretty": "VALUE !~~ 'a%'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1629 :opfuncid 1660 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~* 'a%'::text)",
    "pretty": "VALUE ~~* 'a%'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE NOT ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1630 :opfuncid 1661 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~* 'a%'::text)",
    "pretty": "VALUE !~~* 'a%'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE LIKE 'a!_%' ESCAPE '!'",
    "error": null,
    "conbin": "{OPEXPR :opno 1211 :opfuncid 1631 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape('a!_%'::text, '!'::text))",
    "pretty": "VALUE ~~ like_escape('a!_%'::text, '!'::text)"
  },
  {
    "base": "character(8)",
    "check": "VALUE SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1055 :opfuncid 1658 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~ similar_to_escape('a%'::text))",
    "pretty": "VALUE ~ similar_to_escape('a%'::text)"
  },
  {
    "base": "character(8)",
    "check": "VALUE NOT SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1056 :opfuncid 1659 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE !~ similar_to_escape('a%'::text))",
    "pretty": "VALUE !~ similar_to_escape('a%'::text)"
  },
  {
    "base": "character(8)",
    "check": "VALUE ~ 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 1055 :opfuncid 1658 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE ~ 'a'::text)",
    "pretty": "VALUE ~ 'a'::text"
  },
  {
    "base": "character(8)",
    "check": "VALUE !~* 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 1235 :opfuncid 1657 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE !~* 'a'::text)",
    "pretty": "VALUE !~* 'a'::text"
  },
  {
    "base": "name",
    "check": "VALUE LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1207 :opfuncid 858 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~ 'a%'::text)",
    "pretty": "VALUE ~~ 'a%'::text"
  },
  {
    "base": "name",
    "check": "VALUE NOT LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1208 :opfuncid 859 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~ 'a%'::text)",
    "pretty": "VALUE !~~ 'a%'::text"
  },
  {
    "base": "name",
    "check": "VALUE ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1625 :opfuncid 1635 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~* 'a%'::text)",
    "pretty": "VALUE ~~* 'a%'::text"
  },
  {
    "base": "name",
    "check": "VALUE NOT ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1626 :opfuncid 1636 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~* 'a%'::text)",
    "pretty": "VALUE !~~* 'a%'::text"
  },
  {
    "base": "name",
    "check": "VALUE LIKE 'a!_%' ESCAPE '!'",
    "error": null,
    "conbin": "{OPEXPR :opno 1207 :opfuncid 858 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape('a!_%'::text, '!'::text))",
    "pretty": "VALUE ~~ like_escape('a!_%'::text, '!'::text)"
  },
  {
    "base": "name",
    "check": "VALUE SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 639 :opfuncid 79 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~ similar_to_escape('a%'::text))",
    "pretty": "VALUE ~ similar_to_escape('a%'::text)"
  },
  {
    "base": "name",
    "check": "VALUE NOT SIMILAR TO 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 640 :opfuncid 1252 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(VALUE !~ similar_to_escape('a%'::text))",
    "pretty": "VALUE !~ similar_to_escape('a%'::text)"
  },
  {
    "base": "name",
    "check": "VALUE ~ 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 639 :opfuncid 79 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE ~ 'a'::text)",
    "pretty": "VALUE ~ 'a'::text"
  },
  {
    "base": "name",
    "check": "VALUE !~* 'a'",
    "error": null,
    "conbin": "{OPEXPR :opno 1227 :opfuncid 1241 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 97 ]}) :location -1}",
    "sql": "(VALUE !~* 'a'::text)",
    "pretty": "VALUE !~* 'a'::text"
  },
  {
    "base": "bytea",
    "check": "VALUE LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 2016 :opfuncid 2005 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~ '\\x6125'::bytea)",
    "pretty": "VALUE ~~ '\\x6125'::bytea"
  },
  {
    "base": "bytea",
    "check": "VALUE NOT LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 2017 :opfuncid 2006 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE !~~ '\\x6125'::bytea)",
    "pretty": "VALUE !~~ '\\x6125'::bytea"
  },
  {
    "base": "bytea",
    "check": "VALUE ILIKE 'a%'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea ~~* unknown",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE NOT ILIKE 'a%'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea !~~* unknown",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE LIKE 'a!_%' ESCAPE '!'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea ~~ text",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE SIMILAR TO 'a%'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea ~ text",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE NOT SIMILAR TO 'a%'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea !~ text",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE ~ 'a'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea ~ unknown",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "bytea",
    "check": "VALUE !~* 'a'",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: bytea !~* unknown",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "text",
    "check": "VALUE LIKE NULL",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>}) :location -1}",
    "sql": "(VALUE ~~ NULL::text)",
    "pretty": "VALUE ~~ NULL::text"
  },
  {
    "base": "text",
    "check": "VALUE LIKE NULL::text ESCAPE NULL",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape(NULL::text, NULL::text))",
    "pretty": "VALUE ~~ like_escape(NULL::text, NULL::text)"
  },
  {
    "base": "text",
    "check": "VALUE ILIKE 'a!_%' ESCAPE '!'",
    "error": null,
    "conbin": "{OPEXPR :opno 1627 :opfuncid 1633 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~~* like_escape('a!_%'::text, '!'::text))",
    "pretty": "VALUE ~~* like_escape('a!_%'::text, '!'::text)"
  },
  {
    "base": "text",
    "check": "VALUE SIMILAR TO 'a!_%' ESCAPE '!'",
    "error": null,
    "conbin": "{OPEXPR :opno 641 :opfuncid 1254 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1986 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~ similar_to_escape('a!_%'::text, '!'::text))",
    "pretty": "VALUE ~ similar_to_escape('a!_%'::text, '!'::text)"
  },
  {
    "base": "text",
    "check": "VALUE LIKE 'a%' COLLATE \"C\"",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {COLLATEEXPR :arg {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]} :collOid 950 :location -1}) :location -1}",
    "sql": "(VALUE ~~ ('a%'::text COLLATE \"C\"))",
    "pretty": "VALUE ~~ ('a%'::text COLLATE \"C\")"
  },
  {
    "base": "text",
    "check": "(NULL LIKE NULL) IS NULL",
    "error": null,
    "conbin": "{NULLTEST :arg {OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>}) :location -1} :nulltesttype 0 :argisrow false :location -1}",
    "sql": "((NULL::text ~~ NULL::text) IS NULL)",
    "pretty": "(NULL::text ~~ NULL::text) IS NULL"
  },
  {
    "base": "text",
    "check": "VALUE LIKE 1",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: text ~~ integer",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "text",
    "check": "1 LIKE VALUE",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: integer ~~ text",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "text",
    "check": "VALUE ILIKE true",
    "error": {
      "sqlstate": "42883",
      "message": "operator does not exist: text ~~* boolean",
      "detail": null,
      "hint": "No operator matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "text",
    "check": "VALUE LIKE 'a%' ESCAPE 1",
    "error": {
      "sqlstate": "42883",
      "message": "function pg_catalog.like_escape(unknown, integer) does not exist",
      "detail": null,
      "hint": "No function matches the given name and argument types. You might need to add explicit type casts."
    }
  },
  {
    "base": "character varying(8)",
    "check": "VALUE LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text ~~ 'a%'::text)",
    "pretty": "VALUE::text ~~ 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE NOT LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1210 :opfuncid 851 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text !~~ 'a%'::text)",
    "pretty": "VALUE::text !~~ 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1627 :opfuncid 1633 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text ~~* 'a%'::text)",
    "pretty": "VALUE::text ~~* 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE NOT ILIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1628 :opfuncid 1634 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text !~~* 'a%'::text)",
    "pretty": "VALUE::text !~~* 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE ~ 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 641 :opfuncid 1254 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text ~ 'a%'::text)",
    "pretty": "VALUE::text ~ 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE !~ 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 642 :opfuncid 1256 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text !~ 'a%'::text)",
    "pretty": "VALUE::text !~ 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE ~* 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1228 :opfuncid 1238 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text ~* 'a%'::text)",
    "pretty": "VALUE::text ~* 'a%'::text"
  },
  {
    "base": "character varying(8)",
    "check": "VALUE !~* 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1229 :opfuncid 1239 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({RELABELTYPE :arg {COERCETODOMAINVALUE :typeId 1043 :typeMod 12 :collation 100 :location -1} :resulttype 25 :resulttypmod -1 :resultcollid 100 :relabelformat 2 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "((VALUE)::text !~* 'a%'::text)",
    "pretty": "VALUE::text !~* 'a%'::text"
  },
  {
    "base": "text",
    "check": "NOT (VALUE LIKE 'a%')",
    "error": null,
    "conbin": "{BOOLEXPR :boolop not :args ({OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "(NOT (VALUE ~~ 'a%'::text))",
    "pretty": "NOT VALUE ~~ 'a%'::text"
  },
  {
    "base": "text",
    "check": "NOT (VALUE SIMILAR TO 'a%')",
    "error": null,
    "conbin": "{BOOLEXPR :boolop not :args ({OPEXPR :opno 641 :opfuncid 1254 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {FUNCEXPR :funcid 1987 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}) :location -1}",
    "sql": "(NOT (VALUE ~ similar_to_escape('a%'::text)))",
    "pretty": "NOT VALUE ~ similar_to_escape('a%'::text)"
  },
  {
    "base": "text",
    "check": "NOT (VALUE ~* 'A')",
    "error": null,
    "conbin": "{BOOLEXPR :boolop not :args ({OPEXPR :opno 1228 :opfuncid 1238 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 65 ]}) :location -1}) :location -1}",
    "sql": "(NOT (VALUE ~* 'A'::text))",
    "pretty": "NOT VALUE ~* 'A'::text"
  },
  {
    "base": "text",
    "check": "pg_catalog.like(VALUE, 'a%')",
    "error": null,
    "conbin": "{FUNCEXPR :funcid 1569 :funcresulttype 16 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "\"like\"(VALUE, 'a%'::text)",
    "pretty": "\"like\"(VALUE, 'a%'::text)"
  },
  {
    "base": "text",
    "check": "(VALUE LIKE 'a%') = pg_catalog.like(VALUE, 'a%')",
    "error": null,
    "conbin": "{OPEXPR :opno 91 :opfuncid 60 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1} {FUNCEXPR :funcid 1569 :funcresulttype 16 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}) :location -1}",
    "sql": "((VALUE ~~ 'a%'::text) = \"like\"(VALUE, 'a%'::text))",
    "pretty": "(VALUE ~~ 'a%'::text) = \"like\"(VALUE, 'a%'::text)"
  },
  {
    "base": "text",
    "check": "pg_catalog.like_escape(VALUE, '!') LIKE 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({FUNCEXPR :funcid 1637 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 0 :funccollid 100 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(like_escape(VALUE, '!'::text) ~~ 'a%'::text)",
    "pretty": "like_escape(VALUE, '!'::text) ~~ 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE OPERATOR(pg_catalog.~~) 'a%'",
    "error": null,
    "conbin": "{OPEXPR :opno 1209 :opfuncid 850 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 25 :typeMod -1 :collation 100 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "(VALUE ~~ 'a%'::text)",
    "pretty": "VALUE ~~ 'a%'::text"
  },
  {
    "base": "text",
    "check": "VALUE LIKE 'a%' COLLATE \"POSIX\" ESCAPE '!' COLLATE \"C\"",
    "error": {
      "sqlstate": "42P21",
      "message": "collation mismatch between explicit collations \"POSIX\" and \"C\"",
      "detail": null,
      "hint": null
    }
  },
  {
    "base": "bytea",
    "check": "VALUE LIKE 'a!_%'::bytea ESCAPE '!'::bytea",
    "error": null,
    "conbin": "{OPEXPR :opno 2016 :opfuncid 2005 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {FUNCEXPR :funcid 2009 :funcresulttype 17 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 0 :args ({CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape('\\x61215f25'::bytea, '\\x21'::bytea))",
    "pretty": "VALUE ~~ like_escape('\\x61215f25'::bytea, '\\x21'::bytea)"
  },
  {
    "base": "bytea",
    "check": "VALUE NOT LIKE 'a!_%'::bytea ESCAPE '!'::bytea",
    "error": null,
    "conbin": "{OPEXPR :opno 2017 :opfuncid 2006 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {FUNCEXPR :funcid 2009 :funcresulttype 17 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 0 :args ({CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 8 [ 32 0 0 0 97 33 95 37 ]} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 5 [ 20 0 0 0 33 ]}) :location -1}) :location -1}",
    "sql": "(VALUE !~~ like_escape('\\x61215f25'::bytea, '\\x21'::bytea))",
    "pretty": "VALUE !~~ like_escape('\\x61215f25'::bytea, '\\x21'::bytea)"
  },
  {
    "base": "bytea",
    "check": "VALUE LIKE NULL::bytea ESCAPE NULL::bytea",
    "error": null,
    "conbin": "{OPEXPR :opno 2016 :opfuncid 2005 :opresulttype 16 :opretset false :opcollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {FUNCEXPR :funcid 2009 :funcresulttype 17 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 0 :args ({CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull true :location -1 :constvalue <>}) :location -1}) :location -1}",
    "sql": "(VALUE ~~ like_escape(NULL::bytea, NULL::bytea))",
    "pretty": "VALUE ~~ like_escape(NULL::bytea, NULL::bytea)"
  },
  {
    "base": "bytea",
    "check": "pg_catalog.like(VALUE, 'a%'::bytea)",
    "error": null,
    "conbin": "{FUNCEXPR :funcid 2007 :funcresulttype 16 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 0 :args ({COERCETODOMAINVALUE :typeId 17 :typeMod -1 :collation 0 :location -1} {CONST :consttype 17 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "\"like\"(VALUE, '\\x6125'::bytea)",
    "pretty": "\"like\"(VALUE, '\\x6125'::bytea)"
  },
  {
    "base": "name",
    "check": "pg_catalog.like(VALUE, 'a%')",
    "error": null,
    "conbin": "{FUNCEXPR :funcid 1571 :funcresulttype 16 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 950 :args ({COERCETODOMAINVALUE :typeId 19 :typeMod -1 :collation 950 :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "\"like\"(VALUE, 'a%'::text)",
    "pretty": "\"like\"(VALUE, 'a%'::text)"
  },
  {
    "base": "character(8)",
    "check": "pg_catalog.like(VALUE, 'a%')",
    "error": null,
    "conbin": "{FUNCEXPR :funcid 1569 :funcresulttype 16 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 100 :args ({FUNCEXPR :funcid 401 :funcresulttype 25 :funcretset false :funcvariadic false :funcformat 2 :funccollid 100 :inputcollid 100 :args ({COERCETODOMAINVALUE :typeId 1042 :typeMod 12 :collation 100 :location -1}) :location -1} {CONST :consttype 25 :consttypmod -1 :constcollid 100 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 6 [ 24 0 0 0 97 37 ]}) :location -1}",
    "sql": "\"like\"((VALUE)::text, 'a%'::text)",
    "pretty": "\"like\"(VALUE::text, 'a%'::text)"
  }
]