diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-04 13:17:12 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-04 13:17:12 +0400 |
commit | ae5b31fe52e272a2cebbdf9bf8c230d622dc8ec3 (patch) | |
tree | bfae17b35ab972b88014745114f04502d71d268a /sql/sp_head.cc | |
parent | 01b308c39c9e84e0c9c962cb8a0c14f2ae96df58 (diff) | |
download | mariadb-git-ae5b31fe52e272a2cebbdf9bf8c230d622dc8ec3.tar.gz |
A cleanup for MDEV-12619 UNION creates excessive integer column types for integer literals
Fixing result set metadata for Item_int to match type_handler(),
i.e. MYSQL_TYPE_LONG for small numbers and MYSQL_TYPE_LONGLONG for big numbers.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index eea93f53b01..fc4c05a670b 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2985,7 +2985,7 @@ sp_head::show_routine_code(THD *thd) push_warning(thd, Sql_condition::WARN_LEVEL_WARN, ER_UNKNOWN_ERROR, tmp); } protocol->prepare_for_resend(); - protocol->store((longlong)ip); + protocol->store_long(ip); buffer.set("", 0, system_charset_info); i->print(&buffer); |