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
8bbb5208
Commit
8bbb5208
authored
Mar 01, 2007
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fix
parent
90c6b836
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
190 additions
and
21 deletions
+190
-21
mysql-test/r/ctype_cp932_binlog_stm.result
mysql-test/r/ctype_cp932_binlog_stm.result
+6
-6
mysql-test/r/mysqlbinlog.result
mysql-test/r/mysqlbinlog.result
+8
-7
mysql-test/r/rpl_loaddata_simple.result
mysql-test/r/rpl_loaddata_simple.result
+153
-0
mysql-test/t/ctype_cp932_binlog_stm.test
mysql-test/t/ctype_cp932_binlog_stm.test
+1
-1
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+4
-3
mysql-test/t/rpl_loaddata_simple.test
mysql-test/t/rpl_loaddata_simple.test
+14
-0
sql/log_event.cc
sql/log_event.cc
+4
-4
No files found.
mysql-test/r/ctype_cp932_binlog_stm.result
View file @
8bbb5208
...
...
@@ -30,17 +30,17 @@ HEX(s1) HEX(s2) d
466F6F2773206120426172 ED40ED41ED42 47.93
DROP PROCEDURE bug18293|
DROP TABLE t4|
SHOW BINLOG EVENTS FROM
397
|
SHOW BINLOG EVENTS FROM
406
|
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001
397 Query 1 560
use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
master-bin.000001
406 Query 1 572
use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
s2 CHAR(50) CHARACTER SET cp932,
d DECIMAL(10,2))
master-bin.000001 5
60 Query 1 805
use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE bug18293 (IN ins1 CHAR(50),
master-bin.000001 5
72 Query 1 820
use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE bug18293 (IN ins1 CHAR(50),
IN ins2 CHAR(50) CHARACTER SET cp932,
IN ind DECIMAL(10,2))
BEGIN
INSERT INTO t4 VALUES (ins1, ins2, ind);
END
master-bin.000001 8
05 Query 1 1021
use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172), NAME_CONST('ins2',_cp932 0xED40ED41ED42), NAME_CONST('ind',47.93))
master-bin.000001 10
21 Query 1 1107
use `test`; DROP PROCEDURE bug18293
master-bin.000001 11
07 Query 1 1183
use `test`; DROP TABLE t4
master-bin.000001 8
20 Query 1 1039
use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172), NAME_CONST('ins2',_cp932 0xED40ED41ED42), NAME_CONST('ind',47.93))
master-bin.000001 10
39 Query 1 1128
use `test`; DROP PROCEDURE bug18293
master-bin.000001 11
28 Query 1 1207
use `test`; DROP TABLE t4
mysql-test/r/mysqlbinlog.result
View file @
8bbb5208
...
...
@@ -308,26 +308,27 @@ SET @@session.sql_mode=0/*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
create table t1 (a varchar(64) character set utf8)/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-6-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-6-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-7-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-7-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-8-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-8-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-9-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-9-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-a-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-a-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-b-0' INTO table t1/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-b-0' INTO table t1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE '
/home/bar/mysql-5.0.b15126/mysql-test/var/tmp
/SQL_LOAD_MB-c-0' INTO table t1 character set koi8r/*!*/;
load data LOCAL INFILE '
MYSQL_TMP_DIR
/SQL_LOAD_MB-c-0' INTO table t1 character set koi8r/*!*/;
SET TIMESTAMP=1000000000/*!*/;
drop table t1/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
flush logs;
mysql-test/r/rpl_loaddata_simple.result
0 → 100644
View file @
8bbb5208
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
CREATE TABLE t1 (word CHAR(20) NOT NULL);
LOAD DATA INFILE '../std_data_ln/words.dat' INTO TABLE t1;
SELECT * FROM t1 ORDER BY word;
word
Aarhus
Aarhus
Aaron
Aaron
Ababa
Ababa
aback
aback
abaft
abaft
abandon
abandon
abandoned
abandoned
abandoning
abandoning
abandonment
abandonment
abandons
abandons
abase
abased
abasement
abasements
abases
abash
abashed
abashes
abashing
abasing
abate
abated
abatement
abatements
abater
abates
abating
Abba
abbe
abbey
abbeys
abbot
abbots
Abbott
abbreviate
abbreviated
abbreviates
abbreviating
abbreviation
abbreviations
Abby
abdomen
abdomens
abdominal
abduct
abducted
abduction
abductions
abductor
abductors
abducts
Abe
abed
Abel
Abelian
Abelson
Aberdeen
Abernathy
aberrant
aberration
SELECT * FROM t1 ORDER BY word;
word
Aarhus
Aarhus
Aaron
Aaron
Ababa
Ababa
aback
aback
abaft
abaft
abandon
abandon
abandoned
abandoned
abandoning
abandoning
abandonment
abandonment
abandons
abandons
abase
abased
abasement
abasements
abases
abash
abashed
abashes
abashing
abasing
abate
abated
abatement
abatements
abater
abates
abating
Abba
abbe
abbey
abbeys
abbot
abbots
Abbott
abbreviate
abbreviated
abbreviates
abbreviating
abbreviation
abbreviations
Abby
abdomen
abdomens
abdominal
abduct
abducted
abduction
abductions
abductor
abductors
abducts
Abe
abed
Abel
Abelian
Abelson
Aberdeen
Abernathy
aberrant
aberration
drop table t1;
mysql-test/t/ctype_cp932_binlog_stm.test
View file @
8bbb5208
...
...
@@ -22,7 +22,7 @@ CALL bug18293("Foo's a Bar", _cp932 0xED40ED41ED42, 47.93)|
SELECT
HEX
(
s1
),
HEX
(
s2
),
d
FROM
t4
|
DROP
PROCEDURE
bug18293
|
DROP
TABLE
t4
|
SHOW
BINLOG
EVENTS
FROM
397
|
SHOW
BINLOG
EVENTS
FROM
406
|
delimiter
;
|
# End of 5.0 tests
...
...
mysql-test/t/mysqlbinlog.test
View file @
8bbb5208
...
...
@@ -214,7 +214,8 @@ load data infile '../std_data_ln/loaddata6.dat' into table t1 character set koi8
select
hex
(
a
)
from
t1
;
drop
table
t1
;
flush
logs
;
--
exec
$MYSQL_BINLOG
--
short
-
form
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000011
--
replace_result
$MYSQL_TMP_DIR
MYSQL_TMP_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000012
# End of 5.0 tests
...
...
@@ -223,7 +224,7 @@ flush logs;
#
flush
logs
;
--
error
1
--
exec
$MYSQL_BINLOG
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00001
2
>/
dev
/
null
2
>/
dev
/
null
--
exec
$MYSQL_BINLOG
--
force
-
if
-
open
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00001
2
>/
dev
/
null
2
>/
dev
/
null
--
exec
$MYSQL_BINLOG
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00001
4
>/
dev
/
null
2
>/
dev
/
null
--
exec
$MYSQL_BINLOG
--
force
-
if
-
open
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00001
4
>/
dev
/
null
2
>/
dev
/
null
# End of 5.1 tests
mysql-test/t/rpl_loaddata_simple.test
0 → 100644
View file @
8bbb5208
--
source
include
/
master
-
slave
.
inc
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
);
LOAD
DATA
INFILE
'../std_data_ln/words.dat'
INTO
TABLE
t1
;
SELECT
*
FROM
t1
ORDER
BY
word
;
sync_slave_with_master
;
# Check
SELECT
*
FROM
t1
ORDER
BY
word
;
# Cleanup
connection
master
;
drop
table
t1
;
sync_slave_with_master
;
sql/log_event.cc
View file @
8bbb5208
...
...
@@ -1865,11 +1865,11 @@ void Query_log_event::print_query_header(IO_CACHE* file,
if
(
charset_database_number
!=
print_event_info
->
charset_database_number
)
{
if
(
charset_database_number
)
f
printf
(
file
,
"SET @@session.collation_database=%d%s
\n
"
,
charset_database_number
,
print_event_info
->
delimiter
);
my_b_
printf
(
file
,
"SET @@session.collation_database=%d%s
\n
"
,
charset_database_number
,
print_event_info
->
delimiter
);
else
f
printf
(
file
,
"SET @@session.collation_database=DEFAULT%s
\n
"
,
print_event_info
->
delimiter
);
my_b_
printf
(
file
,
"SET @@session.collation_database=DEFAULT%s
\n
"
,
print_event_info
->
delimiter
);
print_event_info
->
charset_database_number
=
charset_database_number
;
}
}
...
...
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