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
7b0e8726
Commit
7b0e8726
authored
Mar 24, 2005
by
gbichot@quadita2.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing repl of timezone with LOAD DATA INFILE (hourra!)
parent
62fc95b9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/r/rpl_timezone.result
mysql-test/r/rpl_timezone.result
+16
-0
mysql-test/std_data/rpl_timezone.dat
mysql-test/std_data/rpl_timezone.dat
+2
-0
mysql-test/t/rpl_timezone.test
mysql-test/t/rpl_timezone.test
+18
-0
No files found.
mysql-test/r/rpl_timezone.result
View file @
7b0e8726
...
...
@@ -65,6 +65,22 @@ SET @@session.time_zone='Europe/Moscow';
insert into t1 values ('20040101000000'), ('20040611093902');
ROLLBACK;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
delete from t1;
set time_zone='UTC';
load data infile '../../std_data/rpl_timezone.dat' into table t1;
select * from t1;
t
2004-01-01 00:00:00
2004-06-11 09:39:02
set time_zone='UTC';
select * from t1;
t
2004-01-01 00:00:00
2004-06-11 09:39:02
set time_zone='Europe/Moscow';
set time_zone='Europe/Moscow';
delete from t1;
insert into t1 values ('20040101000000'), ('20040611093902');
set time_zone='MET';
insert into t2 (select t from t1);
select * from t1;
...
...
mysql-test/std_data/rpl_timezone.dat
0 → 100644
View file @
7b0e8726
20040101000000
20040611093902
mysql-test/t/rpl_timezone.test
View file @
7b0e8726
...
...
@@ -49,6 +49,24 @@ connection master;
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
$MYSQL_TEST_DIR
/
var
/
log
/
master
-
bin
.
000001
# Let us check with LOAD DATA INFILE
# (we do it after mysqlbinlog because the temp files names are not constant)
connection
master
;
delete
from
t1
;
set
time_zone
=
'UTC'
;
load
data
infile
'../../std_data/rpl_timezone.dat'
into
table
t1
;
select
*
from
t1
;
sync_slave_with_master
;
set
time_zone
=
'UTC'
;
select
*
from
t1
;
set
time_zone
=
'Europe/Moscow'
;
# Put back values of before the LOAD
connection
master
;
set
time_zone
=
'Europe/Moscow'
;
delete
from
t1
;
insert
into
t1
values
(
'20040101000000'
),
(
'20040611093902'
);
#
# Now let us check how well we replicate statments reading TIMESTAMP fields
# (We should see the same data on master and on slave but it should differ
...
...
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