Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 5e22935

Browse files
authored
Merge pull request #548 from theodesp/feature/mid_substr
Feature/mid substr
2 parents 2da211e + 2deea9b commit 5e22935

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/expression/function/registry.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ var Defaults = sql.Functions{
2626
}),
2727
"is_binary": sql.Function1(NewIsBinary),
2828
"substring": sql.FunctionN(NewSubstring),
29+
"mid": sql.FunctionN(NewSubstring),
30+
"substr": sql.FunctionN(NewSubstring),
2931
"year": sql.Function1(NewYear),
3032
"month": sql.Function1(NewMonth),
3133
"day": sql.Function1(NewDay),

0 commit comments

Comments
 (0)