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
80229d9d
Commit
80229d9d
authored
Aug 05, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
0a5e26d0
631c4fbb
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
76 additions
and
41 deletions
+76
-41
include/myisam.h
include/myisam.h
+1
-1
include/mysql/plugin.h
include/mysql/plugin.h
+1
-1
mysql-test/collections/default.experimental
mysql-test/collections/default.experimental
+0
-2
mysql-test/r/subselect4.result
mysql-test/r/subselect4.result
+21
-0
mysql-test/t/subselect4.test
mysql-test/t/subselect4.test
+16
-0
mysys/my_getopt.c
mysys/my_getopt.c
+5
-5
sql/events.cc
sql/events.cc
+1
-1
sql/events.h
sql/events.h
+1
-1
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+4
-4
sql/mysqld.h
sql/mysqld.h
+3
-3
sql/sql_class.cc
sql/sql_class.cc
+2
-2
sql/sql_class.h
sql/sql_class.h
+6
-6
sql/sql_plugin.cc
sql/sql_plugin.cc
+4
-4
sql/sys_vars.h
sql/sys_vars.h
+7
-7
storage/example/ha_example.cc
storage/example/ha_example.cc
+1
-1
storage/myisam/mi_static.c
storage/myisam/mi_static.c
+2
-2
No files found.
include/myisam.h
View file @
80229d9d
...
@@ -249,7 +249,7 @@ typedef struct st_columndef /* column information */
...
@@ -249,7 +249,7 @@ typedef struct st_columndef /* column information */
extern
char
*
myisam_log_filename
;
/* Name of logfile */
extern
char
*
myisam_log_filename
;
/* Name of logfile */
extern
ulong
myisam_block_size
;
extern
ulong
myisam_block_size
;
extern
u
int
myisam_concurrent_insert
;
extern
u
long
myisam_concurrent_insert
;
extern
my_bool
myisam_flush
,
myisam_delay_key_write
,
myisam_single_user
;
extern
my_bool
myisam_flush
,
myisam_delay_key_write
,
myisam_single_user
;
extern
my_off_t
myisam_max_temp_length
;
extern
my_off_t
myisam_max_temp_length
;
extern
ulong
myisam_data_pointer_size
;
extern
ulong
myisam_data_pointer_size
;
...
...
include/mysql/plugin.h
View file @
80229d9d
...
@@ -327,7 +327,7 @@ DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long long) = { \
...
@@ -327,7 +327,7 @@ DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long long) = { \
#name, comment, check, update, &varname, def, min, max, blk }
#name, comment, check, update, &varname, def, min, max, blk }
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned
int
) = { \
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned
long
) = { \
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \
#name, comment, check, update, &varname, def, typelib }
#name, comment, check, update, &varname, def, typelib }
...
...
mysql-test/collections/default.experimental
View file @
80229d9d
...
@@ -19,7 +19,6 @@ main.mysqlbinlog_row @solaris # Bug#52202 2010-03-22 alik mysqlbinlog
...
@@ -19,7 +19,6 @@ main.mysqlbinlog_row @solaris # Bug#52202 2010-03-22 alik mysqlbinlog
main.mysqlbinlog_row_innodb @solaris # Bug#52202 2010-03-22 alik mysqlbinlog_row* fail in daily-trunk on Sol10 x86_64 debug_max
main.mysqlbinlog_row_innodb @solaris # Bug#52202 2010-03-22 alik mysqlbinlog_row* fail in daily-trunk on Sol10 x86_64 debug_max
main.mysqlbinlog_row_myisam @solaris # Bug#52202 2010-03-22 alik mysqlbinlog_row* fail in daily-trunk on Sol10 x86_64 debug_max
main.mysqlbinlog_row_myisam @solaris # Bug#52202 2010-03-22 alik mysqlbinlog_row* fail in daily-trunk on Sol10 x86_64 debug_max
main.outfile_loaddata @solaris # Bug#46895 2010-01-20 alik Test "outfile_loaddata" fails (reproducible)
main.outfile_loaddata @solaris # Bug#46895 2010-01-20 alik Test "outfile_loaddata" fails (reproducible)
main.plugin* @solaris # Bug#47146 Linking problem with example plugin when dtrace enabled
main.signal_demo3 @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
main.signal_demo3 @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
main.sp @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
main.sp @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
main.type_float @freebsd # Bug#38965 2010-05-04 alik test cases gis-rtree, type_float, type_newdecimal fail in embedded server
main.type_float @freebsd # Bug#38965 2010-05-04 alik test cases gis-rtree, type_float, type_newdecimal fail in embedded server
...
@@ -32,7 +31,6 @@ rpl.rpl_heartbeat_2slaves # BUG#43828 2009-10-22 luis fails spora
...
@@ -32,7 +31,6 @@ rpl.rpl_heartbeat_2slaves # BUG#43828 2009-10-22 luis fails spora
rpl.rpl_innodb_bug28430* # Bug#46029
rpl.rpl_innodb_bug28430* # Bug#46029
rpl.rpl_innodb_bug30888* @solaris # Bug#47646 2009-09-25 alik rpl.rpl_innodb_bug30888 fails sporadically on Solaris
rpl.rpl_innodb_bug30888* @solaris # Bug#47646 2009-09-25 alik rpl.rpl_innodb_bug30888 fails sporadically on Solaris
rpl.rpl_killed_ddl @windows # Bug#47638 2010-01-20 alik The rpl_killed_ddl test fails on Windows
rpl.rpl_killed_ddl @windows # Bug#47638 2010-01-20 alik The rpl_killed_ddl test fails on Windows
rpl.rpl_plugin_load* @solaris # Bug#47146
rpl.rpl_row_sp011* @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
rpl.rpl_row_sp011* @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
sys_vars.max_sp_recursion_depth_func @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
sys_vars.max_sp_recursion_depth_func @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
...
...
mysql-test/r/subselect4.result
View file @
80229d9d
...
@@ -60,6 +60,27 @@ FROM t3 WHERE 1 = 0 GROUP BY 1;
...
@@ -60,6 +60,27 @@ FROM t3 WHERE 1 = 0 GROUP BY 1;
DROP TABLE t1,t2,t3;
DROP TABLE t1,t2,t3;
End of 5.0 tests.
End of 5.0 tests.
#
#
# Bug#54568: create view cause Assertion failed: 0,
# file .\item_subselect.cc, line 836
#
EXPLAIN SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1249 Select 2 was reduced during optimization
DESCRIBE SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1249 Select 2 was reduced during optimization
# None of the below should crash
CREATE VIEW v1 AS SELECT 1 LIKE ( 1 IN ( SELECT 1 ) );
CREATE VIEW v2 AS SELECT 1 LIKE '%' ESCAPE ( 1 IN ( SELECT 1 ) );
DROP VIEW v1, v2;
#
# End of 5.1 tests.
#
#
# Bug#53236 Segfault in DTCollation::set(DTCollation&)
# Bug#53236 Segfault in DTCollation::set(DTCollation&)
#
#
CREATE TABLE t1 (
CREATE TABLE t1 (
...
...
mysql-test/t/subselect4.test
View file @
80229d9d
...
@@ -63,6 +63,22 @@ DROP TABLE t1,t2,t3;
...
@@ -63,6 +63,22 @@ DROP TABLE t1,t2,t3;
--
echo
End
of
5.0
tests
.
--
echo
End
of
5.0
tests
.
--
echo
#
--
echo
# Bug#54568: create view cause Assertion failed: 0,
--
echo
# file .\item_subselect.cc, line 836
--
echo
#
EXPLAIN
SELECT
1
LIKE
(
1
IN
(
SELECT
1
)
);
DESCRIBE
SELECT
1
LIKE
(
1
IN
(
SELECT
1
)
);
--
echo
# None of the below should crash
CREATE
VIEW
v1
AS
SELECT
1
LIKE
(
1
IN
(
SELECT
1
)
);
CREATE
VIEW
v2
AS
SELECT
1
LIKE
'%'
ESCAPE
(
1
IN
(
SELECT
1
)
);
DROP
VIEW
v1
,
v2
;
--
echo
#
--
echo
# End of 5.1 tests.
--
echo
#
--
echo
#
--
echo
#
--
echo
# Bug#53236 Segfault in DTCollation::set(DTCollation&)
--
echo
# Bug#53236 Segfault in DTCollation::set(DTCollation&)
--
echo
#
--
echo
#
...
...
mysys/my_getopt.c
View file @
80229d9d
...
@@ -611,16 +611,16 @@ static int setval(const struct my_option *opts, void *value, char *argument,
...
@@ -611,16 +611,16 @@ static int setval(const struct my_option *opts, void *value, char *argument,
Accept an integer representation of the enumerated item.
Accept an integer representation of the enumerated item.
*/
*/
char
*
endptr
;
char
*
endptr
;
u
int
arg
=
(
uint
)
strtoul
(
argument
,
&
endptr
,
10
);
u
long
arg
=
strtoul
(
argument
,
&
endptr
,
10
);
if
(
*
endptr
||
arg
>=
opts
->
typelib
->
count
)
if
(
*
endptr
||
arg
>=
opts
->
typelib
->
count
)
{
{
res
=
EXIT_ARGUMENT_INVALID
;
res
=
EXIT_ARGUMENT_INVALID
;
goto
ret
;
goto
ret
;
}
}
*
(
u
int
*
)
value
=
arg
;
*
(
u
long
*
)
value
=
arg
;
}
}
else
else
*
(
u
int
*
)
value
=
type
-
1
;
*
(
u
long
*
)
value
=
type
-
1
;
}
}
break
;
break
;
case
GET_SET
:
case
GET_SET
:
...
@@ -1016,7 +1016,7 @@ static void init_one_value(const struct my_option *option, void *variable,
...
@@ -1016,7 +1016,7 @@ static void init_one_value(const struct my_option *option, void *variable,
*
((
int
*
)
variable
)
=
(
int
)
getopt_ll_limit_value
((
int
)
value
,
option
,
NULL
);
*
((
int
*
)
variable
)
=
(
int
)
getopt_ll_limit_value
((
int
)
value
,
option
,
NULL
);
break
;
break
;
case
GET_ENUM
:
case
GET_ENUM
:
*
((
u
int
*
)
variable
)
=
(
uint
)
value
;
*
((
u
long
*
)
variable
)
=
(
ulong
)
value
;
break
;
break
;
case
GET_UINT
:
case
GET_UINT
:
*
((
uint
*
)
variable
)
=
(
uint
)
getopt_ull_limit_value
((
uint
)
value
,
option
,
NULL
);
*
((
uint
*
)
variable
)
=
(
uint
)
getopt_ull_limit_value
((
uint
)
value
,
option
,
NULL
);
...
@@ -1292,7 +1292,7 @@ void my_print_variables(const struct my_option *options)
...
@@ -1292,7 +1292,7 @@ void my_print_variables(const struct my_option *options)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
break
;
break
;
case
GET_ENUM
:
case
GET_ENUM
:
printf
(
"%s
\n
"
,
get_type
(
optp
->
typelib
,
*
(
u
int
*
)
value
));
printf
(
"%s
\n
"
,
get_type
(
optp
->
typelib
,
*
(
u
long
*
)
value
));
break
;
break
;
case
GET_STR
:
case
GET_STR
:
case
GET_STR_ALLOC
:
/* fall through */
case
GET_STR_ALLOC
:
/* fall through */
...
...
sql/events.cc
View file @
80229d9d
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
Event_queue
*
Events
::
event_queue
;
Event_queue
*
Events
::
event_queue
;
Event_scheduler
*
Events
::
scheduler
;
Event_scheduler
*
Events
::
scheduler
;
Event_db_repository
*
Events
::
db_repository
;
Event_db_repository
*
Events
::
db_repository
;
u
int
Events
::
opt_event_scheduler
=
Events
::
EVENTS_OFF
;
u
long
Events
::
opt_event_scheduler
=
Events
::
EVENTS_OFF
;
mysql_mutex_t
Events
::
LOCK_event_metadata
;
mysql_mutex_t
Events
::
LOCK_event_metadata
;
bool
Events
::
check_system_tables_error
=
FALSE
;
bool
Events
::
check_system_tables_error
=
FALSE
;
...
...
sql/events.h
View file @
80229d9d
...
@@ -91,7 +91,7 @@ class Events
...
@@ -91,7 +91,7 @@ class Events
*/
*/
enum
enum_opt_event_scheduler
{
EVENTS_OFF
,
EVENTS_ON
,
EVENTS_DISABLED
};
enum
enum_opt_event_scheduler
{
EVENTS_OFF
,
EVENTS_ON
,
EVENTS_DISABLED
};
/* Protected using LOCK_global_system_variables only. */
/* Protected using LOCK_global_system_variables only. */
static
u
int
opt_event_scheduler
;
static
u
long
opt_event_scheduler
;
static
mysql_mutex_t
LOCK_event_metadata
;
static
mysql_mutex_t
LOCK_event_metadata
;
static
bool
check_if_system_tables_error
();
static
bool
check_if_system_tables_error
();
static
bool
start
();
static
bool
start
();
...
...
sql/item_cmpfunc.cc
View file @
80229d9d
...
@@ -4617,7 +4617,7 @@ bool Item_func_like::fix_fields(THD *thd, Item **ref)
...
@@ -4617,7 +4617,7 @@ bool Item_func_like::fix_fields(THD *thd, Item **ref)
return
TRUE
;
return
TRUE
;
}
}
if
(
escape_item
->
const_item
())
if
(
escape_item
->
const_item
()
&&
!
thd
->
lex
->
view_prepare_mode
)
{
{
/* If we are on execution stage */
/* If we are on execution stage */
String
*
escape_str
=
escape_item
->
val_str
(
&
cmp
.
value1
);
String
*
escape_str
=
escape_item
->
val_str
(
&
cmp
.
value1
);
...
...
sql/mysqld.cc
View file @
80229d9d
...
@@ -439,10 +439,10 @@ static bool calling_initgroups= FALSE; /**< Used in SIGSEGV handler. */
...
@@ -439,10 +439,10 @@ static bool calling_initgroups= FALSE; /**< Used in SIGSEGV handler. */
#endif
#endif
uint
mysqld_port
,
test_flags
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
mysqld_port
,
test_flags
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
mysqld_port_timeout
;
uint
mysqld_port_timeout
;
u
int
delay_key_write_options
;
u
long
delay_key_write_options
;
uint
protocol_version
;
uint
protocol_version
;
uint
lower_case_table_names
;
uint
lower_case_table_names
;
u
int
tc_heuristic_recover
=
0
;
u
long
tc_heuristic_recover
=
0
;
uint
volatile
thread_count
;
uint
volatile
thread_count
;
int32
thread_running
;
int32
thread_running
;
ulong
thread_created
;
ulong
thread_created
;
...
@@ -453,7 +453,7 @@ ulong slow_launch_time, slave_open_temp_tables;
...
@@ -453,7 +453,7 @@ ulong slow_launch_time, slave_open_temp_tables;
ulong
open_files_limit
,
max_binlog_size
,
max_relay_log_size
;
ulong
open_files_limit
,
max_binlog_size
,
max_relay_log_size
;
ulong
slave_trans_retries
;
ulong
slave_trans_retries
;
uint
slave_net_timeout
;
uint
slave_net_timeout
;
u
int
slave_exec_mode_options
;
u
long
slave_exec_mode_options
;
ulonglong
slave_type_conversions_options
;
ulonglong
slave_type_conversions_options
;
ulong
thread_cache_size
=
0
,
thread_pool_size
=
0
;
ulong
thread_cache_size
=
0
,
thread_pool_size
=
0
;
ulong
binlog_cache_size
=
0
;
ulong
binlog_cache_size
=
0
;
...
@@ -552,7 +552,7 @@ char *mysql_data_home= const_cast<char*>(".");
...
@@ -552,7 +552,7 @@ char *mysql_data_home= const_cast<char*>(".");
const
char
*
mysql_real_data_home_ptr
=
mysql_real_data_home
;
const
char
*
mysql_real_data_home_ptr
=
mysql_real_data_home
;
char
server_version
[
SERVER_VERSION_LENGTH
];
char
server_version
[
SERVER_VERSION_LENGTH
];
char
*
mysqld_unix_port
,
*
opt_mysql_tmpdir
;
char
*
mysqld_unix_port
,
*
opt_mysql_tmpdir
;
u
int
thread_handling
;
u
long
thread_handling
;
/** name of reference on left expression in rewritten IN subquery */
/** name of reference on left expression in rewritten IN subquery */
const
char
*
in_left_expr_name
=
"<left expr>"
;
const
char
*
in_left_expr_name
=
"<left expr>"
;
...
...
sql/mysqld.h
View file @
80229d9d
...
@@ -105,7 +105,7 @@ extern uint connection_count;
...
@@ -105,7 +105,7 @@ extern uint connection_count;
extern
my_bool
opt_safe_user_create
;
extern
my_bool
opt_safe_user_create
;
extern
my_bool
opt_safe_show_db
,
opt_local_infile
,
opt_myisam_use_mmap
;
extern
my_bool
opt_safe_show_db
,
opt_local_infile
,
opt_myisam_use_mmap
;
extern
my_bool
opt_slave_compressed_protocol
,
use_temp_pool
;
extern
my_bool
opt_slave_compressed_protocol
,
use_temp_pool
;
extern
u
int
slave_exec_mode_options
;
extern
u
long
slave_exec_mode_options
;
extern
ulonglong
slave_type_conversions_options
;
extern
ulonglong
slave_type_conversions_options
;
extern
my_bool
opt_readonly
,
lower_case_file_system
;
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_enable_named_pipe
,
opt_sync_frm
,
opt_allow_suspicious_udfs
;
...
@@ -136,7 +136,7 @@ extern my_bool relay_log_purge, opt_innodb_safe_binlog, opt_innodb;
...
@@ -136,7 +136,7 @@ extern my_bool relay_log_purge, opt_innodb_safe_binlog, opt_innodb;
extern
my_bool
relay_log_recovery
;
extern
my_bool
relay_log_recovery
;
extern
uint
test_flags
,
select_errors
,
ha_open_options
;
extern
uint
test_flags
,
select_errors
,
ha_open_options
;
extern
uint
protocol_version
,
mysqld_port
,
dropping_tables
;
extern
uint
protocol_version
,
mysqld_port
,
dropping_tables
;
extern
u
int
delay_key_write_options
;
extern
u
long
delay_key_write_options
;
extern
char
*
opt_logname
,
*
opt_slow_logname
;
extern
char
*
opt_logname
,
*
opt_slow_logname
;
extern
char
*
opt_backup_history_logname
,
*
opt_backup_progress_logname
,
extern
char
*
opt_backup_history_logname
,
*
opt_backup_progress_logname
,
*
opt_backup_settings_name
;
*
opt_backup_settings_name
;
...
@@ -300,7 +300,7 @@ extern ulong specialflag;
...
@@ -300,7 +300,7 @@ extern ulong specialflag;
extern
uint
mysql_data_home_len
;
extern
uint
mysql_data_home_len
;
extern
uint
mysql_real_data_home_len
;
extern
uint
mysql_real_data_home_len
;
extern
const
char
*
mysql_real_data_home_ptr
;
extern
const
char
*
mysql_real_data_home_ptr
;
extern
u
int
thread_handling
;
extern
u
long
thread_handling
;
extern
MYSQL_PLUGIN_IMPORT
char
*
mysql_data_home
;
extern
MYSQL_PLUGIN_IMPORT
char
*
mysql_data_home
;
extern
char
server_version
[
SERVER_VERSION_LENGTH
];
extern
char
server_version
[
SERVER_VERSION_LENGTH
];
extern
MYSQL_PLUGIN_IMPORT
char
mysql_real_data_home
[];
extern
MYSQL_PLUGIN_IMPORT
char
mysql_real_data_home
[];
...
...
sql/sql_class.cc
View file @
80229d9d
...
@@ -3640,7 +3640,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
...
@@ -3640,7 +3640,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
{
{
DBUG_ENTER
(
"THD::decide_logging_format"
);
DBUG_ENTER
(
"THD::decide_logging_format"
);
DBUG_PRINT
(
"info"
,
(
"query: %s"
,
query
()));
DBUG_PRINT
(
"info"
,
(
"query: %s"
,
query
()));
DBUG_PRINT
(
"info"
,
(
"variables.binlog_format: %u"
,
DBUG_PRINT
(
"info"
,
(
"variables.binlog_format: %
l
u"
,
variables
.
binlog_format
));
variables
.
binlog_format
));
DBUG_PRINT
(
"info"
,
(
"lex->get_stmt_unsafe_flags(): 0x%x"
,
DBUG_PRINT
(
"info"
,
(
"lex->get_stmt_unsafe_flags(): 0x%x"
,
lex
->
get_stmt_unsafe_flags
()));
lex
->
get_stmt_unsafe_flags
()));
...
@@ -4000,7 +4000,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
...
@@ -4000,7 +4000,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
DBUG_PRINT
(
"info"
,
(
"decision: no logging since "
DBUG_PRINT
(
"info"
,
(
"decision: no logging since "
"mysql_bin_log.is_open() = %d "
"mysql_bin_log.is_open() = %d "
"and (options & OPTION_BIN_LOG) = 0x%llx "
"and (options & OPTION_BIN_LOG) = 0x%llx "
"and binlog_format = %u "
"and binlog_format = %
l
u "
"and binlog_filter->db_ok(db) = %d"
,
"and binlog_filter->db_ok(db) = %d"
,
mysql_bin_log
.
is_open
(),
mysql_bin_log
.
is_open
(),
(
variables
.
option_bits
&
OPTION_BIN_LOG
),
(
variables
.
option_bits
&
OPTION_BIN_LOG
),
...
...
sql/sql_class.h
View file @
80229d9d
...
@@ -114,7 +114,7 @@ extern bool volatile shutdown_in_progress;
...
@@ -114,7 +114,7 @@ extern bool volatile shutdown_in_progress;
#define TC_HEURISTIC_RECOVER_COMMIT 1
#define TC_HEURISTIC_RECOVER_COMMIT 1
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
extern
u
int
tc_heuristic_recover
;
extern
u
long
tc_heuristic_recover
;
typedef
struct
st_user_var_events
typedef
struct
st_user_var_events
{
{
...
@@ -426,13 +426,13 @@ typedef struct system_variables
...
@@ -426,13 +426,13 @@ typedef struct system_variables
ulong
log_warnings
;
ulong
log_warnings
;
ulong
group_concat_max_len
;
ulong
group_concat_max_len
;
u
int
binlog_format
;
///< binlog format for this thd (see enum_binlog_format)
u
long
binlog_format
;
///< binlog format for this thd (see enum_binlog_format)
my_bool
binlog_direct_non_trans_update
;
my_bool
binlog_direct_non_trans_update
;
my_bool
sql_log_bin
;
my_bool
sql_log_bin
;
u
int
completion_type
;
u
long
completion_type
;
u
int
query_cache_type
;
u
long
query_cache_type
;
u
int
tx_isolation
;
u
long
tx_isolation
;
u
int
updatable_views_with_limit
;
u
long
updatable_views_with_limit
;
uint
max_user_connections
;
uint
max_user_connections
;
/**
/**
In slave thread we need to know in behalf of which
In slave thread we need to know in behalf of which
...
...
sql/sql_plugin.cc
View file @
80229d9d
...
@@ -3025,11 +3025,11 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
...
@@ -3025,11 +3025,11 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
Allocate temporary space for the value of the tristate.
Allocate temporary space for the value of the tristate.
This option will have a limited lifetime and is not used beyond
This option will have a limited lifetime and is not used beyond
server initialization.
server initialization.
GET_ENUM value is an unsigned integer.
GET_ENUM value is an unsigned
long
integer.
*/
*/
options
[
0
].
value
=
options
[
1
].
value
=
options
[
0
].
value
=
options
[
1
].
value
=
(
uchar
**
)
alloc_root
(
mem_root
,
sizeof
(
u
int
));
(
uchar
**
)
alloc_root
(
mem_root
,
sizeof
(
u
long
));
*
((
u
int
*
)
options
[
0
].
value
)
=
(
uint
)
options
[
0
].
def_value
;
*
((
u
long
*
)
options
[
0
].
value
)
=
(
ulong
)
options
[
0
].
def_value
;
options
+=
2
;
options
+=
2
;
}
}
...
@@ -3328,7 +3328,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
...
@@ -3328,7 +3328,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
list is always the <plugin name> option value.
list is always the <plugin name> option value.
*/
*/
if
(
!
tmp
->
is_mandatory
)
if
(
!
tmp
->
is_mandatory
)
plugin_load_policy
=
(
enum_plugin_load_policy
)
*
(
u
int
*
)
opts
[
0
].
value
;
plugin_load_policy
=
(
enum_plugin_load_policy
)
*
(
u
long
*
)
opts
[
0
].
value
;
}
}
disable_plugin
=
(
plugin_load_policy
==
PLUGIN_OFF
);
disable_plugin
=
(
plugin_load_policy
==
PLUGIN_OFF
);
...
...
sql/sys_vars.h
View file @
80229d9d
...
@@ -271,28 +271,28 @@ class Sys_var_enum: public Sys_var_typelib
...
@@ -271,28 +271,28 @@ class Sys_var_enum: public Sys_var_typelib
deprecated_version
,
substitute
)
deprecated_version
,
substitute
)
{
{
option
.
var_type
=
GET_ENUM
;
option
.
var_type
=
GET_ENUM
;
global_var
(
u
int
)
=
def_val
;
global_var
(
u
long
)
=
def_val
;
DBUG_ASSERT
(
def_val
<
typelib
.
count
);
DBUG_ASSERT
(
def_val
<
typelib
.
count
);
DBUG_ASSERT
(
size
==
sizeof
(
u
int
));
DBUG_ASSERT
(
size
==
sizeof
(
u
long
));
}
}
bool
session_update
(
THD
*
thd
,
set_var
*
var
)
bool
session_update
(
THD
*
thd
,
set_var
*
var
)
{
{
session_var
(
thd
,
u
int
)
=
var
->
save_result
.
ulonglong_value
;
session_var
(
thd
,
u
long
)
=
var
->
save_result
.
ulonglong_value
;
return
false
;
return
false
;
}
}
bool
global_update
(
THD
*
thd
,
set_var
*
var
)
bool
global_update
(
THD
*
thd
,
set_var
*
var
)
{
{
global_var
(
u
int
)
=
var
->
save_result
.
ulonglong_value
;
global_var
(
u
long
)
=
var
->
save_result
.
ulonglong_value
;
return
false
;
return
false
;
}
}
void
session_save_default
(
THD
*
thd
,
set_var
*
var
)
void
session_save_default
(
THD
*
thd
,
set_var
*
var
)
{
var
->
save_result
.
ulonglong_value
=
global_var
(
u
int
);
}
{
var
->
save_result
.
ulonglong_value
=
global_var
(
u
long
);
}
void
global_save_default
(
THD
*
thd
,
set_var
*
var
)
void
global_save_default
(
THD
*
thd
,
set_var
*
var
)
{
var
->
save_result
.
ulonglong_value
=
option
.
def_value
;
}
{
var
->
save_result
.
ulonglong_value
=
option
.
def_value
;
}
uchar
*
session_value_ptr
(
THD
*
thd
,
LEX_STRING
*
base
)
uchar
*
session_value_ptr
(
THD
*
thd
,
LEX_STRING
*
base
)
{
return
(
uchar
*
)
typelib
.
type_names
[
session_var
(
thd
,
u
int
)];
}
{
return
(
uchar
*
)
typelib
.
type_names
[
session_var
(
thd
,
u
long
)];
}
uchar
*
global_value_ptr
(
THD
*
thd
,
LEX_STRING
*
base
)
uchar
*
global_value_ptr
(
THD
*
thd
,
LEX_STRING
*
base
)
{
return
(
uchar
*
)
typelib
.
type_names
[
global_var
(
u
int
)];
}
{
return
(
uchar
*
)
typelib
.
type_names
[
global_var
(
u
long
)];
}
};
};
/**
/**
...
...
storage/example/ha_example.cc
View file @
80229d9d
...
@@ -912,7 +912,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
...
@@ -912,7 +912,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
struct
st_mysql_storage_engine
example_storage_engine
=
struct
st_mysql_storage_engine
example_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
static
u
int
srv_enum_var
=
0
;
static
u
long
srv_enum_var
=
0
;
static
ulong
srv_ulong_var
=
0
;
static
ulong
srv_ulong_var
=
0
;
const
char
*
enum_var_names
[]
=
const
char
*
enum_var_names
[]
=
...
...
storage/myisam/mi_static.c
View file @
80229d9d
...
@@ -33,9 +33,9 @@ uint myisam_quick_table_bits=9;
...
@@ -33,9 +33,9 @@ uint myisam_quick_table_bits=9;
ulong
myisam_block_size
=
MI_KEY_BLOCK_LENGTH
;
/* Best by test */
ulong
myisam_block_size
=
MI_KEY_BLOCK_LENGTH
;
/* Best by test */
my_bool
myisam_flush
=
0
,
myisam_delay_key_write
=
0
,
myisam_single_user
=
0
;
my_bool
myisam_flush
=
0
,
myisam_delay_key_write
=
0
,
myisam_single_user
=
0
;
#if defined(THREAD) && !defined(DONT_USE_RW_LOCKS)
#if defined(THREAD) && !defined(DONT_USE_RW_LOCKS)
u
int
myisam_concurrent_insert
=
2
;
u
long
myisam_concurrent_insert
=
2
;
#else
#else
u
int
myisam_concurrent_insert
=
0
;
u
long
myisam_concurrent_insert
=
0
;
#endif
#endif
ulonglong
myisam_max_temp_length
=
MAX_FILE_SIZE
;
ulonglong
myisam_max_temp_length
=
MAX_FILE_SIZE
;
ulong
myisam_data_pointer_size
=
4
;
ulong
myisam_data_pointer_size
=
4
;
...
...
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