lib/sequel/adapters/cubrid.rb in sequel-4.34.0 vs lib/sequel/adapters/cubrid.rb in sequel-4.35.0

- old
+ new

@@ -36,11 +36,11 @@ @server_version ||= synchronize(&:server_version) end def execute(sql, opts=OPTS) synchronize(opts[:server]) do |conn| - r = log_yield(sql) do + r = log_connection_yield(sql, conn) do begin conn.query(sql) rescue => e raise_error(e) end @@ -90,15 +90,15 @@ end private def begin_transaction(conn, opts=OPTS) - log_yield(TRANSACTION_BEGIN){conn.auto_commit = false} + log_connection_yield(TRANSACTION_BEGIN, conn){conn.auto_commit = false} end def commit_transaction(conn, opts=OPTS) - log_yield(TRANSACTION_COMMIT){conn.commit} + log_connection_yield(TRANSACTION_COMMIT, conn){conn.commit} end def database_error_classes [StandardError] end @@ -110,10 +110,10 @@ end # This doesn't actually work, as the cubrid ruby driver # does not implement transactions correctly. def rollback_transaction(conn, opts=OPTS) - log_yield(TRANSACTION_ROLLBACK){conn.rollback} + log_connection_yield(TRANSACTION_ROLLBACK, conn){conn.rollback} end end class Dataset < Sequel::Dataset include Sequel::Cubrid::DatasetMethods