diff options
author | pem@mysql.comhem.se <> | 2004-09-10 16:28:11 +0200 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-09-10 16:28:11 +0200 |
commit | 728000b22514f97cca66126c6f9e86a5ce7a0d61 (patch) | |
tree | ff8b7de4aa2beb41f5797fa160bf00b13fd14840 /sql/protocol_cursor.cc | |
parent | 4cb65274213e4cc844c7c92936e41c0a33188c0d (diff) | |
download | mariadb-git-728000b22514f97cca66126c6f9e86a5ce7a0d61.tar.gz |
Fixed BUG#4941: Stored procedure crash fetching null value into variable.
Diffstat (limited to 'sql/protocol_cursor.cc')
-rw-r--r-- | sql/protocol_cursor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/protocol_cursor.cc b/sql/protocol_cursor.cc index 31eaa894045..8904aba7b88 100644 --- a/sql/protocol_cursor.cc +++ b/sql/protocol_cursor.cc @@ -112,7 +112,8 @@ bool Protocol_cursor::write() for (; cur_field < fields_end; ++cur_field, ++data_tmp) { - if ((len= net_field_length((uchar **)&cp)) == 0) + if ((len= net_field_length((uchar **)&cp)) == 0 || + len == NULL_LENGTH) { *data_tmp= 0; } |