1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-13 21:42:58 +03:00

Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions

- Honor unsigned_flag in the corresponding functions
- Use compare_int_signed_unsigned()/compare_int_unsigned_signed() instead of explicit comparison in GREATEST() and LEAST()
This commit is contained in:
kaa@polly.local
2006-09-08 14:08:29 +04:00
parent b6cd727ed1
commit 268c7a3522
13 changed files with 105 additions and 20 deletions

View File

@@ -1460,6 +1460,7 @@ class user_var_entry
char *value;
ulong length, update_query_id, used_query_id;
Item_result type;
bool unsigned_flag;
double val(my_bool *null_value);
longlong val_int(my_bool *null_value);