File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1463,7 +1463,7 @@ Limit LimitWithOffset():
14631463}
14641464{
14651465 (
1466- LOOKAHEAD(3 )
1466+ LOOKAHEAD(5 )
14671467 // mysql-> LIMIT offset,row_count
14681468 <K_LIMIT>
14691469 (
Original file line number Diff line number Diff line change @@ -497,6 +497,11 @@ public void testLimitSqlServerJdbcParameters() throws JSQLParserException {
497497 assertTrue (((PlainSelect ) select .getSelectBody ()).getFetch ().isFetchJdbcParameter ());
498498 assertStatementCanBeDeparsedAs (select , statement );
499499 }
500+
501+ public void testLimitPR404 () throws JSQLParserException {
502+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE mytable.col = 9 LIMIT ?1" );
503+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE mytable.col = 9 LIMIT :param_name" );
504+ }
500505
501506 public void testTop () throws JSQLParserException {
502507 String statement = "SELECT TOP 3 * FROM mytable WHERE mytable.col = 9" ;
You can’t perform that action at this time.
0 commit comments