summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@oracle.com>2012-07-05 16:14:47 +0300
committerAndrei Elkin <andrei.elkin@oracle.com>2012-07-05 16:14:47 +0300
commit5841af19f741ef0ce8409971888879c664d0c610 (patch)
treecd39683ee459f45b0a13ad3034efa81de36ffc22 /sql/log_event.h
parentfb3e11d0ab9317a73619d1e5c01669a7c6e034f9 (diff)
parente3c8fb4a1cf2984cf1aa1fe31ba828de550f619c (diff)
downloadmariadb-git-5841af19f741ef0ce8409971888879c664d0c610.tar.gz
merge bug14275000 fixes to 5.5
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 548541a8767..387f020ee8b 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -2562,14 +2562,23 @@ public:
Item_result type;
uint charset_number;
bool is_null;
+<<<<<<< TREE
uchar flags;
#ifdef MYSQL_SERVER
+=======
+#ifndef MYSQL_CLIENT
+ bool deferred;
+>>>>>>> MERGE-SOURCE
User_var_log_event(THD* thd_arg, char *name_arg, uint name_len_arg,
char *val_arg, ulong val_len_arg, Item_result type_arg,
uint charset_number_arg, uchar flags_arg)
:Log_event(), name(name_arg), name_len(name_len_arg), val(val_arg),
val_len(val_len_arg), type(type_arg), charset_number(charset_number_arg),
+<<<<<<< TREE
flags(flags_arg)
+=======
+ deferred(false)
+>>>>>>> MERGE-SOURCE
{ is_null= !val; }
void pack_info(Protocol* protocol);
#else
@@ -2582,6 +2591,13 @@ public:
Log_event_type get_type_code() { return USER_VAR_EVENT;}
#ifdef MYSQL_SERVER
bool write(IO_CACHE* file);
+ /*
+ Getter and setter for deferred User-event.
+ Returns true if the event is not applied directly
+ and which case the applier adjusts execution path.
+ */
+ bool is_deferred() { return deferred; }
+ void set_deferred() { deferred= val; }
#endif
bool is_valid() const { return 1; }