Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Fix
-
10.0.4
Description
This is a MySQL bug, but as you know I prefer not to give lots of my personal data to Oracle.
As far as I can tell, error 1758 seems to have not a SQLSTATE:
MariaDB [(none)]> \W
|
Show warnings enabled.
|
MariaDB [(none)]> GET DIAGNOSTICS CONDITION 0 @a = MYSQL_ERRNO;
|
Query OK, 0 rows affected, 1 warning (0.10 sec) |
 |
Error (Code 1758): Invalid condition number
|
From the documentation, SQLSTATE should be '35000':
http://dev.mysql.com/doc/refman/5.6/en/error-messages-server.html
This causes some trivial problems:
- DECLARE HANDLER FOR '35000' doesnt handle it
- Same for SQLEXCEPTION and other classes
- mysqld reports it as a warning, not an error (see above)