We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb5ed6 commit 3a39483Copy full SHA for 3a39483
lib/MySQL_Session.cpp
@@ -4443,7 +4443,9 @@ int MySQL_Session::handler() {
4443
// NOTE: Update 'first_comment' with the the from the retrieved
4444
// 'stmt_info' from the found prepared statement. 'CurrentQuery' requires its
4445
// own copy of 'first_comment' because it will later be free by 'QueryInfo::end'.
4446
- CurrentQuery.QueryParserArgs.first_comment=strdup(stmt_info->first_comment);
+ if (stmt_info->first_comment) {
4447
+ CurrentQuery.QueryParserArgs.first_comment=strdup(stmt_info->first_comment);
4448
+ }
4449
previous_status.push(PROCESSING_STMT_EXECUTE);
4450
NEXT_IMMEDIATE(PROCESSING_STMT_PREPARE);
4451
if (CurrentQuery.stmt_global_id!=stmt_info->statement_id) {
0 commit comments