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
parent ba22ad70
...@@ -545,6 +545,8 @@ int insert_server_record(TABLE *table, FOREIGN_SERVER *server) ...@@ -545,6 +545,8 @@ int insert_server_record(TABLE *table, FOREIGN_SERVER *server)
DBUG_ENTER("insert_server_record"); DBUG_ENTER("insert_server_record");
table->use_all_columns(); table->use_all_columns();
empty_record(table);
/* set the field that's the PK to the value we're looking for */ /* set the field that's the PK to the value we're looking for */
table->field[0]->store(server->server_name, table->field[0]->store(server->server_name,
server->server_name_length, server->server_name_length,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment