diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-11-23 19:24:31 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-11-23 19:28:29 +0100 |
commit | 295f3e4cfb4a8f132f36d53475efc92f2487aa97 (patch) | |
tree | 7d2e36fbfad6b15683df5447f5afb757e2a1402d /sql/protocol.h | |
parent | a62a675fd22d8d34d2cdec7dff4d39d51b57d24b (diff) | |
download | mariadb-git-295f3e4cfb4a8f132f36d53475efc92f2487aa97.tar.gz |
MDEV-19237 Skip sending metadata when possible for binary protocol.
Do not resend metadata, if metadata does not change between prepare and
execute of prepared statement, or between executes.
Currently, metadata of *every* prepared statement will be checksummed,
and change is detected once checksum changes.
This is not from ideal, performance-wise. The code for
better/faster detection of unchanged metadata, is already in place, but
currently disabled due to PS bugs, such as MDEV-23913.
Diffstat (limited to 'sql/protocol.h')
-rw-r--r-- | sql/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/protocol.h b/sql/protocol.h index 19899885599..a1868342ab4 100644 --- a/sql/protocol.h +++ b/sql/protocol.h @@ -93,7 +93,7 @@ public: virtual ~Protocol() {} void init(THD* thd_arg); - enum { SEND_NUM_ROWS= 1, SEND_EOF= 2 }; + enum { SEND_NUM_ROWS= 1, SEND_EOF= 2, SEND_FORCE_COLUMN_INFO= 4 }; virtual bool send_result_set_metadata(List<Item> *list, uint flags); bool send_list_fields(List<Field> *list, const TABLE_LIST *table_list); bool send_result_set_row(List<Item> *row_items); |