diff --git a/t/lib/QueryRewriter.t b/t/lib/QueryRewriter.t index eb07fe98..68a19d00 100644 --- a/t/lib/QueryRewriter.t +++ b/t/lib/QueryRewriter.t @@ -1412,6 +1412,28 @@ is( 'distills SELECT with REPLACE function (issue 1176)' ); +# LOAD DATA +# https://bugs.launchpad.net/percona-toolkit/+bug/821692 +# INSERT and REPLACE without INTO +# https://bugs.launchpad.net/percona-toolkit/+bug/984053 +is( + $qr->distill("LOAD DATA LOW_PRIORITY LOCAL INFILE 'file' INTO TABLE tbl"), + "LOAD DATA tbl", + "distill LOAD DATA (bug 821692)" +); + +is( + $qr->distill("insert ignore_bar (id) values (4029731)"), + "INSERT ignore_bar", + "distill INSERT without INTO (bug 984053)" +); + +is( + $qr->distill("replace ignore_bar (id) values (4029731)"), + "REPLACE ignore_bar", + "distill REPLACE without INTO (bug 984053)" +); + # ############################################################################# # Done. # #############################################################################