=== modified file 'lib/QueryParser.pm' --- lib/QueryParser.pm 2012-01-19 19:46:56 +0000 +++ lib/QueryParser.pm 2012-04-10 12:19:46 +0000 @@ -35,7 +35,7 @@ # their proximity to keywords. (? 'all'; -use Test::More tests => 135; +use Test::More tests => 139; use English qw(-no_match_vars); use QueryRewriter; @@ -389,6 +389,24 @@ ); test_query( + 'INSERT foo VALUES (1)', + { DATABASE => {}, + TABLE => { foo => 'foo', } + }, + [qw(foo)], + 'insert with one not aliased, without into keyword', +); + +test_query( + 'INSERT ignore_foo VALUES (1)', + { DATABASE => {}, + TABLE => { ignore_foo => 'ignore_foo', } + }, + [qw(ignore_foo)], + 'insert with one not aliased, table prefixed with keyword', +); + +test_query( 'INSERT INTO foo VALUES (1) ON DUPLICATE KEY UPDATE bar = 1', { DATABASE => {}, TABLE => { foo => 'foo', },