summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-29 12:20:21 +0400
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-10-29 12:20:21 +0400
commit98a4d99961eae8c3a224739099fc95544ff2b43d (patch)
treee9112ce10721f2b915b8376caddb5001056b04b1 /sql/item_cmpfunc.h
parent3d203e55e67946e505f85a7d3a4321794ece51fe (diff)
downloadmariadb-git-98a4d99961eae8c3a224739099fc95544ff2b43d.tar.gz
Fix for bug #30782: Truncated UNSIGNED BIGINT columns only in SELECT w/ CASE,
JOIN, and ORDER BY Problem: improper maximum length calculation of the CASE function leads to decimal value truncation (storing/retrieving decimal field values). Fix: accurately calculate maximum length/unsigned flag/decimals parameters of the CASE function.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 8410c66b034..3e32b5d2c9c 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -753,6 +753,8 @@ public:
void print(String *str);
Item *find_item(String *str);
CHARSET_INFO *compare_collation() { return cmp_collation.collation; }
+ void agg_str_lengths(Item *arg);
+ void agg_num_lengths(Item *arg);
};