Sha256: 5ec303d2769758b6101789b45df0c0fe46757f8a56a30c64ccdbeb021299b42b

Contents?: true

Size: 342 Bytes

Versions: 14

Compression:

Stored size: 342 Bytes

Contents

#FIXME Remove if ArJdbcMysql will give.
module ArJdbcMySQL
  class Error < StandardError
    attr_accessor :error_number, :sql_state

    def initialize msg
      super
      @error_number = nil
      @sql_state    = nil
    end

    # Mysql gem compatibility
    alias_method :errno, :error_number
    alias_method :error, :message
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activerecord-3.0.20 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.19 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.18 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.17 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.16 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.15 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.14 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.13 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.13.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.12 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.12.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.11 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.10 lib/active_record/railties/jdbcmysql_error.rb
activerecord-3.0.10.rc1 lib/active_record/railties/jdbcmysql_error.rb