Skip to content

Commit

Permalink
fixup! Stop parsing a column named "limits" as the LIMIT keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
choroba committed Dec 12, 2024
1 parent ac40aec commit 701c868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbdimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ static char *parse_params(

/* in case this is a nested LIMIT */
case ')':
/* in case this is table named "limit" */
/* in case this is a column named "limit" */
case '=':
limit_flag = FALSE;
*ptr++ = *statement_ptr++;
Expand Down
2 changes: 1 addition & 1 deletion t/35limit.t
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SQL

ok($dbh->do("DROP TABLE dbd_mysql_t35"));

# Issue #205: A table named "limits" shouldn't be parsed as LIMIT.
# Issue #205: A column named "limits" shouldn't be parsed as LIMIT.
my $limits = 500;
my $flag = 1;
my $id = 1;
Expand Down

0 comments on commit 701c868

Please sign in to comment.