-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from github/datetime-6-millis-corruption
timestamp/datetime submillis corruption fix
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
drop table if exists gh_ost_test; | ||
create table gh_ost_test ( | ||
id int auto_increment, | ||
i int not null, | ||
dt0 datetime(6), | ||
dt1 datetime(6), | ||
ts2 timestamp(6), | ||
updated tinyint unsigned default 0, | ||
primary key(id), | ||
key i_idx(i) | ||
) auto_increment=1; | ||
|
||
drop event if exists gh_ost_test; | ||
delimiter ;; | ||
create event gh_ost_test | ||
on schedule every 1 second | ||
starts current_timestamp | ||
ends current_timestamp + interval 60 second | ||
on completion not preserve | ||
enable | ||
do | ||
begin | ||
insert into gh_ost_test values (null, 11, '2016-10-31 11:22:33.0123', now(), '2016-10-31 11:22:33.0369', 0); | ||
update gh_ost_test set dt1='2016-10-31 11:22:33.0246', updated = 1 where i = 11 order by id desc limit 1; | ||
|
||
insert into gh_ost_test values (null, 13, '2016-10-31 11:22:33.0123', '2016-10-31 11:22:33.789', '2016-10-31 11:22:33.0369', 0); | ||
end ;; |
2 changes: 1 addition & 1 deletion
2
vendor/github.com/siddontang/go-mysql/replication/row_event.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.