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

*: basic support for builtin function STR_TO_DATE #2078

Merged
merged 12 commits into from Nov 28, 2016
1 change: 1 addition & 0 deletions ast/functions.go
Expand Up @@ -103,6 +103,7 @@ const (
MonthName = "monthname"
Now = "now"
Second = "second"
StrToDate = "str_to_date"
Sysdate = "sysdate"
Time = "time"
UTCDate = "utc_date"
Expand Down
1 change: 1 addition & 0 deletions evaluator/builtin.go
Expand Up @@ -77,6 +77,7 @@ var Funcs = map[string]Func{
ast.MonthName: {builtinMonthName, 1, 1},
ast.Now: {builtinNow, 0, 1},
ast.Second: {builtinSecond, 1, 1},
ast.StrToDate: {builtinStrToDate, 2, 2},
ast.Sysdate: {builtinSysDate, 0, 1},
ast.Time: {builtinTime, 1, 1},
ast.UTCDate: {builtinUTCDate, 0, 0},
Expand Down