Skip to content

mysql: update sql-mode default#45

Merged
morgo merged 4 commits into
pingcap:masterfrom
morgo:sql-mode-update
Jan 6, 2019
Merged

mysql: update sql-mode default#45
morgo merged 4 commits into
pingcap:masterfrom
morgo:sql-mode-update

Conversation

@morgo
Copy link
Copy Markdown
Contributor

@morgo morgo commented Nov 19, 2018

Change TiDB to use the same default as MySQL 5.7

Depends on pingcap/tidb#8278 (merged)

Change TiDB to use same default as MySQL 5.7
@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 19, 2018

See also: pingcap/docs#728 -- it turns out TiDB has great support for MySQL's SQL modes. It just doesn't enable them all by default like mysql does :-)

@tiancaiamao
Copy link
Copy Markdown
Collaborator

LGTM @zimulala

@tiancaiamao
Copy link
Copy Markdown
Collaborator

Ping @zimulala

@zz-jason
Copy link
Copy Markdown
Member

should we file a PR in TiDB to test this change? @morgo @tiancaiamao

@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 26, 2018

@zz-jason The corresponding TiDB PR is pingcap/tidb#8278

NO_ZERO_DATE did break the set suite, but it's since been fixed.

@morgo morgo requested a review from zimulala December 10, 2018 14:54
@tiancaiamao
Copy link
Copy Markdown
Collaborator

LGTM
PTAL @zz-jason @zimulala

@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Jan 6, 2019

I have created pingcap/tidb#8956 in the TiDB project so the result from the full test suite can be seen while waiting for this PR to merge.

Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@morgo morgo added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Jan 6, 2019
@morgo morgo merged commit e374a20 into pingcap:master Jan 6, 2019
@morgo morgo deleted the sql-mode-update branch January 6, 2019 15:02
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
Change TiDB to use same default as MySQL 5.7
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
Change TiDB to use same default as MySQL 5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants