diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-08-15 16:48:13 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-08-15 16:48:13 +0200 |
commit | bcc677bb7264db08b22284998706b44c377ed8ec (patch) | |
tree | edbffbf3a801c0fcc26f6bb6a0fc0b62d151fc87 /sql/item_cmpfunc.cc | |
parent | b62ac161856570e9a0e92d17de1e3dd31d54410f (diff) | |
parent | 1b797e9e6308913c2472f3e04ad253e95a35d59f (diff) | |
download | mariadb-git-bcc677bb7264db08b22284998706b44c377ed8ec.tar.gz |
Merge branch '5.5' into 10.0
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 410d58bdc29..49bbee9edd2 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -4927,6 +4927,19 @@ Item *and_expressions(Item *a, Item *b, Item **org_item) } +void Item_func_isnull::print(String *str, enum_query_type query_type) +{ + str->append(func_name()); + str->append('('); + if (const_item() && !args[0]->maybe_null && + !(query_type & (QT_NO_DATA_EXPANSION | QT_VIEW_INTERNAL))) + str->append("/*always not null*/ 1"); + else + args[0]->print(str, query_type); + str->append(')'); +} + + longlong Item_func_isnull::val_int() { DBUG_ASSERT(fixed == 1); |