More func tests.

This commit is contained in:
go-jet 2019-07-20 14:23:42 +02:00
parent 35d607a62c
commit f0cb772b7a
7 changed files with 19 additions and 8 deletions

View file

@ -168,7 +168,7 @@ func UPPER(stringExpression StringExpression) StringExpression {
// in characters (a space by default) from the start and end of string
func BTRIM(stringExpression StringExpression, trimChars ...StringExpression) StringExpression {
if len(trimChars) > 0 {
return newStringFunc("LTRIM", stringExpression, trimChars[0])
return newStringFunc("BTRIM", stringExpression, trimChars[0])
}
return newStringFunc("BTRIM", stringExpression)
}