Sha256: a5652d9e1e32437e8190d109da6d578a358625d2246cf782c5e8703ea5707c2c

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

module ActiveRecord # :nodoc:
  # Represents exceptions that have propagated up through the JDBC API.
  class JDBCError < ActiveRecordError
    # The vendor code or error number that came from the database
    attr_accessor :errno

    # The full Java SQLException object that was raised
    attr_accessor :sql_exception
  end

  module ConnectionAdapters # :nodoc:
    # Allows properly re-wrapping/re-defining methods that may already
    # be alias_method_chain'd.
    module ShadowCoreMethods
      def alias_chained_method(meth, feature, target)
        if instance_methods.include?("#{meth}_without_#{feature}")
          alias_method "#{meth}_without_#{feature}".to_sym, target
        else
          alias_method meth, target if meth != target
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.9 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.8 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.5 lib/arjdbc/jdbc/core_ext.rb