Displaying 1 result from an estimated 1 matches for "hll_parse_sqlite".
2009 Mar 11
1
How to dummy a DB adapter?
...''ActiveRecord::StatementInvalid''
acan = self.connection.adapter_name
case acan
when ''MySQL''
hll_parse_mysql
when ''PostgreSQL''
hll_parse_postgresql
when ''SQLite''
hll_parse_sqlite(exception)
else
Rails::logger.warn("Adapter #{acan} not supported by
hll_ar_exception.")
raise exception
end
end
I am thinking about simply opening SQLiteAdapter and overriding the
adapter_name method to some arbitrary value for the test. However, it
occurs to me t...