summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-07-08 12:57:00 +0500
committerunknown <gluh@gluh.mysql.r18.ru>2003-07-08 12:57:00 +0500
commit01e7f418afb1ab646487e4a14179ed2d2bd8f008 (patch)
tree432f5bf0b381f3faff8963e8f850c965117dc99f /sql/item_create.cc
parent8d128eed802e47fbce895a1f7d46caf56ac4a50e (diff)
parentb68315cda61f71f3bf176e97f14f40d8c3bf528d (diff)
downloadmariadb-git-01e7f418afb1ab646487e4a14179ed2d2bd8f008.tar.gz
Merge gluh@gw:/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/mysql-4.1.DTFUNC sql/field.cc: Auto merged sql/item_create.cc: Auto merged sql/mysql_priv.h: Auto merged sql/protocol.cc: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 90f42cee959..402428d40cb 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -691,3 +691,38 @@ Item *create_func_uncompressed_length(Item* a)
#endif
+Item *create_func_datediff(Item *a, Item *b)
+{
+ return new Item_func_minus(new Item_func_to_days(a),
+ new Item_func_to_days(b));
+}
+
+Item *create_func_weekofyear(Item *a)
+{
+ return new Item_func_week(a, new Item_int((char*) "0", 3, 1));
+}
+
+Item *create_func_makedate(Item* a,Item* b)
+{
+ return new Item_func_makedate(a, b);
+}
+
+Item *create_func_addtime(Item* a,Item* b)
+{
+ return new Item_func_add_time(a, b, 0);
+}
+
+Item *create_func_subtime(Item* a,Item* b)
+{
+ return new Item_func_add_time(a, b, 1);
+}
+
+Item *create_func_timediff(Item* a,Item* b)
+{
+ return new Item_func_timediff(a, b);
+}
+
+Item *create_func_maketime(Item* a,Item* b,Item* c)
+{
+ return new Item_func_maketime(a, b, c);
+}