Sha256: d3cd53d6626c0c30aa3b92d51f5b416e2f0aa14ecbd6148199374a5dd4d9398e
Contents?: true
Size: 745 Bytes
Versions: 76
Compression:
Stored size: 745 Bytes
Contents
module DataObjects module Oracle class Transaction < DataObjects::Transaction def begin connection.instance_variable_get("@connection").autocommit = false end def commit connection.instance_variable_get("@connection").commit ensure connection.instance_variable_get("@connection").autocommit = true end def rollback connection.instance_variable_get("@connection").rollback ensure connection.instance_variable_get("@connection").autocommit = true end def rollback_prepared # TODO: what should be done differently? rollback end def prepare # TODO: what should be done here? end end end end
Version data entries
76 entries across 76 versions & 1 rubygems