File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
mysql-test/suite/sys_vars Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,9 @@ SET @@GLOBAL.replicate_do_db=null;
37
37
SELECT @@GLOBAL.replicate_do_db;
38
38
@@GLOBAL.replicate_do_db
39
39
40
+ SET @@GLOBAL.replicate_do_db=DEFAULT;
41
+ SELECT @@GLOBAL.replicate_do_db;
42
+ @@GLOBAL.replicate_do_db
43
+
40
44
# Cleanup.
41
45
SET @@GLOBAL.replicate_do_db = @save_replicate_do_db;
Original file line number Diff line number Diff line change @@ -38,5 +38,8 @@ SELECT @@GLOBAL.replicate_do_db;
38
38
SET @@GLOBAL.replicate_do_db=null;
39
39
SELECT @@GLOBAL.replicate_do_db;
40
40
41
+ SET @@GLOBAL.replicate_do_db=DEFAULT;
42
+ SELECT @@GLOBAL.replicate_do_db;
43
+
41
44
--echo # Cleanup.
42
45
SET @@GLOBAL.replicate_do_db = @save_replicate_do_db;
Original file line number Diff line number Diff line change @@ -614,7 +614,11 @@ public:
614
614
{ DBUG_ASSERT(FALSE); }
615
615
616
616
void global_save_default(THD *thd, set_var *var)
617
- { DBUG_ASSERT(FALSE); }
617
+ {
618
+ char *ptr= (char*)(intptr)option.def_value;
619
+ var->save_result.string_value.str= ptr;
620
+ var->save_result.string_value.length= ptr ? strlen(ptr) : 0;
621
+ }
618
622
619
623
bool session_update(THD *thd, set_var *var)
620
624
{
You can’t perform that action at this time.
0 commit comments