diff options
author | unknown <bell@sanja.is.com.ua> | 2002-12-10 18:10:00 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-12-10 18:10:00 +0200 |
commit | 91d3e2b3b85f684e58968875af6290423dabd194 (patch) | |
tree | f6d9a309c74ab9c724ad61974a110e1cab4efb95 /sql/item_row.cc | |
parent | 6f88718fc9cffbb4cdff768de100691a70067272 (diff) | |
download | mariadb-git-91d3e2b3b85f684e58968875af6290423dabd194.tar.gz |
postreview fix (SCRUM)
NULL fixed
max_length fixed
layout fixed
mysql-test/r/row.result:
NULL fixed
mysql-test/t/row.test:
NULL fixed
sql/item.cc:
postreview fix
sql/item.h:
postreview fix
sql/item_cmpfunc.cc:
layout fix
postreview fix
max_length fix
NULL fixed
sql/item_cmpfunc.h:
postreview fix
sql/item_row.cc:
NULL fixed
sql/item_row.h:
NULL fixed
sql/sql_class.cc:
postreview fix
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r-- | sql/item_row.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc index e073f8e24e7..85a81a50256 100644 --- a/sql/item_row.cc +++ b/sql/item_row.cc @@ -81,3 +81,22 @@ bool Item_row::check_cols(uint c) } return 0; } + +bool Item_row::null_inside() +{ + for (uint i= 0; i < arg_count; i++) + { + if (items[i]->cols() > 1) + { + if (items[i]->null_inside()) + return 1; + } + else + { + items[i]->val_int(); + if (items[i]->null_value) + return 1; + } + } + return 0; +} |