diff options
author | unknown <konstantin@mysql.com> | 2004-12-19 20:28:52 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-12-19 20:28:52 +0300 |
commit | 6cbcd3423afd72961d7f04c5536426ba92e24db8 (patch) | |
tree | d32ac50112b34dccc913c17d97088d29bb14b1d5 /libmysqld | |
parent | b824756c00b235bc6825d561c833ffed2f2e0d38 (diff) | |
download | mariadb-git-6cbcd3423afd72961d7f04c5536426ba92e24db8.tar.gz |
Fix assertion failure in client_test when linked with the embedded
library: stmt_update_metadata (used when we update max_length
in mysql_stmt_store_result) needs valid row->length.
libmysqld/lib_sql.cc:
row->length is asserted to be valid in stmt_update_metadata
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 8092d87b97c..917bcada564 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -710,6 +710,7 @@ bool Protocol_prep::write() } cur->data= (MYSQL_ROW)(((char *)cur) + sizeof(MYSQL_ROWS)); memcpy(cur->data, packet->ptr()+1, packet->length()-1); + cur->length= packet->length(); /* To allow us to do sanity checks */ *data->prev_ptr= cur; data->prev_ptr= &cur->next; |