lib/arjdbc/sqlite3/adapter.rb
# DIFFERENCE: Some common constant names to reduce differences in rest of this module from AR5 version
Some common constant names to reduce differences in rest of this module from AR5 version
Some common constant names to reduce differences in rest of this module from AR5 version
def translate_exception(exception, message)
      case exception.message
        when /column(s)? .* (is|are) not unique/, /UNIQUE constraint failed: .*/
          RecordNotUnique.new(message)
        else
          super
      end
    end
def translate_exception ( exception , message ) case exception . message when / column(s)? .* (is|are) not unique / , / UNIQUE constraint failed: .* / RecordNotUnique . new ( message ) else super end end
DIFFERENCE: Some common constant names to reduce differences in rest of this module from AR5 version
DIFFERENCE : Some common constant names to reduce differences in rest of this module from AR5 version
# SQLite 3.8.2 returns a newly formatted error message: #   UNIQUE constraint failed: *table_name*.*column_name* # Older versions of SQLite return: #   column *column_name* is not unique
exception
<not_specific>
message
<not_specific>