diff options
author | unknown <dli@dev3-164.dev.cn.tlan> | 2006-12-22 09:59:27 +0800 |
---|---|---|
committer | unknown <dli@dev3-164.dev.cn.tlan> | 2006-12-22 09:59:27 +0800 |
commit | 727ffbf37613c516cdb78d32b4ebd23cec4c83aa (patch) | |
tree | 0838cb804a8daedcba9dc9c9f0ed4d827e92b590 /sql/protocol.h | |
parent | 479ffe15cb7b0b41d812d2a8469a1117b8e23664 (diff) | |
download | mariadb-git-727ffbf37613c516cdb78d32b4ebd23cec4c83aa.tar.gz |
ndb - fixed for BUG#19896 Last_Errno: 4294967295, Error in Write_rows event: (error number 4 billion ?)
fixed to use int instead of uint32 type to return last_slave_errno.
sql/log_event.cc:
don't set -1 to last_slave_errno.
sql/protocol.h:
added function store(int from) to return last_slave_errno.
sql/slave.cc:
should use int instead of uint32 type to return last_slave_errno.
Diffstat (limited to 'sql/protocol.h')
-rw-r--r-- | sql/protocol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/protocol.h b/sql/protocol.h index 85c22724b74..f9305c2c896 100644 --- a/sql/protocol.h +++ b/sql/protocol.h @@ -59,6 +59,8 @@ public: String *storage_packet() { return packet; } inline void free() { packet->free(); } virtual bool write(); + inline bool store(int from) + { return store_long((longlong) from); } inline bool store(uint32 from) { return store_long((longlong) from); } inline bool store(longlong from) |