Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sessionctx: add 'time_zone' session variable #2375

Merged
merged 5 commits into from
Jan 3, 2017

Conversation

tiancaiamao
Copy link
Contributor

Add TimeZone to SessionVars, this PR just support time_zone as session variable, not global variable.

#2369 depends on this PR to fix CI, because UNIX_TIMESTAMP() on different time zone result in different values, we must set the session variable to control the behavior.

@@ -596,6 +596,7 @@ var defaultSysVars = []*SysVar{
{ScopeGlobal | ScopeSession, DistSQLJoinConcurrencyVar, "5"},
{ScopeSession, TiDBSkipConstraintCheck, "0"},
{ScopeSession, TiDBSkipDDLWait, "0"},
{ScopeGlobal | ScopeSession, "time_zone", ""},
Copy link
Member

Choose a reason for hiding this comment

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

There is already a variable named time_zone.

@coocood
Copy link
Member

coocood commented Jan 3, 2017

LGTM

1 similar comment
@shenli
Copy link
Member

shenli commented Jan 3, 2017

LGTM

@tiancaiamao tiancaiamao merged commit 27c0c76 into master Jan 3, 2017
@tiancaiamao tiancaiamao deleted the tiancaiamao/timezone-session-variable branch January 3, 2017 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants