Skip to content

Commit 0acd8f7

Browse files
committed
fix build
1 parent 997cab8 commit 0acd8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (ai *aggInfo) Done(ctx *C.sqlite3_context) {
298298
// Commit transaction.
299299
func (tx *SQLiteTx) Commit() error {
300300
_, err := tx.c.exec(context.Background(), "COMMIT", nil)
301-
if err != nil && err.(Error).Code == C.SQLITE_BUSY {
301+
if err != nil && err.(*Error).Code == C.SQLITE_BUSY {
302302
// sqlite3 will leave the transaction open in this scenario.
303303
// However, database/sql considers the transaction complete once we
304304
// return from Commit() - we must clean up to honour its semantics.
@@ -519,7 +519,7 @@ func (c *SQLiteConn) begin(ctx context.Context) (driver.Tx, error) {
519519
return &SQLiteTx{c}, nil
520520
}
521521

522-
func errorString(err Error) string {
522+
func errorString(err *Error) string {
523523
return C.GoString(C.sqlite3_errstr(C.int(err.Code)))
524524
}
525525

0 commit comments

Comments
 (0)