diff options
author | serg@serg.mylan <> | 2003-09-03 12:07:18 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-09-03 12:07:18 +0200 |
commit | 755455e15c341c2e86f3044b2dfa3dd49772f13c (patch) | |
tree | 84310e757264951823af695be9ae599473f79f1b /sql/item_func.cc | |
parent | bd49884c1986235c93141c284d944e055dcb72d6 (diff) | |
parent | 2fcab1c2ee99a73718e14a56cbe7871bca8bd967 (diff) | |
download | mariadb-git-755455e15c341c2e86f3044b2dfa3dd49772f13c.tar.gz |
merged
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 4bda8ae78cd..ebc5314580c 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -27,22 +27,18 @@ #include <hash.h> #include <time.h> #include <ft_global.h> -#ifdef HAVE_COMPRESS -#include <zlib.h> -#endif static void my_coll_agg_error(DTCollation &c1, DTCollation &c2, const char *fname) { my_error(ER_CANT_AGGREGATE_2COLLATIONS,MYF(0), - c1.collation->name,c1.derivation_name(), + c1.collation->name,c1.derivation_name(), c2.collation->name,c2.derivation_name(), fname); } - -static void my_coll_agg_error(DTCollation &c1, +static void my_coll_agg_error(DTCollation &c1, DTCollation &c2, DTCollation &c3, const char *fname) @@ -1085,36 +1081,6 @@ longlong Item_func_min_max::val_int() return value; } - -#ifdef HAVE_COMPRESS -longlong Item_func_crc32::val_int() -{ - String *res=args[0]->val_str(&value); - if (!res) - { - null_value=1; - return 0; /* purecov: inspected */ - } - null_value=0; - return (longlong) crc32(0L, (Bytef*)res->ptr(), res->length()); -} - - -longlong Item_func_uncompressed_length::val_int() -{ - String *res= args[0]->val_str(&value); - if (!res) - { - null_value=1; - return 0; /* purecov: inspected */ - } - null_value=0; - if (res->is_empty()) return 0; - return uint4korr(res->c_ptr()) & 0x3FFFFFFF; -} -#endif /* HAVE_COMPRESS */ - - longlong Item_func_length::val_int() { String *res=args[0]->val_str(&value); |