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

loader: fix bug that SQL Mode didn't take effect (#1134) #1137

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

ti-srebot
Copy link

cherry-pick #1134 to release-2.0


What problem does this PR solve?

fix bug that loader didn't use SQL Mode when create database connections, this bug is not revealed because all_mode has manually set SQL Mode related config

What is changed and how it works?

if to database doesn't have a sql_mode item, we use SQL Mode discovered by dumpling's Init.

Check List

Tests

  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot ti-srebot added priority/normal Minor change, requires approval from ≥1 primary reviewer type/bug-fix Bug fix type/cherry-pick This PR is just a cherry-pick (backport) first-time-contributor labels Oct 12, 2020
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added this to the v2.0.0 RC.3 milestone Oct 12, 2020
@csuzhangxc csuzhangxc merged commit 7925795 into pingcap:release-2.0 Oct 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
first-time-contributor priority/normal Minor change, requires approval from ≥1 primary reviewer type/bug-fix Bug fix 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