MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / GetLocation

Method GetLocation

pkg/sql/sem/tree/eval.go:3085–3090  ·  view source on GitHub ↗

GetLocation returns the session timezone.

()

Source from the content-addressed store, hash-verified

3083
3084// GetLocation returns the session timezone.
3085func (ctx *EvalContext) GetLocation() *time.Location {
3086 if ctx.SessionData == nil || ctx.SessionData.DataConversion.Location == nil {
3087 return time.UTC
3088 }
3089 return ctx.SessionData.DataConversion.Location
3090}
3091
3092// Ctx returns the session's context.
3093func (ctx *EvalContext) Ctx() context.Context {

Callers 5

GetRelativeParseTimeMethod · 0.95
stripTimeZoneMethod · 0.45
eval.goFile · 0.45
PerformCastFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected