From cce1420736f40367ae119eef80ebd8e7d859f6f7 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Sat, 3 Aug 2013 10:50:17 -0700 Subject: [PATCH] Failing test cases for bug 821692 and bug 984053. --- t/lib/QueryRewriter.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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. # #############################################################################