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
51a1ebe8
Commit
51a1ebe8
authored
Jun 07, 2007
by
jimw@rama.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new-maint
into rama.(none):/home/jimw/my/mysql-5.1-clean
parents
3c93323d
bbd7ed02
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
166 additions
and
61 deletions
+166
-61
BitKeeper/triggers/pre-commit
BitKeeper/triggers/pre-commit
+0
-1
cmd-line-utils/libedit/el_term.h
cmd-line-utils/libedit/el_term.h
+10
-0
configure.in
configure.in
+13
-0
mysql-test/extra/binlog_tests/binlog.test
mysql-test/extra/binlog_tests/binlog.test
+1
-0
mysql-test/extra/binlog_tests/blackhole.test
mysql-test/extra/binlog_tests/blackhole.test
+6
-1
mysql-test/extra/binlog_tests/ctype_cp932_binlog.test
mysql-test/extra/binlog_tests/ctype_cp932_binlog.test
+1
-0
mysql-test/extra/binlog_tests/ctype_ucs_binlog.test
mysql-test/extra/binlog_tests/ctype_ucs_binlog.test
+1
-0
mysql-test/extra/binlog_tests/drop_temp_table.test
mysql-test/extra/binlog_tests/drop_temp_table.test
+2
-2
mysql-test/extra/binlog_tests/insert_select-binlog.test
mysql-test/extra/binlog_tests/insert_select-binlog.test
+1
-0
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
+1
-3
mysql-test/include/have_binlog_format_mixed.inc
mysql-test/include/have_binlog_format_mixed.inc
+2
-0
mysql-test/include/have_binlog_format_mixed_or_row.inc
mysql-test/include/have_binlog_format_mixed_or_row.inc
+2
-0
mysql-test/include/have_binlog_format_mixed_or_statement.inc
mysql-test/include/have_binlog_format_mixed_or_statement.inc
+3
-0
mysql-test/include/have_binlog_format_row.inc
mysql-test/include/have_binlog_format_row.inc
+2
-0
mysql-test/include/have_binlog_format_statement.inc
mysql-test/include/have_binlog_format_statement.inc
+2
-0
mysql-test/include/master-slave.inc
mysql-test/include/master-slave.inc
+3
-0
mysql-test/include/uses_vardir.inc
mysql-test/include/uses_vardir.inc
+15
-0
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+17
-0
mysql-test/r/date_formats.result
mysql-test/r/date_formats.result
+3
-9
mysql-test/r/have_log_bin.require
mysql-test/r/have_log_bin.require
+1
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+14
-0
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+8
-8
mysql-test/t/backup.test
mysql-test/t/backup.test
+5
-0
mysql-test/t/date_formats.test
mysql-test/t/date_formats.test
+3
-3
mysql-test/t/flush_block_commit_notembedded.test
mysql-test/t/flush_block_commit_notembedded.test
+1
-1
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+1
-0
mysql-test/t/mysqlbinlog-cp932.test
mysql-test/t/mysqlbinlog-cp932.test
+1
-0
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+1
-2
mysql-test/t/mysqlbinlog2.test
mysql-test/t/mysqlbinlog2.test
+0
-2
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+1
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+17
-0
mysql-test/t/ps.test
mysql-test/t/ps.test
+1
-0
mysql-test/t/rpl_000015.test
mysql-test/t/rpl_000015.test
+1
-0
mysql-test/t/rpl_rotate_logs.test
mysql-test/t/rpl_rotate_logs.test
+2
-0
mysql-test/t/rpl_sf.test
mysql-test/t/rpl_sf.test
+2
-0
mysql-test/t/user_var-binlog.test
mysql-test/t/user_var-binlog.test
+0
-2
mysys/my_thr_init.c
mysys/my_thr_init.c
+4
-3
sql-common/client.c
sql-common/client.c
+3
-3
sql/ha_partition.cc
sql/ha_partition.cc
+8
-14
sql/sql_acl.cc
sql/sql_acl.cc
+7
-6
No files found.
BitKeeper/triggers/pre-commit
View file @
51a1ebe8
...
...
@@ -20,4 +20,3 @@ then
echo
"Set REAL_EMAIL and retry."
exit
1
fi
cmd-line-utils/libedit/el_term.h
View file @
51a1ebe8
...
...
@@ -90,6 +90,16 @@ extern char* tgoto(const char*, int, int);
extern
char
*
tgetstr
(
char
*
,
char
**
);
#endif
#if !HAVE_DECL_TGOTO
/*
'tgoto' is not declared in the system header files, this causes
problems on 64-bit systems. The function returns a 64 bit pointer
but caller see it as "int" and it's thus truncated to 32-bit
*/
extern
char
*
tgoto
(
const
char
*
,
int
,
int
);
#endif
protected
void
term_move_to_line
(
EditLine
*
,
int
);
protected
void
term_move_to_char
(
EditLine
*
,
int
);
protected
void
term_clear_EOL
(
EditLine
*
,
int
);
...
...
configure.in
View file @
51a1ebe8
...
...
@@ -1867,6 +1867,19 @@ else
fi
AC_SUBST
(
TERMCAP_LIB
)
# Check if the termcap function 'tgoto' is already declared in
# system header files or if it need to be declared locally
AC_CHECK_DECLS
(
tgoto,,,[
#ifdef HAVE_CURSES_H
# include <curses.h>
#elif HAVE_NCURSES_H
# include <ncurses.h>
#endif
#ifdef HAVE_TERM_H
# include <term.h>
#endif
])
LIBEDIT_LOBJECTS
=
""
AC_CHECK_FUNC
(
strunvis, ,[LIBEDIT_LOBJECTS
=
"
$LIBEDIT_LOBJECTS
unvis.o"
])
AC_CHECK_FUNC
(
strvis, ,[LIBEDIT_LOBJECTS
=
"
$LIBEDIT_LOBJECTS
vis.o"
])
...
...
mysql-test/extra/binlog_tests/binlog.test
View file @
51a1ebe8
...
...
@@ -4,6 +4,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_debug
.
inc
--
disable_warnings
...
...
mysql-test/extra/binlog_tests/blackhole.test
View file @
51a1ebe8
...
...
@@ -4,6 +4,11 @@
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_blackhole
.
inc
--
source
include
/
have_log_bin
.
inc
# The server need to be started in $MYSQLTEST_VARDIR since it
# uses ../std_data_ln/
--
source
include
/
uses_vardir
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
...
...
@@ -109,7 +114,7 @@ insert into t1 values(1);
insert
ignore
into
t1
values
(
1
);
replace
into
t1
values
(
100
);
create
table
t2
(
a
varchar
(
200
))
engine
=
blackhole
;
load
data
infile
'../std_data_ln/words.dat'
into
table
t2
;
eval
load
data
infile
'../std_data_ln/words.dat'
into
table
t2
;
alter
table
t1
add
b
int
;
alter
table
t1
drop
b
;
create
table
t3
like
t1
;
...
...
mysql-test/extra/binlog_tests/ctype_cp932_binlog.test
View file @
51a1ebe8
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_log_bin
.
inc
--
character_set
cp932
--
disable_warnings
...
...
mysql-test/extra/binlog_tests/ctype_ucs_binlog.test
View file @
51a1ebe8
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_ucs2
.
inc
--
source
include
/
have_log_bin
.
inc
#
# Check correct binlogging of UCS2 user variables (BUG#3875)
...
...
mysql-test/extra/binlog_tests/drop_temp_table.test
View file @
51a1ebe8
# Embedded server doesn't support binlog
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
drop
database
if
exists
`drop-temp+table-test`
;
...
...
mysql-test/extra/binlog_tests/insert_select-binlog.test
View file @
51a1ebe8
# Embedded server doesn't support binlog
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
...
...
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
View file @
51a1ebe8
...
...
@@ -5,9 +5,7 @@
# did some tests manually on a slave; tables are replicated fine and
# Exec_Master_Log_Pos advances as expected.
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug
.
inc
...
...
mysql-test/include/have_binlog_format_mixed.inc
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
--
require
r
/
have_binlog_format_mixed
.
require
disable_query_log
;
show
variables
like
"binlog_format"
;
...
...
mysql-test/include/have_binlog_format_mixed_or_row.inc
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
--
require
r
/
have_binlog_format_row
.
require
--
disable_query_log
--
replace_result
MIXED
ROW
...
...
mysql-test/include/have_binlog_format_mixed_or_statement.inc
View file @
51a1ebe8
source
include
/
have_log_bin
.
inc
;
--
require
r
/
have_binlog_format_statement
.
require
--
disable_query_log
--
replace_result
MIXED
STATEMENT
...
...
mysql-test/include/have_binlog_format_row.inc
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
--
require
r
/
have_binlog_format_row
.
require
disable_query_log
;
show
variables
like
"binlog_format"
;
...
...
mysql-test/include/have_binlog_format_statement.inc
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
--
require
r
/
have_binlog_format_statement
.
require
disable_query_log
;
show
variables
like
"binlog_format"
;
...
...
mysql-test/include/master-slave.inc
View file @
51a1ebe8
# Replication tests need binlog
source
include
/
have_log_bin
.
inc
;
connect
(
master
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
master1
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
slave
,
127.0
.
0.1
,
root
,,
test
,
$SLAVE_MYPORT
,);
...
...
mysql-test/include/uses_vardir.inc
0 → 100644
View file @
51a1ebe8
#
# Some tests uses LOAD DATA with a relative path
# and need to see for example ../std_data
#
# Also if an absolute path was used, the server might be started
# with --secure-file-priv and wouldn't be allowed to LOAD a file
# outside of it's vardir anyway
#
let
$datadir
=
query_get_value
(
"SHOW VARIABLES LIKE 'datadir'"
,
Value
,
1
);
if
(
`select LOCATE("$MYSQLTEST_VARDIR", "$datadir") != 1`
)
{
skip
Need
mysqld
in
MYSQLTEST_VARDIR
;
}
mysql-test/lib/mtr_cases.pl
View file @
51a1ebe8
...
...
@@ -596,6 +596,22 @@ sub collect_one_test_case($$$$$$$) {
}
}
if
(
$tinfo
->
{'
need_binlog
'}
)
{
if
(
grep
(
/^--skip-log-bin/
,
@::opt_extra_mysqld_opt
)
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
comment
'}
=
"
Test need binlog
";
return
;
}
}
else
{
# Test does not need binlog, add --skip-binlog to
# the options used when starting it
push
(
@
{
$tinfo
->
{'
master_opt
'}},
"
--skip-log-bin
");
}
}
}
...
...
@@ -606,6 +622,7 @@ our @tags=
(
["
include/have_innodb.inc
",
"
innodb_test
",
1
],
["
include/have_binlog_format_row.inc
",
"
binlog_format
",
"
row
"],
["
include/have_log_bin.inc
",
"
need_binlog
",
1
],
["
include/have_binlog_format_statement.inc
",
"
binlog_format
",
"
statement
"],
["
include/have_binlog_format_mixed.inc
",
"
binlog_format
",
"
mixed
"],
["
include/big_test.inc
",
"
big_test
",
1
],
...
...
mysql-test/r/date_formats.result
View file @
51a1ebe8
drop table if exists t1;
SHOW GLOBAL VARIABLES LIKE "%
_format%
";
SHOW GLOBAL VARIABLES LIKE "%
e_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
time_format %H.%i.%s
SHOW SESSION VARIABLES LIKE "%
_format%
";
SHOW SESSION VARIABLES LIKE "%
e_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
time_format %H.%i.%s
SET time_format='%H%i%s';
SET time_format='%H:%i:%s.%f';
...
...
@@ -30,12 +26,10 @@ set datetime_format= '%H:%i:%s %Y-%m-%d';
set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
set datetime_format= '%h:%i:%s %p %Y-%m-%d';
set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
SHOW SESSION VARIABLES LIKE "%format";
SHOW SESSION VARIABLES LIKE "%
e_
format";
Variable_name Value
binlog_format <format>
date_format %m-%d-%Y
datetime_format %h:%i:%s.%f %p %Y-%m-%d
default_week_format 0
time_format %h:%i:%s%p
SET time_format='%h:%i:%s';
ERROR 42000: Variable 'time_format' can't be set to the value of '%h:%i:%s'
...
...
mysql-test/r/have_log_bin.require
View file @
51a1ebe8
Variable_name Value
have_
log_bin ON
log_bin ON
mysql-test/r/partition.result
View file @
51a1ebe8
...
...
@@ -1235,4 +1235,18 @@ aaa 2
drop table t1;
create table t1 (s1 bigint) partition by list (s1) (partition p1 values in (-9223372036854775808));
drop table t1;
create table t1(a int auto_increment, b int, primary key (b, a))
partition by hash(b) partitions 2;
insert into t1 values (null, 1);
show table status;
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 MyISAM 10 Fixed 1 9 9 0 0 0 1 NULL NULL NULL latin1_swedish_ci NULL partitioned
drop table t1;
create table t1(a int auto_increment primary key)
partition by key(a) partitions 2;
insert into t1 values (null), (null), (null);
show table status;
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 MyISAM 10 Fixed 3 7 21 0 0 0 4 NULL NULL NULL latin1_swedish_ci NULL partitioned
drop table t1;
End of 5.1 tests
mysql-test/r/view_grant.result
View file @
51a1ebe8
...
...
@@ -603,9 +603,9 @@ Warnings:
Note 1449 There is no 'no-such-user'@'localhost' registered
SHOW CREATE VIEW v;
View Create View
v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `t1`.`a` AS `a` from `t1`
v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `t
est`.`t
1`.`a` AS `a` from `t1`
Warnings:
Note 1449 There is no 'no-such-user'@'localhost' registered
Warning 1356 View 'test.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
SELECT * FROM v;
ERROR HY000: There is no 'no-such-user'@'localhost' registered
DROP VIEW v;
...
...
@@ -889,23 +889,23 @@ Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t
est`.`t
1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
ALTER ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=MERGE DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
v1 CREATE ALGORITHM=MERGE DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t
est`.`t
1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
ALTER ALGORITHM=TEMPTABLE DEFINER=no_such@user_2 VIEW v1 AS SELECT * FROM t1;
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`no_such`@`user_2` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`no_such`@`user_2` SQL SECURITY DEFINER VIEW `v1` AS select `t
est`.`t
1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
Warning 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
DROP VIEW v1;
DROP TABLE t1;
End of 5.1 tests.
mysql-test/t/backup.test
View file @
51a1ebe8
# The server need to be started in $MYSQLTEST_VARDIR since it
# uses ../std_data_ln/
--
source
include
/
uses_vardir
.
inc
#
# This test is a bit tricky as we can't use backup table to overwrite an old
# table
...
...
mysql-test/t/date_formats.test
View file @
51a1ebe8
...
...
@@ -7,9 +7,9 @@ drop table if exists t1;
--
enable_warnings
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
GLOBAL
VARIABLES
LIKE
"%
_format%
"
;
SHOW
GLOBAL
VARIABLES
LIKE
"%
e_format
"
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%
_format%
"
;
SHOW
SESSION
VARIABLES
LIKE
"%
e_format
"
;
#
# Test setting a lot of different formats to see which formats are accepted and
...
...
@@ -37,7 +37,7 @@ set datetime_format= '%h:%i:%s %p %Y-%m-%d';
set
datetime_format
=
'%h:%i:%s.%f %p %Y-%m-%d'
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%format"
;
SHOW
SESSION
VARIABLES
LIKE
"%
e_
format"
;
--
error
1231
SET
time_format
=
'%h:%i:%s'
;
...
...
mysql-test/t/flush_block_commit_notembedded.test
View file @
51a1ebe8
...
...
@@ -4,7 +4,7 @@
# This is intended to mimick how mysqldump and innobackup work.
# And it requires InnoDB
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_innodb
.
inc
connect
(
con1
,
localhost
,
root
,,);
...
...
mysql-test/t/innodb.test
View file @
51a1ebe8
...
...
@@ -13,6 +13,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_log_bin
.
inc
#
# Small basic test with ignore
...
...
mysql-test/t/mysqlbinlog-cp932.test
View file @
51a1ebe8
...
...
@@ -3,6 +3,7 @@
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
--
source
include
/
have_cp932
.
inc
--
source
include
/
have_log_bin
.
inc
# Bug#16217 (mysql client did not know how not switch its internal charset)
flush
logs
;
...
...
mysql-test/t/mysqlbinlog.test
View file @
51a1ebe8
...
...
@@ -2,8 +2,7 @@
# TODO: Need to look at making a row based version once the new row based client is completed. [jbm]
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
# we need this for getting fixed timestamps inside of this test
set
timestamp
=
1000000000
;
...
...
mysql-test/t/mysqlbinlog2.test
View file @
51a1ebe8
...
...
@@ -4,8 +4,6 @@
# TODO: Need to look at making row based version once new binlog client is complete.
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
--
disable_warnings
drop
table
if
exists
t1
;
...
...
mysql-test/t/mysqldump.test
View file @
51a1ebe8
# Embedded server doesn't support external clients
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
,
t1aa
,
t2
,
t2aa
,
t3
;
...
...
mysql-test/t/partition.test
View file @
51a1ebe8
...
...
@@ -1448,4 +1448,21 @@ drop table t1;
create
table
t1
(
s1
bigint
)
partition
by
list
(
s1
)
(
partition
p1
values
in
(
-
9223372036854775808
));
drop
table
t1
;
#
# Bug #28806: Running SHOW TABLE STATUS during high INSERT load crashes server
#
create
table
t1
(
a
int
auto_increment
,
b
int
,
primary
key
(
b
,
a
))
partition
by
hash
(
b
)
partitions
2
;
insert
into
t1
values
(
null
,
1
);
--
replace_column
9
0
12
NULL
13
NULL
14
NULL
show
table
status
;
drop
table
t1
;
create
table
t1
(
a
int
auto_increment
primary
key
)
partition
by
key
(
a
)
partitions
2
;
insert
into
t1
values
(
null
),
(
null
),
(
null
);
--
replace_column
9
0
12
NULL
13
NULL
14
NULL
show
table
status
;
drop
table
t1
;
--
echo
End
of
5.1
tests
mysql-test/t/ps.test
View file @
51a1ebe8
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
#
# SQL Syntax for Prepared Statements test
#
...
...
mysql-test/t/rpl_000015.test
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
#####################
# Change Author: JBM
# Change Date: 2006-01-17
...
...
mysql-test/t/rpl_rotate_logs.test
View file @
51a1ebe8
# This test uses chmod, can't be run with root permissions
--
source
include
/
not_as_root
.
inc
--
source
include
/
have_log_bin
.
inc
#
# Test is run with max_binlog_size=2048 to force automatic rotation of the
# binary log
...
...
mysql-test/t/rpl_sf.test
View file @
51a1ebe8
--
source
include
/
have_log_bin
.
inc
# Bug#16456 RBR: rpl_sp.test expects query to fail, but passes in RBR
# save status
...
...
mysql-test/t/user_var-binlog.test
View file @
51a1ebe8
# Requires statement logging
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
# TODO: Create row based version once $MYSQL_BINLOG has new RB version
# Embedded server does not support binlogging
--
source
include
/
not_embedded
.
inc
# Check that user variables are binlogged correctly (BUG#3875)
create
table
t1
(
a
varchar
(
50
));
...
...
mysys/my_thr_init.c
View file @
51a1ebe8
...
...
@@ -87,20 +87,21 @@ my_bool my_thread_global_init(void)
fprintf
(
stderr
,
"Can't initialize threads: error %d
\n
"
,
pth_ret
);
return
1
;
}
#ifdef NPTL_PTHREAD_EXIT_BUG
/*
BUG#24507: Race conditions inside current NPTL pthread_exit()
BUG#24507: Race conditions inside current NPTL pthread_exit()
implementation.
To avoid a possible segmentation fault during concurrent
executions of pthread_exit(), a dummy thread is spawned which
initializes internal variables of pthread lib. See bug description
for a full explanation.
TODO: Remove this code when fixed versions of glibc6 are in common
use.
*/
if
(
thd_lib_detected
==
THD_LIB_NPTL
)
{
pthread_t
dummy_thread
;
pthread_attr_t
dummy_thread_attr
;
...
...
sql-common/client.c
View file @
51a1ebe8
...
...
@@ -411,7 +411,7 @@ HANDLE create_shared_memory(MYSQL *mysql,NET *net, uint connect_timeout)
shared_memory_base_name is unique value for each server
unique_part is uniquel value for each object (events and file-mapping)
*/
suffix_pos
=
strxmov
(
tmp
,
shared_memory_base_name
,
"_"
,
NullS
);
suffix_pos
=
strxmov
(
tmp
,
"Global
\\
"
,
shared_memory_base_name
,
"_"
,
NullS
);
strmov
(
suffix_pos
,
"CONNECT_REQUEST"
);
if
(
!
(
event_connect_request
=
OpenEvent
(
event_access_rights
,
FALSE
,
tmp
)))
{
...
...
@@ -465,8 +465,8 @@ HANDLE create_shared_memory(MYSQL *mysql,NET *net, uint connect_timeout)
unique_part is uniquel value for each object (events and file-mapping)
number_of_connection is number of connection between server and client
*/
suffix_pos
=
strxmov
(
tmp
,
shared_memory_base_name
,
"_"
,
connect_number_char
,
"_"
,
NullS
);
suffix_pos
=
strxmov
(
tmp
,
"Global
\\
"
,
shared_memory_base_name
,
"_"
,
connect_number_char
,
"_"
,
NullS
);
strmov
(
suffix_pos
,
"DATA"
);
if
((
handle_file_map
=
OpenFileMapping
(
FILE_MAP_WRITE
,
FALSE
,
tmp
))
==
NULL
)
{
...
...
sql/ha_partition.cc
View file @
51a1ebe8
...
...
@@ -4253,22 +4253,16 @@ int ha_partition::info(uint flag)
if
(
flag
&
HA_STATUS_AUTO
)
{
ulonglong
nb_reserved_values
;
ulonglong
auto_increment_value
=
0
;
DBUG_PRINT
(
"info"
,
(
"HA_STATUS_AUTO"
));
/* we don't want to reserve any values, it's pure information */
if
(
table
->
found_next_number_field
)
file_array
=
m_file
;
do
{
/*
Can only call get_auto_increment for tables that actually
have auto_increment columns, otherwise there will be
problems in handlers that don't expect get_auto_increment
for non-autoincrement tables.
*/
get_auto_increment
(
0
,
0
,
0
,
&
stats
.
auto_increment_value
,
&
nb_reserved_values
);
release_auto_increment
();
}
file
=
*
file_array
;
file
->
info
(
HA_STATUS_AUTO
);
set_if_bigger
(
auto_increment_value
,
file
->
stats
.
auto_increment_value
);
}
while
(
*
(
++
file_array
));
stats
.
auto_increment_value
=
auto_increment_value
;
}
if
(
flag
&
HA_STATUS_VARIABLE
)
{
...
...
sql/sql_acl.cc
View file @
51a1ebe8
...
...
@@ -1110,14 +1110,15 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host,
*/
for
(
i
=
0
;
i
<
acl_users
.
elements
;
i
++
)
{
acl_user
=
dynamic_element
(
&
acl_users
,
i
,
ACL_USER
*
);
if
((
!
acl_user
->
user
&&
!
user
[
0
])
||
(
acl_user
->
user
&&
strcmp
(
user
,
acl_user
->
user
)
==
0
))
ACL_USER
*
acl_user_tmp
=
dynamic_element
(
&
acl_users
,
i
,
ACL_USER
*
);
if
((
!
acl_user
_tmp
->
user
&&
!
user
[
0
])
||
(
acl_user_tmp
->
user
&&
strcmp
(
user
,
acl_user_tmp
->
user
)
==
0
))
{
if
(
compare_hostname
(
&
acl_user
->
host
,
host
,
ip
))
if
(
compare_hostname
(
&
acl_user
_tmp
->
host
,
host
,
ip
))
{
res
=
0
;
break
;
acl_user
=
acl_user_tmp
;
res
=
0
;
break
;
}
}
}
...
...
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