Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Workaround cgo bug on s390x

  • Loading branch information...
freeekanayaka committed Mar 2, 2018
1 parent 4cc4b62 commit 90f12cbb1a5d9cc09bdc9d7d16d8ddcfc5bbc13a
Showing with 2 additions and 2 deletions.
  1. +1 −1 db.go
  2. +1 −1 replication.go
2 db.go
@@ -77,7 +77,7 @@ func DatabaseNoCheckpointOnClose(conn *SQLiteConn) error {
// The SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE opcode is supposed to save back
// to our variable the current value of the setting. So let's double
// check that it was actually changed to 1.
if value != 1 {
if *pValue != 1 {

This comment has been minimized.

Copy link
@brauner

brauner Mar 2, 2018

Could you briefly explain what the cgo bug here is. If this is a legitimate bug it might also be useful to open up an issue against the Go repo.

return Error{Code: ErrInternal}
}

@@ -235,7 +235,7 @@ func ReplicationMode(conn *SQLiteConn) (Replication, error) {
if rc := C.sqlite3_replication_mode(db, zSchema, eMode); rc != C.SQLITE_OK {
return 0, newError(rc)
}
return Replication(*mode), nil
return Replication(*eMode), nil
}

// ReplicationBegin starts a new write transaction in the given sqlite

0 comments on commit 90f12cb

Please sign in to comment.
You can’t perform that action at this time.