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

@ -5,6 +5,7 @@ import (
"database/sql"
"errors"
"github.com/go-jet/jet/execution"
"github.com/go-jet/jet/internal/utils"
)
// InsertStatement is interface for SQL INSERT statements
@ -82,7 +83,7 @@ func (i *insertStatementImpl) Sql() (sql string, args []interface{}, err error)
queryData.newLine()
queryData.writeString("INSERT INTO")
if isNil(i.table) {
if utils.IsNil(i.table) {
return "", nil, errors.New("jet: table is nil")
}