Bug #15946 | Error: 'Incorrect argument type' when using suffix in set command | ||
---|---|---|---|
Submitted: | 23 Dec 2005 0:36 | Modified: | 23 Dec 2005 8:50 |
Reporter: | Ronald Bradford | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.15 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[23 Dec 2005 0:36]
Ronald Bradford
[23 Dec 2005 0:49]
Ronald Bradford
Specifying the argument in my.cnf provide the following output. [mysqld] max_allowed_packet=16M Welcome to the MySQL monitor. Commands end with ; or \g. mysql> show variables like 'max_a%'; +--------------------+----------+ | Variable_name | Value | +--------------------+----------+ | max_allowed_packet | 16776192 | +--------------------+----------+ 1 row in set (0.00 sec)
[23 Dec 2005 8:50]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but it is not a bug, rather a misinterpretation of the manual. The page you quoted (http://dev.mysql.com/doc/refman/5.0/en/program-variables.html) explains how to set values in command line and in options files. Dynamic changes (by SET command) are described on the other page, http://dev.mysql.com/doc/refman/5.0/en/dynamic-system-variables.html. And it clearly describes max_allowed_packet as numeric dynamic variable. Then: "Variables that are marked as numeric take a numeric value." 16M is not a numeric value in SQL context. So, it is not a bug, but intended and documented behaviour, although slightly misleading. You may add a feature request asking for support of K, M, G suffixes for (some) numeric values.