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
120425cc
Commit
120425cc
authored
Nov 05, 2009
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix automerge: use 'thd->query()' instead of 'thd->query'.
parent
45c2de8f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
sql/sp_head.cc
sql/sp_head.cc
+1
-1
sql/sql_cache.cc
sql/sql_cache.cc
+2
-2
sql/sql_cursor.cc
sql/sql_cursor.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+9
-9
sql/sql_prepare.cc
sql/sql_prepare.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
sql/sp_head.cc
View file @
120425cc
...
...
@@ -2907,7 +2907,7 @@ sp_instr_stmt::print(String *str)
int
sp_instr_stmt
::
exec_core
(
THD
*
thd
,
uint
*
nextp
)
{
MYSQL_QUERY_EXEC_START
(
thd
->
query
,
MYSQL_QUERY_EXEC_START
(
thd
->
query
()
,
thd
->
thread_id
,
(
char
*
)
(
thd
->
db
?
thd
->
db
:
""
),
thd
->
security_ctx
->
priv_user
,
...
...
sql/sql_cache.cc
View file @
120425cc
...
...
@@ -1630,13 +1630,13 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
thd
->
main_da
.
disable_status
();
BLOCK_UNLOCK_RD
(
query_block
);
MYSQL_QUERY_CACHE_HIT
(
thd
->
query
,
(
ulong
)
thd
->
limit_found_rows
);
MYSQL_QUERY_CACHE_HIT
(
thd
->
query
()
,
(
ulong
)
thd
->
limit_found_rows
);
DBUG_RETURN
(
1
);
// Result sent to client
err_unlock:
unlock
();
err:
MYSQL_QUERY_CACHE_MISS
(
thd
->
query
);
MYSQL_QUERY_CACHE_MISS
(
thd
->
query
()
);
DBUG_RETURN
(
0
);
// Query was not cached
}
...
...
sql/sql_cursor.cc
View file @
120425cc
...
...
@@ -169,7 +169,7 @@ int mysql_open_cursor(THD *thd, uint flags, select_result *result,
thd
->
lock_id
=
sensitive_cursor
->
get_lock_id
();
thd
->
cursor
=
sensitive_cursor
;
}
MYSQL_QUERY_EXEC_START
(
thd
->
query
,
MYSQL_QUERY_EXEC_START
(
thd
->
query
()
,
thd
->
thread_id
,
(
char
*
)
(
thd
->
db
?
thd
->
db
:
""
),
thd
->
security_ctx
->
priv_user
,
...
...
sql/sql_parse.cc
View file @
120425cc
...
...
@@ -1220,7 +1220,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
{
if
(
alloc_query
(
thd
,
packet
,
packet_length
))
break
;
// fatal error is set
MYSQL_QUERY_START
(
thd
->
query
,
thd
->
thread_id
,
MYSQL_QUERY_START
(
thd
->
query
()
,
thd
->
thread_id
,
(
char
*
)
(
thd
->
db
?
thd
->
db
:
""
),
thd
->
security_ctx
->
priv_user
,
(
char
*
)
thd
->
security_ctx
->
host_or_ip
);
...
...
@@ -3085,7 +3085,7 @@ mysql_execute_command(THD *thd)
goto
error
;
DBUG_ASSERT
(
select_lex
->
offset_limit
==
0
);
unit
->
set_limit
(
select_lex
);
MYSQL_UPDATE_START
(
thd
->
query
);
MYSQL_UPDATE_START
(
thd
->
query
()
);
res
=
(
up_result
=
mysql_update
(
thd
,
all_tables
,
select_lex
->
item_list
,
lex
->
value_list
,
...
...
@@ -3159,7 +3159,7 @@ mysql_execute_command(THD *thd)
#endif
{
multi_update
*
result_obj
;
MYSQL_MULTI_UPDATE_START
(
thd
->
query
);
MYSQL_MULTI_UPDATE_START
(
thd
->
query
()
);
res
=
mysql_multi_update
(
thd
,
all_tables
,
&
select_lex
->
item_list
,
&
lex
->
value_list
,
...
...
@@ -3227,7 +3227,7 @@ mysql_execute_command(THD *thd)
res
=
1
;
break
;
}
MYSQL_INSERT_START
(
thd
->
query
);
MYSQL_INSERT_START
(
thd
->
query
()
);
res
=
mysql_insert
(
thd
,
all_tables
,
lex
->
field_list
,
lex
->
many_values
,
lex
->
update_list
,
lex
->
value_list
,
lex
->
duplicates
,
lex
->
ignore
);
...
...
@@ -3269,7 +3269,7 @@ mysql_execute_command(THD *thd)
}
if
(
!
(
res
=
open_and_lock_tables
(
thd
,
all_tables
)))
{
MYSQL_INSERT_SELECT_START
(
thd
->
query
);
MYSQL_INSERT_SELECT_START
(
thd
->
query
()
);
/* Skip first table, which is the table we are inserting in */
TABLE_LIST
*
second_table
=
first_table
->
next_local
;
select_lex
->
table_list
.
first
=
(
uchar
*
)
second_table
;
...
...
@@ -3355,7 +3355,7 @@ mysql_execute_command(THD *thd)
res
=
1
;
break
;
}
MYSQL_DELETE_START
(
thd
->
query
);
MYSQL_DELETE_START
(
thd
->
query
()
);
res
=
mysql_delete
(
thd
,
all_tables
,
select_lex
->
where
,
&
select_lex
->
order_list
,
unit
->
select_limit_cnt
,
select_lex
->
options
,
...
...
@@ -3390,7 +3390,7 @@ mysql_execute_command(THD *thd)
if
((
res
=
open_and_lock_tables
(
thd
,
all_tables
)))
break
;
MYSQL_MULTI_DELETE_START
(
thd
->
query
);
MYSQL_MULTI_DELETE_START
(
thd
->
query
()
);
if
((
res
=
mysql_multi_delete_prepare
(
thd
)))
{
MYSQL_MULTI_DELETE_DONE
(
1
,
0
);
...
...
@@ -6031,7 +6031,7 @@ void mysql_parse(THD *thd, const char *inBuf, uint length,
thd
->
server_status
|=
SERVER_MORE_RESULTS_EXISTS
;
}
lex
->
set_trg_event_type_for_tables
();
MYSQL_QUERY_EXEC_START
(
thd
->
query
,
MYSQL_QUERY_EXEC_START
(
thd
->
query
()
,
thd
->
thread_id
,
(
char
*
)
(
thd
->
db
?
thd
->
db
:
""
),
thd
->
security_ctx
->
priv_user
,
...
...
@@ -7896,7 +7896,7 @@ bool parse_sql(THD *thd,
bool
ret_value
;
DBUG_ASSERT
(
thd
->
m_parser_state
==
NULL
);
MYSQL_QUERY_PARSE_START
(
thd
->
query
);
MYSQL_QUERY_PARSE_START
(
thd
->
query
()
);
/* Backup creation context. */
Object_creation_ctx
*
backup_ctx
=
NULL
;
...
...
sql/sql_prepare.cc
View file @
120425cc
...
...
@@ -3579,7 +3579,7 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
if
(
query_cache_send_result_to_client
(
thd
,
thd
->
query
(),
thd
->
query_length
())
<=
0
)
{
MYSQL_QUERY_EXEC_START
(
thd
->
query
,
MYSQL_QUERY_EXEC_START
(
thd
->
query
()
,
thd
->
thread_id
,
(
char
*
)
(
thd
->
db
?
thd
->
db
:
""
),
thd
->
security_ctx
->
priv_user
,
...
...
sql/sql_select.cc
View file @
120425cc
...
...
@@ -241,7 +241,7 @@ bool handle_select(THD *thd, LEX *lex, select_result *result,
bool
res
;
register
SELECT_LEX
*
select_lex
=
&
lex
->
select_lex
;
DBUG_ENTER
(
"handle_select"
);
MYSQL_SELECT_START
(
thd
->
query
);
MYSQL_SELECT_START
(
thd
->
query
()
);
if
(
select_lex
->
master_unit
()
->
is_union
()
||
select_lex
->
master_unit
()
->
fake_select_lex
)
...
...
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