Merge branch 'master' into select_json
# Conflicts: # tests/postgres/alltypes_test.go
This commit is contained in:
commit
03af2665ea
5 changed files with 30 additions and 7 deletions
|
|
@ -4,8 +4,9 @@ import (
|
|||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/go-jet/jet/v2/internal/utils/ptr"
|
||||
"github.com/go-jet/jet/v2/qrm"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/go-jet/jet/v2/qrm"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
|
@ -1049,6 +1050,18 @@ LIMIT $38;
|
|||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/float_operators.json")
|
||||
}
|
||||
|
||||
func TestUInt64Overflow(t *testing.T) {
|
||||
stmt := AllTypes.INSERT(AllTypes.BigInt).
|
||||
VALUES(Uint64(math.MaxUint64))
|
||||
|
||||
_, err := stmt.Exec(db)
|
||||
if isPgxDriver() {
|
||||
require.ErrorContains(t, err, "18446744073709551615 is greater than maximum value for Int8")
|
||||
} else {
|
||||
require.ErrorContains(t, err, "sql: converting argument $1 type: uint64 values with high bit set are not supported")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIntegerOperators(t *testing.T) {
|
||||
skipForCockroachDB(t) // some functions are still unimplemented
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue