summaryrefslogtreecommitdiff
path: root/sql/protocol_cursor.cc
diff options
context:
space:
mode:
authorunknown <georg@lmy002.wdf.sap.corp>2005-07-22 08:11:23 +0200
committerunknown <georg@lmy002.wdf.sap.corp>2005-07-22 08:11:23 +0200
commit0c17b6ed37011ba2997f129f2b32f811a397eab5 (patch)
tree0cd28a8bd2ae1cda1d91c17e33727641a2607559 /sql/protocol_cursor.cc
parent17725b9d6d1ba6a1d5b151045c9edd4fb163945e (diff)
downloadmariadb-git-0c17b6ed37011ba2997f129f2b32f811a397eab5.tar.gz
fix for bug#8692
mysql-test/r/sp.result: added expected result for bug #8692 mysql-test/t/sp.test: added testcase for bug #8692 sql/protocol_cursor.cc: fixed detecting of null fields: A field contains a null value only if length is NULL_LENGTH
Diffstat (limited to 'sql/protocol_cursor.cc')
-rw-r--r--sql/protocol_cursor.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/protocol_cursor.cc b/sql/protocol_cursor.cc
index ed2d0b583d0..093a2bf2b90 100644
--- a/sql/protocol_cursor.cc
+++ b/sql/protocol_cursor.cc
@@ -114,8 +114,7 @@ bool Protocol_cursor::write()
for (; cur_field < fields_end; cur_field++, data_tmp++)
{
- if ((len= net_field_length((uchar **)&cp)) == 0 ||
- len == NULL_LENGTH)
+ if ((len= net_field_length((uchar **)&cp)) == NULL_LENGTH)
{
*data_tmp= 0;
}