This commit is contained in:
Nuno Cruces
2024-05-02 23:40:25 +01:00
parent 7b646100cb
commit bb279cb426
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
//go:build (linux || darwin || windows || freebsd) && !sqlite3_nosys
//go:build (linux || darwin || windows || freebsd || illumos) && !sqlite3_nosys
package driver_test

View File

@@ -1,4 +1,4 @@
//go:build (linux || darwin || windows || freebsd) && !sqlite3_nosys
//go:build (linux || darwin || windows || freebsd || illumos) && !sqlite3_nosys
package bradfitz

View File

@@ -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) {