Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
19b24f8f
Commit
19b24f8f
authored
Jan 28, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.1 merge
parents
aa2f88ba
16e0cae0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
16 deletions
+6
-16
client/mysql.cc
client/mysql.cc
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+2
-5
sql/sql_select.cc
sql/sql_select.cc
+2
-5
sql/sql_view.cc
sql/sql_view.cc
+1
-5
No files found.
client/mysql.cc
View file @
19b24f8f
...
@@ -1174,7 +1174,7 @@ int main(int argc,char *argv[])
...
@@ -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
\n
Server version: %s
\n
"
,
"Your %s connection id is %lu
\n
Server 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
));
...
...
sql/sql_base.cc
View file @
19b24f8f
...
@@ -7875,12 +7875,9 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
...
@@ -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
);
...
...
sql/sql_select.cc
View file @
19b24f8f
...
@@ -882,11 +882,8 @@ JOIN::optimize()
...
@@ -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
;
...
...
sql/sql_view.cc
View file @
19b24f8f
...
@@ -1121,11 +1121,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment