Bug #13139 | Procedure created in UTF-8 get data to long error | ||
---|---|---|---|
Submitted: | 13 Sep 2005 13:05 | Modified: | 13 Sep 2005 14:49 |
Reporter: | Anders Karlsson | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.0.12 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[13 Sep 2005 13:05]
Anders Karlsson
[13 Sep 2005 13:09]
Anders Karlsson
For the problem to occur, one needs, as in the example I present, some UTF-8 data in the table. In this case an unlaut-o (UNICODE 00F6).
[13 Sep 2005 14:49]
Valeriy Kravchuk
I tried to repeat on today's 5.0.13-beta-BK build, and was unable: [openxs@Fedora 5.0]$ bin/mysql -uroot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 to server version: 5.0.13-beta-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> call testtmp(); Query OK, 1 row affected (0,00 sec) mysql> status -------------- bin/mysql Ver 14.12 Distrib 5.0.13-beta, for redhat-linux-gnu (i686) using Edi tLine wrapper Connection id: 8 Current database: test Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.0.13-beta-debug Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: utf8 Db characterset: utf8 Client characterset: latin1 Conn. characterset: latin1 UNIX socket: /tmp/mysql.sock Uptime: 1 hour 1 min 42 sec Threads: 1 Questions: 242 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 21 Queries per second avg: 0.065 -------------- mysql> call testtmp(); Query OK, 1 row affected (0,00 sec) mysql> call testtmp(); Query OK, 1 row affected (0,00 sec) mysql> select * from tab1; +------+ | col1 | +------+ | | | ö | +------+ 2 rows in set (0,00 sec) mysql> select version(); +-------------------+ | version() | +-------------------+ | 5.0.13-beta-debug | +-------------------+ 1 row in set (0,00 sec) So, I have your 'ö' in the table, and no set names were executed, but the procedure created just as you described. It even inserts (truncated) rows into tab2 upon each call. I think you should wait for 5.0.13 official release, and try it once more.