Function relocation.

This commit is contained in:
go-jet 2019-07-20 17:44:43 +02:00
parent de34095ece
commit 1ae76d5efd
7 changed files with 15 additions and 10 deletions

View file

@ -2,6 +2,7 @@ package jet
import (
"errors"
"github.com/go-jet/jet/internal/utils"
)
type table interface {
@ -239,7 +240,7 @@ func (t *joinTable) serialize(statement statementType, out *sqlBuilder, options
return errors.New("jet: Join table is nil. ")
}
if isNil(t.lhs) {
if utils.IsNil(t.lhs) {
return errors.New("jet: left hand side of join operation is nil table")
}
@ -262,7 +263,7 @@ func (t *joinTable) serialize(statement statementType, out *sqlBuilder, options
out.writeString("CROSS JOIN")
}
if isNil(t.rhs) {
if utils.IsNil(t.rhs) {
return errors.New("jet: right hand side of join operation is nil table")
}