Fix linter errors.

This commit is contained in:
go-jet 2019-09-20 19:54:56 +02:00
parent 65e05021bc
commit 1cc463477d
4 changed files with 30 additions and 21 deletions

View file

@ -2,9 +2,11 @@ package jet
import (
"bytes"
"fmt"
"github.com/go-jet/jet/internal/3rdparty/pq"
"github.com/go-jet/jet/internal/utils"
"github.com/google/uuid"
"reflect"
"strconv"
"strings"
"time"
@ -176,7 +178,7 @@ func argToString(value interface{}) string {
case time.Time:
return stringQuote(string(pq.FormatTimestamp(bindVal)))
default:
return "[Unsupported type]"
panic(fmt.Sprintf("jet: %s type can not be used as SQL query parameter", reflect.TypeOf(value).String()))
}
}