From 0c17b6ed37011ba2997f129f2b32f811a397eab5 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Jul 2005 08:11:23 +0200 Subject: 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 --- sql/protocol_cursor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sql/protocol_cursor.cc') 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; } -- cgit v1.2.1