Erroneous SET STATEMENT produces two identical errors
Bug #1386210 reported by
Elena Stepanova
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.6 |
Triaged
|
Low
|
Unassigned | |||
5.7 |
Triaged
|
Low
|
Unassigned |
Bug Description
MySQL [test]> set statement non_existing=1 for select 1;
ERROR 1193 (HY000): Unknown system variable 'non_existing'
MySQL [test]> show errors;
+------
| Level | Code | Message |
+------
| Error | 1193 | Unknown system variable 'non_existing' |
| Error | 1193 | Unknown system variable 'non_existing' |
+------
2 rows in set (0.00 sec)
MySQL [test]> select @@error_count;
+---------------+
| @@error_count |
+---------------+
| 2 |
+---------------+
1 row in set (0.01 sec)
It looks redundant.
tags: | added: set-statement |
To post a comment you must log in.
This is easy to confirm:
mysql> select version();
+-------------+
| version() |
+-------------+
| 5.6.21-69.0 |
+-------------+
1 row in set (0.03 sec)
mysql> set statement non_existing=1 for select 1; -+----- -+----- ------- ------- ------- ------- ------- + -+----- -+----- ------- ------- ------- ------- ------- + -+----- -+----- ------- ------- ------- ------- ------- +
ERROR 1193 (HY000): Unknown system variable 'non_existing'
mysql> show errors;
+------
| Level | Code | Message |
+------
| Error | 1193 | Unknown system variable 'non_existing' |
| Error | 1193 | Unknown system variable 'non_existing' |
+------
2 rows in set (0.00 sec)
mysql> select @@error_count;
+---------------+
| @@error_count |
+---------------+
| 2 |
+---------------+
1 row in set (0.00 sec)