Bug #2772 Function with character set clause fails in stored procedures

Submitted: 13 Feb 2004 6:27 Modified: 6 Apr 2004 4:33
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.0-alpha-debug OS:Linux (SuSE 8.2/Win XP)
Assigned to: Per-Erik Martin CPU Architecture:Any

[13 Feb 2004 6:27] Peter Gulutzan
Description:
The CHARACTER SET clause works incorrectly for a function return data type (in stored 
procedures implementation). 
 

How to repeat:
mysql> create function fu13 () returns char(10) character set latin2 return 'a'; 
Query OK, 0 rows affected (0.00 sec) 
 
mysql> select fu13(); 
ERROR 1064 (42000): You have an error in your SQL syntax.  Check the manual that 
corresponds to your MySQL server version for the right syntax to use near 'ret                            
urn 'a'' at line 2 
 
mysql> select fu13(); 
Packets out of order (Found: 2, expected 1) 
ERROR 2013 (HY000): Lost connection to MySQL server during query
[20 Feb 2004 13:45] MySQL Verification Team
The same for Windows version.
[6 Apr 2004 4:33] Per-Erik Martin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.