mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Many files:
After merge fix mysql-test/r/func_time.result: After merge fix mysql-test/r/func_concat.result: After merge fix mysql-test/r/cast.result: After merge fix sql/item_cmpfunc.h: After merge fix sql/item_cmpfunc.cc: After merge fix sql/field.cc: After merge fix
This commit is contained in:
parent
9936533be9
commit
b2f308160b
6 changed files with 52 additions and 73 deletions
|
|
@ -45,11 +45,8 @@ public:
|
|||
int set_compare_func(Item_bool_func2 *owner, Item_result type);
|
||||
inline int set_compare_func(Item_bool_func2 *owner_arg)
|
||||
{
|
||||
Item_result ar= (*a)->result_as_longlong() && (*b)->const_item() ?
|
||||
INT_RESULT : (*a)->result_type();
|
||||
Item_result br= (*b)->result_as_longlong() && (*a)->const_item() ?
|
||||
INT_RESULT : (*b)->result_type();
|
||||
return set_compare_func(owner_arg, item_cmp_type(ar, br));
|
||||
return set_compare_func(owner_arg, item_cmp_type((*a)->result_type(),
|
||||
(*b)->result_type()));
|
||||
}
|
||||
inline int set_cmp_func(Item_bool_func2 *owner_arg,
|
||||
Item **a1, Item **a2,
|
||||
|
|
@ -62,11 +59,9 @@ public:
|
|||
inline int set_cmp_func(Item_bool_func2 *owner_arg,
|
||||
Item **a1, Item **a2)
|
||||
{
|
||||
Item_result ar= (*a1)->result_as_longlong() && (*a2)->const_item() ?
|
||||
INT_RESULT : (*a1)->result_type();
|
||||
Item_result br= (*a2)->result_as_longlong() && (*a1)->const_item() ?
|
||||
INT_RESULT : (*a2)->result_type();
|
||||
return set_cmp_func(owner_arg, a1, a2, item_cmp_type(ar, br));
|
||||
return set_cmp_func(owner_arg, a1, a2,
|
||||
item_cmp_type((*a1)->result_type(),
|
||||
(*a2)->result_type()));
|
||||
}
|
||||
inline int compare() { return (this->*func)(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue