Bug #1194 | MySQL server doesn't work correctly with user variable if it's previously used | ||
---|---|---|---|
Submitted: | 4 Sep 2003 7:25 | Modified: | 1 Oct 2003 1:53 |
Reporter: | Victoria Reznichenko | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.14 | OS: | Any (any) |
Assigned to: | Victor Vagin | CPU Architecture: | Any |
[4 Sep 2003 7:25]
Victoria Reznichenko
[22 Sep 2003 7:21]
Guilhem Bichot
I have another testcase (could be the same problem) which shows too that initializing the variable with SET works. [guilhem@gbichot2 sql]$ mysql1 test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 to server version: 4.0.15-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. MASTER> select @a, @a:=1; +------+-------+ | @a | @a:=1 | +------+-------+ | NULL | 1 | +------+-------+ 1 row in set (0.00 sec) MASTER> select @a; +------+ | @a | +------+ | 1 | +------+ 1 row in set (0.00 sec) MASTER> select @a, @a:=1; +---------------+-------+ | @a | @a:=1 | +---------------+-------+ | 3917010174001 | 1 | +---------------+-------+ 1 row in set (0.00 sec) MASTER> Bye [guilhem@gbichot2 sql]$ mysql1 test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 18 to server version: 4.0.15-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. MASTER> set @a=1; Query OK, 0 rows affected (0.00 sec) MASTER> select @a; +------+ | @a | +------+ | 1 | +------+ 1 row in set (0.00 sec) MASTER> select @a, @a:=1; +------+-------+ | @a | @a:=1 | +------+-------+ | 1 | 1 | +------+-------+ 1 row in set (0.00 sec)
[1 Oct 2003 1:53]
Victor Vagin
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