Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

sycner: automatically use upstream sql_mode (#1306) #1307

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

ti-srebot
Copy link

cherry-pick #1306 to release-2.0


What problem does this PR solve?

Inconsistent upstream and downstream sql_mode leads to inconsistent data

What is changed and how it works?

get dsn scope sql_mode from upstream database if sql_mode is not specified in task config.

Still can't use different session sql_mode base on different binlog event like mysql master-slave replication. One solution is get sql_mode from begin event and apply it for rows event in same txn, which is ineffective.

Check List

Tests

  • Integration test

@ti-srebot ti-srebot added the type/cherry-pick This PR is just a cherry-pick (backport) label Nov 26, 2020
@lance6716
Copy link
Collaborator

LGTM

@ti-srebot ti-srebot added the status/LGT1 One reviewer already commented LGTM label Nov 26, 2020
@GMHDBJD GMHDBJD added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM status/LGT2 Two reviewers already commented LGTM, ready for merge labels Nov 26, 2020
Copy link
Collaborator

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GMHDBJD GMHDBJD merged commit 4a95a81 into pingcap:release-2.0 Nov 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
first-time-contributor type/cherry-pick This PR is just a cherry-pick (backport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants