aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/sqlvm/parser/internal/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/sqlvm/parser/internal/helpers.go')
-rw-r--r--core/vm/sqlvm/parser/internal/helpers.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/vm/sqlvm/parser/internal/helpers.go b/core/vm/sqlvm/parser/internal/helpers.go
index ee3b61a10..38033fcf0 100644
--- a/core/vm/sqlvm/parser/internal/helpers.go
+++ b/core/vm/sqlvm/parser/internal/helpers.go
@@ -129,14 +129,12 @@ func toDecimal(b []byte) (decimal.Decimal, errors.ErrorCode) {
return d, convertDecimalError(err)
}
-func toLower(b []byte) []byte {
- return bytes.ToLower(b)
-}
-
func joinBytes(x []interface{}) []byte {
bs := []byte{}
for _, b := range x {
- bs = append(bs, b.([]byte)...)
+ if b != nil {
+ bs = append(bs, b.([]byte)...)
+ }
}
return bs
}