search for: hll_parse_mysql

Displaying 1 result from an estimated 1 matches for "hll_parse_mysql".

2009 Mar 11
1
How to dummy a DB adapter?
...method based on the adapter_name value. def hll_ar_exception(exception) raise exception unless exception.class.to_s == ''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...