func (conn *Connection) Commit() (err error) { var isc_status [20]C.ISC_STATUS if conn.transact != 0 { C.isc_commit_transaction(&isc_status[0], &conn.transact) err = fbErrorCheck(&isc_status) } return nil }
func (conn *Connection) Commit() (err error) { var isc_status [20]C.ISC_STATUS if conn.transact != 0 { conn.closeCursors() C.isc_commit_transaction(&isc_status[0], &conn.transact) if err = fbErrorCheck(&isc_status); err != nil { return } } return nil }
func (conn *Connection) disconnect() (err error) { var isc_status [20]C.ISC_STATUS if conn.transact != 0 { C.isc_commit_transaction(&isc_status[0], &conn.transact) if err = fbErrorCheck(&isc_status); err != nil { return } } if conn.dropped { C.isc_drop_database(&isc_status[0], &conn.db) } else { C.isc_detach_database(&isc_status[0], &conn.db) } return fbErrorCheck(&isc_status) }