diff options
author | unknown <pem@mysql.comhem.se> | 2004-06-10 17:07:53 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-06-10 17:07:53 +0200 |
commit | 2163546955bf3ecd70080b06b20ac4076559473e (patch) | |
tree | 5d5769db6d6e3d222c2c63fa14abf43da8eb85de /sql | |
parent | afb15e9640523513dae9c90886481595f6839bbd (diff) | |
download | mariadb-git-2163546955bf3ecd70080b06b20ac4076559473e.tar.gz |
Fixed BUG#3132: Stored function returns empty when used in union.
mysql-test/r/sp.result:
Added testcase for BUG#3132.
mysql-test/t/sp.test:
Added testcase for BUG#3132.
sql/item_func.cc:
Set a useful max_length in Item_func_sp so field widths are correctly calculated.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_func.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index c4cb8a7a2f0..ac7025a391a 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -3320,7 +3320,7 @@ Item_func_sp::fix_length_and_dec() switch (m_sp->result()) { case STRING_RESULT: maybe_null= 1; - max_length= 0; + max_length= MAX_BLOB_WIDTH; break; case REAL_RESULT: decimals= NOT_FIXED_DEC; |