summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-08-21 18:30:43 +0200
committerunknown <serg@serg.mylan>2003-08-21 18:30:43 +0200
commitc1551b4c04a68699872d80b7e1b9e5a969e4ff72 (patch)
tree73d6e3458f0aef120d5c361fde234488c2b99242 /sql/item_strfunc.h
parente103da7acc6f3563a2f7207e59c34b9d9ff64295 (diff)
downloadmariadb-git-c1551b4c04a68699872d80b7e1b9e5a969e4ff72.tar.gz
use crc32() from bundled zlib if system zlib is unavailable
sql/item_create.h: previous patch cleanup sql/item_strfunc.cc: previous patch cleanup sql/item_strfunc.h: previous patch cleanup sql/lex.h: previous patch cleanup
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index d7547d69aed..a8725febe62 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -630,6 +630,26 @@ public:
};
};
+class Item_func_crc32 :public Item_int_func
+{
+ String value;
+public:
+ Item_func_crc32(Item *a) :Item_int_func(a) {}
+ const char *func_name() const { return "crc32"; }
+ void fix_length_and_dec() { max_length=10; }
+ longlong val_int();
+};
+
+class Item_func_uncompressed_length : public Item_int_func
+{
+ String value;
+public:
+ Item_func_uncompressed_length(Item *a):Item_int_func(a){}
+ const char *func_name() const{return "uncompressed_length";}
+ void fix_length_and_dec() { max_length=10; }
+ longlong val_int();
+};
+
#ifdef HAVE_COMPRESS
#define ZLIB_DEPENDED_FUNCTION ;
#else
@@ -656,23 +676,3 @@ public:
String *val_str(String *) ZLIB_DEPENDED_FUNCTION
};
-class Item_func_crc32 :public Item_int_func
-{
- String value;
-public:
- Item_func_crc32(Item *a) :Item_int_func(a) {}
- const char *func_name() const { return "crc32"; }
- void fix_length_and_dec() { max_length=10; }
- longlong val_int() ZLIB_DEPENDED_FUNCTION
-};
-
-class Item_func_uncompressed_length : public Item_int_func
-{
- String value;
-public:
- Item_func_uncompressed_length(Item *a):Item_int_func(a){}
- const char *func_name() const{return "uncompressed_length";}
- void fix_length_and_dec() { max_length=10; }
- longlong val_int();
-};
-