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
4f966145
Commit
4f966145
authored
Jun 17, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes.
parent
62dacf08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
16 deletions
+17
-16
sql/mysql_priv.h
sql/mysql_priv.h
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+6
-6
sql/sql_class.h
sql/sql_class.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_prepare.cc
sql/sql_prepare.cc
+7
-8
No files found.
sql/mysql_priv.h
View file @
4f966145
...
...
@@ -599,6 +599,7 @@ bool mysql_execute_command(THD *thd);
bool
do_command
(
THD
*
thd
);
bool
dispatch_command
(
enum
enum_server_command
command
,
THD
*
thd
,
char
*
packet
,
uint
packet_length
);
void
log_slow_statement
(
THD
*
thd
);
bool
check_dup
(
const
char
*
db
,
const
char
*
name
,
TABLE_LIST
*
tables
);
bool
table_cache_init
(
void
);
...
...
@@ -1116,6 +1117,7 @@ extern my_bool opt_slave_compressed_protocol, use_temp_pool;
extern
my_bool
opt_readonly
,
lower_case_file_system
;
extern
my_bool
opt_enable_named_pipe
,
opt_sync_frm
,
opt_allow_suspicious_udfs
;
extern
my_bool
opt_secure_auth
;
extern
my_bool
opt_log_slow_admin_statements
;
extern
my_bool
sp_automatic_privileges
,
opt_noacl
;
extern
my_bool
opt_old_style_user_limits
,
trust_routine_creators
;
extern
uint
opt_crash_binlog_innodb
;
...
...
sql/mysqld.cc
View file @
4f966145
...
...
@@ -5725,12 +5725,12 @@ struct show_var_st status_vars[]= {
{
"Com_show_warnings"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_SHOW_WARNS
]),
SHOW_LONG_STATUS
},
{
"Com_slave_start"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_SLAVE_START
]),
SHOW_LONG_STATUS
},
{
"Com_slave_stop"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_SLAVE_STOP
]),
SHOW_LONG_STATUS
},
{
"Com_stmt_prepare"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_prepare
),
SHOW_LONG
},
{
"Com_stmt_execute"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_execute
),
SHOW_LONG
},
{
"Com_stmt_fetch"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_fetch
),
SHOW_LONG
},
{
"Com_stmt_send_long_data"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_send_long_data
),
SHOW_LONG
},
{
"Com_stmt_reset"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_reset
),
SHOW_LONG
},
{
"Com_stmt_close"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_close
),
SHOW_LONG
},
{
"Com_stmt_prepare"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_prepare
),
SHOW_LONG
_STATUS
},
{
"Com_stmt_execute"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_execute
),
SHOW_LONG
_STATUS
},
{
"Com_stmt_fetch"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_fetch
),
SHOW_LONG
_STATUS
},
{
"Com_stmt_send_long_data"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_send_long_data
),
SHOW_LONG
_STATUS
},
{
"Com_stmt_reset"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_reset
),
SHOW_LONG
_STATUS
},
{
"Com_stmt_close"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stmt_close
),
SHOW_LONG
_STATUS
},
{
"Com_truncate"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_TRUNCATE
]),
SHOW_LONG_STATUS
},
{
"Com_unlock_tables"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_UNLOCK_TABLES
]),
SHOW_LONG_STATUS
},
{
"Com_update"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_UPDATE
]),
SHOW_LONG_STATUS
},
...
...
sql/sql_class.h
View file @
4f966145
...
...
@@ -647,7 +647,7 @@ typedef struct system_status_var
variable in system_status_var
*/
#define last_system_status_var
filesort_scan_count
#define last_system_status_var
com_stmt_close
void
free_tmp_table
(
THD
*
thd
,
TABLE
*
entry
);
...
...
sql/sql_parse.cc
View file @
4f966145
...
...
@@ -2523,7 +2523,7 @@ mysql_execute_command(THD *thd)
lex
->
prepared_stmt_name
.
length
,
lex
->
prepared_stmt_name
.
str
));
/* We account deallocate in the same manner as mysql_stmt_close */
statistic_increment
(
com_stmt_close
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_close
,
&
LOCK_status
);
if
((
stmt
=
thd
->
stmt_map
.
find_by_name
(
&
lex
->
prepared_stmt_name
)))
{
thd
->
stmt_map
.
erase
(
stmt
);
...
...
sql/sql_prepare.cc
View file @
4f966145
...
...
@@ -1716,7 +1716,7 @@ bool mysql_stmt_prepare(THD *thd, char *packet, uint packet_length,
However, it seems handy if com_stmt_prepare is increased always,
no matter what kind of prepare is processed.
*/
statistic_increment
(
com_stmt_prepare
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_prepare
,
&
LOCK_status
);
if
(
stmt
==
0
)
DBUG_RETURN
(
TRUE
);
...
...
@@ -1962,7 +1962,7 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
packet
+=
9
;
/* stmt_id + 5 bytes of flags */
statistic_increment
(
com_stmt_execute
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_execute
,
&
LOCK_status
);
if
(
!
(
stmt
=
find_prepared_statement
(
thd
,
stmt_id
,
"mysql_stmt_execute"
)))
DBUG_VOID_RETURN
;
...
...
@@ -2092,7 +2092,7 @@ void mysql_sql_stmt_execute(THD *thd, LEX_STRING *stmt_name)
DBUG_ASSERT
(
thd
->
free_list
==
NULL
);
/* See comment for statistic_increment in mysql_stmt_prepare */
statistic_increment
(
com_stmt_execute
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_execute
,
&
LOCK_status
);
if
(
!
(
stmt
=
(
Prepared_statement
*
)
thd
->
stmt_map
.
find_by_name
(
stmt_name
)))
{
...
...
@@ -2202,7 +2202,7 @@ void mysql_stmt_fetch(THD *thd, char *packet, uint packet_length)
Prepared_statement
*
stmt
;
DBUG_ENTER
(
"mysql_stmt_fetch"
);
statistic_increment
(
com_stmt_fetch
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_fetch
,
&
LOCK_status
);
if
(
!
(
stmt
=
find_prepared_statement
(
thd
,
stmt_id
,
"mysql_stmt_fetch"
)))
DBUG_VOID_RETURN
;
...
...
@@ -2263,7 +2263,7 @@ void mysql_stmt_reset(THD *thd, char *packet)
Prepared_statement
*
stmt
;
DBUG_ENTER
(
"mysql_stmt_reset"
);
statistic_increment
(
com_stmt_reset
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_reset
,
&
LOCK_status
);
if
(
!
(
stmt
=
find_prepared_statement
(
thd
,
stmt_id
,
"mysql_stmt_reset"
)))
DBUG_VOID_RETURN
;
...
...
@@ -2298,7 +2298,7 @@ void mysql_stmt_free(THD *thd, char *packet)
DBUG_ENTER
(
"mysql_stmt_free"
);
statistic_increment
(
com_stmt_close
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_close
,
&
LOCK_status
);
if
(
!
(
stmt
=
find_prepared_statement
(
thd
,
stmt_id
,
"mysql_stmt_close"
)))
DBUG_VOID_RETURN
;
...
...
@@ -2337,7 +2337,7 @@ void mysql_stmt_get_longdata(THD *thd, char *packet, ulong packet_length)
DBUG_ENTER
(
"mysql_stmt_get_longdata"
);
statistic_increment
(
com_stmt_send_long_data
,
&
LOCK_status
);
statistic_increment
(
thd
->
status_var
.
com_stmt_send_long_data
,
&
LOCK_status
);
#ifndef EMBEDDED_LIBRARY
/* Minimal size of long data packet is 6 bytes */
if
((
ulong
)
(
packet_end
-
packet
)
<
MYSQL_LONG_DATA_HEADER
)
...
...
@@ -2420,7 +2420,6 @@ void Prepared_statement::setup_set_params()
}
Prepared_statement
::~
Prepared_statement
()
{
if
(
cursor
)
...
...
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