Sha256: bfc0e3046e71c73eef3436e80c03b6ea54041db387526130b00a15f003c7e7f2

Contents?: true

Size: 362 Bytes

Versions: 20

Compression:

Stored size: 362 Bytes

Contents

#FIXME Remove if ArJdbcMysql will give.
module ArJdbcMySQL #:nodoc:
  class Error < StandardError #:nodoc:
    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

20 entries across 20 versions & 1 rubygems

Version Path
activerecord-5.1.7 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.7.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.6.2 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.6.1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.6 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.5 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.5.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.4 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.4.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.3 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.3.rc3 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.3.rc2 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.3.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.2 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.2.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.0 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.0.rc2 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.0.rc1 lib/active_record/railties/jdbcmysql_error.rb
activerecord-5.1.0.beta1 lib/active_record/railties/jdbcmysql_error.rb