Improve code coverage.
This commit is contained in:
parent
acd9d20339
commit
f5287628aa
15 changed files with 155 additions and 79 deletions
|
|
@ -2,6 +2,7 @@ package jet
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/go-jet/jet/internal/3rdparty/pq"
|
||||
"github.com/go-jet/jet/internal/utils"
|
||||
"github.com/google/uuid"
|
||||
"strconv"
|
||||
|
|
@ -173,7 +174,7 @@ func argToString(value interface{}) string {
|
|||
case uuid.UUID:
|
||||
return stringQuote(bindVal.String())
|
||||
case time.Time:
|
||||
return stringQuote(string(utils.FormatTimestamp(bindVal)))
|
||||
return stringQuote(string(pq.FormatTimestamp(bindVal)))
|
||||
default:
|
||||
return "[Unsupported type]"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue