-
Notifications
You must be signed in to change notification settings - Fork 188
tracker: get some session variables from downtream #1032
Conversation
/run-all-tests |
@@ -18,6 +18,7 @@ EOF | |||
|
|||
function run() { | |||
run_sql_both_source "SET @@GLOBAL.SQL_MODE='NO_ZERO_IN_DATE,NO_ZERO_DATE'" | |||
run_sql_tidb "SET @@GLOBAL.SQL_MODE='NO_ZERO_IN_DATE,NO_ZERO_DATE'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test include a sql file that execute
alter table t2 add column create_by DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
need update docs & release notes, right? |
CI fail |
// we might SetGlobalConfig before every call to tracker, or use some patch like https://github.com/bouk/monkey | ||
toSet := tidbConfig.NewConfig() | ||
toSet.AlterPrimaryKey = true | ||
tidbConfig.StoreGlobalConfig(toSet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any test for it? rest LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cherry pick to release-2.0 failed |
What problem does this PR solve?
enable some test about altering PK, and reduce user config. close #1003
What is changed and how it works?
sql_mode
,tidb_skip_utf8_check
from downstreamalter-primary-key
trueCheck List
Tests
Code changes
Side effects
Related changes