We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 866c329 commit fc03fa9Copy full SHA for fc03fa9
sqlite3.go
@@ -609,19 +609,22 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
609
610
rv = C.sqlite3_busy_timeout(db, C.int(busyTimeout))
611
if rv != C.SQLITE_OK {
612
+ conn.Close()
613
return nil, Error{Code: ErrNo(rv)}
614
}
615
616
conn := &SQLiteConn{db: db, loc: loc, txlock: txlock}
617
618
if len(d.Extensions) > 0 {
619
if err := conn.loadExtensions(d.Extensions); err != nil {
620
621
return nil, err
622
623
624
625
if d.ConnectHook != nil {
626
if err := d.ConnectHook(conn); err != nil {
627
628
629
630
0 commit comments