1 module ActiveRecord # :nodoc:
2 # Represents exceptions that have propagated up through the JDBC API.
3 class JDBCError < ActiveRecordError
4 # The vendor code or error number that came from the database
7 # The full Java SQLException object that was raised
8 attr_accessor :sql_exception
11 module ConnectionAdapters # :nodoc:
12 # Allows properly re-wrapping/re-defining methods that may already
13 # be alias_method_chain'd.
14 module ShadowCoreMethods
15 def alias_chained_method(meth, feature, target)
16 if instance_methods.include?("#{meth}_without_#{feature}")
17 alias_method "#{meth}_without_#{feature}".to_sym, target
19 alias_method meth, target if meth != target