Skip to content

Commit 60f046d

Browse files
grooverdanmariadb-YuchenPei
authored andcommitted
MDEV-35009: Initialize affected_rows in SQL service
The SQL service leaves the affected rows uninitialized. The initialization of the spider plugin that uses this service will fail under MSAN because there isn't an initialized value to return at the end of the query.
1 parent c626715 commit 60f046d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_prepare.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6485,6 +6485,7 @@ extern "C" MYSQL *mysql_real_connect_local(MYSQL *mysql)
64856485
new_thd->variables.wsrep_on= 0;
64866486
new_thd->client_capabilities= client_flag;
64876487
new_thd->variables.sql_log_bin= 0;
6488+
new_thd->affected_rows= 0;
64886489
new_thd->set_binlog_bit();
64896490
/*
64906491
TOSO: decide if we should turn the auditing off

0 commit comments

Comments
 (0)