Bug #81405 | non descriptive error message on bad UPDATE syntax | ||
---|---|---|---|
Submitted: | 12 May 2016 18:59 | Modified: | 13 May 2016 11:39 |
Reporter: | Louis Cardali | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 5.7.12 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[12 May 2016 18:59]
Louis Cardali
[13 May 2016 11:39]
MySQL Verification Team
Hello Louis Cardali, Thank you for the report. Imho UPDATE <table> SET <field>=<value> AND <field2>=<value2> is interpreted and executed as UPDATE <table> SET='<value> AND <field2>=<value2>' and with strict SQL mode it would report an error instead of warning(in earlier versions just warning). In this case it is generating valid error message which is as per documentation "Truncated incorrect %s value: '%s' is reported" - http://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html#error_er_truncated_wrong... Thanks, Umesh