Sha256: c528c01d6837473fcccff263a17f229294eb5665890df32836e587f4e1e6431d

Contents?: true

Size: 796 Bytes

Versions: 28

Compression:

Stored size: 796 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

28 entries across 28 versions & 8 rubygems

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc/jdbc/core_ext.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc/jdbc/core_ext.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc/jdbc/core_ext.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc/jdbc/core_ext.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc/jdbc/core_ext.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc/jdbc/core_ext.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc/jdbc/core_ext.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/core_ext.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc/jdbc/core_ext.rb
c3-activerecord-jdbc-adapter-1.1.3 lib/arjdbc/jdbc/core_ext.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 lib/arjdbc/jdbc/core_ext.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.1.3 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.1.2 lib/arjdbc/jdbc/core_ext.rb
activerecord-jdbc-adapter-1.1.1 lib/arjdbc/jdbc/core_ext.rb