mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Fixes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build (linux || darwin || windows || freebsd) && !sqlite3_nosys
|
||||
//go:build (linux || darwin || windows || freebsd || illumos) && !sqlite3_nosys
|
||||
|
||||
package driver_test
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build (linux || darwin || windows || freebsd) && !sqlite3_nosys
|
||||
//go:build (linux || darwin || windows || freebsd || illumos) && !sqlite3_nosys
|
||||
|
||||
package bradfitz
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ func Test_endianness(t *testing.T) {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
const value = -9223372036854775808
|
||||
const value int64 = -9223372036854775808
|
||||
{
|
||||
stmt, _, err := db.Prepare(`INSERT INTO test VALUES (?)`)
|
||||
if err != nil {
|
||||
@@ -60,7 +60,7 @@ func Test_endianness(t *testing.T) {
|
||||
defer stmt.Close()
|
||||
|
||||
if stmt.Step() {
|
||||
if got := stmt.ColumnInt(0); got != value {
|
||||
if got := stmt.ColumnInt64(0); got != value {
|
||||
t.Errorf("got %d, want %d", got, value)
|
||||
}
|
||||
if got := stmt.ColumnText(0); got != strconv.FormatInt(value, 10) {
|
||||
|
||||
Reference in New Issue
Block a user