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

SQL mode is still not automatic enough #1735

Closed
lance6716 opened this issue May 31, 2021 · 1 comment · Fixed by #1869
Closed

SQL mode is still not automatic enough #1735

lance6716 opened this issue May 31, 2021 · 1 comment · Fixed by #1869

Comments

@lance6716
Copy link
Collaborator

Feature Request

Is your feature request related to a problem? Please describe:

Currently DM will query global SQL Mode of upstream to sync. When user set a session level one, the inconsistent of SQL mode may cause an error

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

@together-wang
Copy link

sql_mode automatic matching error

NO_ZERO_DATE exists in upstream sql_mode, and downstream sql_mode is empty
When the old table with zero_date in the upstream is synchronized through DM, the error Invalid default value is reported, and it is not automatically matched to the downstream sql_mode

image
image
image
image
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants