Skip to content

Commit

Permalink
Add empty statement back with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 3, 2023
1 parent de7dc8d commit ab90eb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mysql.xs
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ dbd_mysql_get_info(dbh, sql_info_type)
retsv = newSVpvn("`", 1);
break;
case SQL_MAXIMUM_STATEMENT_LENGTH:
; /* avoid "a label can only be part of a statement and a declaration is not a statement" */
unsigned long buffer_len;
mysql_get_option(NULL, MYSQL_OPT_NET_BUFFER_LENGTH, &buffer_len);
retsv = newSViv(buffer_len);
Expand Down

0 comments on commit ab90eb7

Please sign in to comment.