summaryrefslogtreecommitdiff
path: root/sql/sql_servers.cc
diff options
context:
space:
mode:
authorunknown <tsmith@quadxeon.mysql.com>2007-03-08 02:00:21 +0100
committerunknown <tsmith@quadxeon.mysql.com>2007-03-08 02:00:21 +0100
commit441cae69964cbdd4b2a5e64c2ddfa7c2fe53fd4b (patch)
tree9b4d00b8a1e82914e45546deb67a39f878adae24 /sql/sql_servers.cc
parente7362d5c32e4c8dc606021bc061da31e02167127 (diff)
downloadmariadb-git-441cae69964cbdd4b2a5e64c2ddfa7c2fe53fd4b.tar.gz
Bug #26940: CREATE SERVER does not initialize record[0] in insert_server_record()
sql_servers.cc:insert_server_record(): initialize record[0] before inserting row sql/sql_servers.cc: sql_servers.cc:insert_server_record(): initialize record[0] before inserting row
Diffstat (limited to 'sql/sql_servers.cc')
-rw-r--r--sql/sql_servers.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_servers.cc b/sql/sql_servers.cc
index 5fa97dc5c2b..9a5176d9fe3 100644
--- a/sql/sql_servers.cc
+++ b/sql/sql_servers.cc
@@ -545,6 +545,8 @@ int insert_server_record(TABLE *table, FOREIGN_SERVER *server)
DBUG_ENTER("insert_server_record");
table->use_all_columns();
+ empty_record(table);
+
/* set the field that's the PK to the value we're looking for */
table->field[0]->store(server->server_name,
server->server_name_length,