mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count ').
sql/set_var.cc: a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count '). test for read only variables added. sql/set_var.h: a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count '). sys_var::is_readonly() method introduced.
This commit is contained in:
@@ -526,3 +526,7 @@ show warnings;
|
||||
Level Code Message
|
||||
Warning 1329 No data to FETCH
|
||||
drop table t1;
|
||||
set @@warning_count=1;
|
||||
ERROR HY000: Variable 'warning_count' is a read only variable
|
||||
set @@global.error_count=1;
|
||||
ERROR HY000: Variable 'error_count' is a read only variable
|
||||
|
||||
Reference in New Issue
Block a user