[MDEV-6951] Erroneous SET STATEMENT produces two identical errors Created: 2014-10-27  Updated: 2015-03-16  Resolved: 2015-03-11

Status: Closed
Project: MariaDB Server
Component/s: Admin statements
Affects Version/s: N/A
Fix Version/s: 10.1.4

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-5231 Per query variables from Percona Serv... Closed
relates to MDEV-6923 Testing for SET STATEMENT .. FOR (MDE... Closed

 Description   

MariaDB [test]> set statement non_existing=1 for select 1;
ERROR 1193 (HY000): Unknown system variable 'non_existing'
MariaDB [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)
 
MariaDB [test]> select @@error_count;
+---------------+
| @@error_count |
+---------------+
|             2 |
+---------------+
1 row in set (0.00 sec)

It looks redundant.

commit e64f5d8f758bcc1a8856ba9fba01780533f80747
Author: Oleksandr Byelkin <sanja@mariadb.com>
Date:   Sun Oct 26 16:27:54 2014 +0100
 
    Fixed test suite global variable saving

All the same in Percona server.



 Comments   
Comment by Oleksandr Byelkin [ 2015-03-11 ]

revision-id: be73c7ee4415af4c1188689e1642a39512c2ecbd
parent(s): 9f4ee16bf351ea2969d73abcdea92e70538c723c
committer: Oleksandr Byelkin
branch nick: server
timestamp: 2015-03-11 14:57:30 +0100
message:

MDEV-6951: Erroneous SET STATEMENT produces two identical errors

Double error reporting removed.

Generated at Thu Feb 08 07:15:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.