summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorunknown <peter@mysql.com>2002-07-17 12:11:48 +0400
committerunknown <peter@mysql.com>2002-07-17 12:11:48 +0400
commitc78629effba2b232c5afada4b2e839a1580c0ea8 (patch)
tree34ee74d8b2d1d25c28e7b9895fdc0a9bbd5d04ad /sql/item_func.h
parent6b3e98d505297e6cbd0cbd22d4f46eacb091d924 (diff)
downloadmariadb-git-c78629effba2b232c5afada4b2e839a1580c0ea8.tar.gz
Arjens LOG functions changes with small changes and tests added to mysql-test
Docs/manual.texi: Manual changes to doccument new functions and function changes mysql-test/r/func_math.result: Extend tests for LOG family functions mysql-test/t/func_math.test: Extend tests for LOG family functions sql/gen_lex_hash.cc: Lex hash changes sql/item_create.cc: Rename old log function to ln sql/item_create.h: More log functions sql/item_func.cc: Implementation of new log function behavior sql/item_func.h: Class definition for new functions sql/lex.h: Function names sql/sql_yacc.yy: Symbols for new LOG function tests/function.res: One more test result change tests/function.tst: One more test change BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 5560d3cdb0d..0860e15d2e4 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -338,15 +338,35 @@ public:
const char *func_name() const { return "exp"; }
};
+
+class Item_func_ln :public Item_dec_func
+{
+public:
+ Item_func_ln(Item *a) :Item_dec_func(a) {}
+ double val();
+ const char *func_name() const { return "ln"; }
+};
+
+
class Item_func_log :public Item_dec_func
{
public:
Item_func_log(Item *a) :Item_dec_func(a) {}
+ Item_func_log(Item *a,Item *b) :Item_dec_func(a,b) {}
double val();
const char *func_name() const { return "log"; }
};
+class Item_func_log2 :public Item_dec_func
+{
+public:
+ Item_func_log2(Item *a) :Item_dec_func(a) {}
+ double val();
+ const char *func_name() const { return "log2"; }
+};
+
+
class Item_func_log10 :public Item_dec_func
{
public: