diff options
author | unknown <sergefp@mysql.com> | 2005-08-27 02:33:06 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-08-27 02:33:06 +0400 |
commit | 9bc3976c79d484c380ed9265c51918a942cd22b7 (patch) | |
tree | c1da247a061c35537652a59670be0d73b7861a51 /sql/item.h | |
parent | 4d0513127c180e4fa4483dc3f149a73bee6979d0 (diff) | |
download | mariadb-git-9bc3976c79d484c380ed9265c51918a942cd22b7.tar.gz |
Slightly amended Monty's SP replication code cleanup patch
sql/item.cc:
Code cleanup
sql/item.h:
Code cleanup
sql/log.cc:
Added comments
sql/sp_head.cc:
Code cleanup patch from Monty:
in subst_spvars()
- Move local variables first in block
- Use res|= instead of res |=
- Use strmake() instead of alloc + memcpy
Added:
- Fail the query if we don't have enough memory to produce a binlog-suitable query string:
if we're so low on memory we're likely to fail the query anyway, and failing now removes
the need for hack with THD::query_str_binlog_suitable.
sql/sql_class.cc:
Remove THD::query_str_binlog_unsuitable
sql/sql_class.h:
Remove THD::query_str_binlog_unsuitable
sql/sql_delete.cc:
Remove THD::query_str_binlog_unsuitable
sql/sql_insert.cc:
Remove THD::query_str_binlog_unsuitable
sql/sql_parse.cc:
Code cleanup
sql/sql_update.cc:
Remove THD::query_str_binlog_unsuitable
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index 5dfe90be2b5..b934e1f9f3f 100644 --- a/sql/item.h +++ b/sql/item.h @@ -853,7 +853,7 @@ public: return value_item->save_in_field(field, no_conversions); } - inline bool send(Protocol *protocol, String *str) + bool send(Protocol *protocol, String *str) { return value_item->send(protocol, str); } |