File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ func (ai *aggInfo) Done(ctx *C.sqlite3_context) {
298
298
// Commit transaction.
299
299
func (tx * SQLiteTx ) Commit () error {
300
300
_ , 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 {
302
302
// sqlite3 will leave the transaction open in this scenario.
303
303
// However, database/sql considers the transaction complete once we
304
304
// 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) {
519
519
return & SQLiteTx {c }, nil
520
520
}
521
521
522
- func errorString (err Error ) string {
522
+ func errorString (err * Error ) string {
523
523
return C .GoString (C .sqlite3_errstr (C .int (err .Code )))
524
524
}
525
525
You can’t perform that action at this time.
0 commit comments