mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SET STATEMENT timestamp=xxx ....
fix sys_var->is_default() method (that was using default_val property in a global sys_var object to track per-session state): * move timestamp to a dedicated Sys_var_timestamp class (in fact, rename Sys_var_session_special_double to Sys_var_timestamp) * make session_is_default a virtual method with a special implementation for timestamps * other variables don't have a special behavior for default values and can have session_is_default() to be always false.
This commit is contained in:
@ -2663,7 +2663,7 @@ mysql_execute_command(THD *thd)
|
||||
lex->free_arena_for_set_stmt();
|
||||
goto error;
|
||||
}
|
||||
if (v->var->is_default())
|
||||
if (v->var->session_is_default(thd))
|
||||
o= new set_var(v->type, v->var, &v->base, NULL);
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user