Skip to content

Commit c94c236

Browse files
committed
Bug#11762750 TABLE NDBINFO.CONFIG_PARAMS SHOULD BE READ-ONLY (FOR NOW)
- Added test to verify that ndbinfo.config_params is readonly after WL#7575
1 parent 2971626 commit c94c236

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

mysql-test/suite/ndb/r/ndbinfo.result

+6
Original file line numberDiff line numberDiff line change
@@ -1338,3 +1338,9 @@ drop table old_count;
13381338
set @@optimizer_switch=default;
13391339

13401340
select * from ndbinfo.config_params order by param_number;
1341+
UPDATE ndb$config_params SET param_number=1 WHERE param_name = "NoOfReplicas";
1342+
ERROR HY000: Table 'ndb$config_params' is read only
1343+
1344+
UPDATE config_params SET param_number=1 WHERE param_name = "NoOfReplicas";
1345+
ERROR HY000: Table 'ndb$config_params' is read only
1346+

mysql-test/suite/ndb/t/ndbinfo.test

+12
Original file line numberDiff line numberDiff line change
@@ -727,4 +727,16 @@ set @@optimizer_switch=default;
727727
select * from ndbinfo.config_params order by param_number;
728728
--enable_result_log
729729

730+
#
731+
# Bug#11762750 TABLE NDBINFO.CONFIG_PARAMS SHOULD BE READ-ONLY (FOR NOW)
732+
#
733+
#
734+
# Checking the table
735+
--error ER_OPEN_AS_READONLY
736+
UPDATE ndb$config_params SET param_number=1 WHERE param_name = "NoOfReplicas";
737+
738+
# Checking the view
739+
--error ER_OPEN_AS_READONLY
740+
UPDATE config_params SET param_number=1 WHERE param_name = "NoOfReplicas";
741+
730742
--source ndbinfo_drop.inc

0 commit comments

Comments
 (0)