~percona-core/percona-toolkit/release-2.2.8-v2

« back to all changes in this revision

Viewing changes to t/lib/QueryRewriter.t

Merge pt-query-digest-does-not-fingerprint-true-false-literals-correctly-965553.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
   "Fingerprint /* -- comment */ SELECT (bug 1174956)"
417
417
);
418
418
 
 
419
 
 
420
# issue 965553
 
421
 
 
422
is(
 
423
   $qr->fingerprint('SELECT * FROM tbl WHERE id=1 AND flag=true AND trueflag=FALSE'),
 
424
   'select * from tbl where id=? and flag=? and trueflag=?',
 
425
   'boolean values abstracted correctly',
 
426
);
 
427
 
 
428
 
419
429
# #############################################################################
420
430
# convert_to_select()
421
431
# #############################################################################
1454
1464
   "distill CREATE TABLE IF NOT EXISTS foo",
1455
1465
);
1456
1466
 
 
1467
 
 
1468
 
1457
1469
# #############################################################################
1458
1470
# Done.
1459
1471
# #############################################################################