summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-02-11 16:44:38 +0100
committerunknown <knielsen@knielsen-hq.org>2013-02-11 16:44:38 +0100
commit041f26d349f1afb9edf6b0f17dfecfb3f29a9d25 (patch)
tree820cad1d6821d3d806ee0e7c4f0e5166141a56e4 /sql/item_strfunc.h
parent132c26604417abb0936df1bca5198c08a5d8bb84 (diff)
downloadmariadb-git-041f26d349f1afb9edf6b0f17dfecfb3f29a9d25.tar.gz
MDEV-26. Intermediate commit.
Implement binlog_gtid_pos() function. This will be used so that the slave can obtain the gtid position automatically from first connect with old-style position - then MASTER_GTID_POS=AUTO will work the next time. Can also be used by mysqldump --master-data to give the current gtid position directly.
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index 486b7cf36ef..ddad7121325 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -616,6 +616,17 @@ public:
};
+class Item_func_binlog_gtid_pos :public Item_str_func
+{
+ String tmp_value;
+public:
+ Item_func_binlog_gtid_pos(Item *arg1,Item *arg2) :Item_str_func(arg1,arg2) {}
+ String *val_str(String *);
+ void fix_length_and_dec();
+ const char *func_name() const { return "binlog_gtid_pos"; }
+};
+
+
class Item_func_rpad :public Item_str_func
{
String tmp_value, rpad_str;