summaryrefslogtreecommitdiff
path: root/sql/sql_type.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-07-14 18:36:05 +0300
committerSergei Golubchik <serg@mariadb.org>2021-05-19 22:27:27 +0200
commitaee84453ab6befef296afdf8e66a8e295b624c72 (patch)
tree8af9ab2b4062276ac060087c9fdfc39cee82ab50 /sql/sql_type.cc
parent78a0fe792aeebe00b79fe4f07afe584377b180ed (diff)
downloadmariadb-git-aee84453ab6befef296afdf8e66a8e295b624c72.tar.gz
MDEV-23001 Precreate static Item_bool() to simplify code
The following changes where done: - Create global Item: Item_false and Item_true - Replace all creation if 'FALSE' and 'TRUE' top level items used for WHERE/HAVING/ON clauses to use Item_false and Item_true. The benefit are: - Less and faster code - No test needed if we where able to create the new item. - Fixed possible errors if 'new' would have failed for the Item_bool's fixup! 470277728d2e27fe057cf33a437a9e40e1a04b61
Diffstat (limited to 'sql/sql_type.cc')
0 files changed, 0 insertions, 0 deletions