Displaying 1 result from an estimated 1 matches for "hll_parse_postgresql".
2009 Mar 11
1
How to dummy a DB adapter?
...n(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 opening SQLiteAdapter and overriding the
adapter_name method to som...