summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index f80d084dc82..eada5d03079 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2018,3 +2018,16 @@ bool Item_func_match::eq(const Item *item) const
}
+/***************************************************************************
+ System variables
+ This has to be recoded after we get more than 3 system variables
+****************************************************************************/
+
+Item *get_system_var(LEX_STRING name)
+{
+ if (!strcmp(name.str,"IDENTITY"))
+ return new Item_int((char*) "@@IDENTITY",
+ current_thd->insert_id(),21);
+ my_error(ER_UNKNOWN_SYSTEM_VARIABLE,MYF(0),name);
+ return 0;
+}