mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.1 merge
This commit is contained in:
@ -1174,7 +1174,7 @@ int main(int argc,char *argv[])
|
|||||||
|
|
||||||
put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.",
|
put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.",
|
||||||
INFO_INFO);
|
INFO_INFO);
|
||||||
sprintf((char*) glob_buffer.ptr(),
|
my_snprintf((char*) glob_buffer.ptr(), glob_buffer.alloced_length(),
|
||||||
"Your %s connection id is %lu\nServer version: %s\n",
|
"Your %s connection id is %lu\nServer version: %s\n",
|
||||||
mysql_get_server_name(&mysql),
|
mysql_get_server_name(&mysql),
|
||||||
mysql_thread_id(&mysql), server_version_string(&mysql));
|
mysql_thread_id(&mysql), server_version_string(&mysql));
|
||||||
|
@ -7875,12 +7875,9 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
|
|||||||
{
|
{
|
||||||
DBUG_ASSERT(table_list->view &&
|
DBUG_ASSERT(table_list->view &&
|
||||||
table_list->effective_algorithm == VIEW_ALGORITHM_MERGE);
|
table_list->effective_algorithm == VIEW_ALGORITHM_MERGE);
|
||||||
Query_arena *arena= thd->stmt_arena, backup;
|
Query_arena *arena, backup;
|
||||||
|
arena= thd->activate_stmt_arena_if_needed(&backup);
|
||||||
bool res;
|
bool res;
|
||||||
if (arena->is_conventional())
|
|
||||||
arena= 0; // For easier test
|
|
||||||
else
|
|
||||||
thd->set_n_backup_active_arena(arena, &backup);
|
|
||||||
res= table_list->setup_underlying(thd);
|
res= table_list->setup_underlying(thd);
|
||||||
if (arena)
|
if (arena)
|
||||||
thd->restore_active_arena(arena, &backup);
|
thd->restore_active_arena(arena, &backup);
|
||||||
|
@ -882,11 +882,8 @@ JOIN::optimize()
|
|||||||
MEMROOT for prepared statements and stored procedures.
|
MEMROOT for prepared statements and stored procedures.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Query_arena *arena= thd->stmt_arena, backup;
|
Query_arena *arena, backup;
|
||||||
if (arena->is_conventional())
|
arena= thd->activate_stmt_arena_if_needed(&backup);
|
||||||
arena= 0; // For easier test
|
|
||||||
else
|
|
||||||
thd->set_n_backup_active_arena(arena, &backup);
|
|
||||||
|
|
||||||
sel->first_cond_optimization= 0;
|
sel->first_cond_optimization= 0;
|
||||||
|
|
||||||
|
@ -1121,11 +1121,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
|
|||||||
will be TRUE as far as we make new table cache).
|
will be TRUE as far as we make new table cache).
|
||||||
*/
|
*/
|
||||||
old_lex= thd->lex;
|
old_lex= thd->lex;
|
||||||
arena= thd->stmt_arena;
|
arena= thd->activate_stmt_arena_if_needed(&backup);
|
||||||
if (arena->is_conventional())
|
|
||||||
arena= 0;
|
|
||||||
else
|
|
||||||
thd->set_n_backup_active_arena(arena, &backup);
|
|
||||||
|
|
||||||
/* init timestamp */
|
/* init timestamp */
|
||||||
if (!table->timestamp.str)
|
if (!table->timestamp.str)
|
||||||
|
Reference in New Issue
Block a user