This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Tarmo Tänav (author)
Fri Sep 26 10:57:56 -0700 2008
commit ea609b265ffc30cac00bf09a262027f96964ed6f
tree 6877969d5e0394c4126e583328c2cb1ca7bd5262
parent 4d9a7ab5f5c28820e0b076f9ca44bdd20e19e6ea
tree 6877969d5e0394c4126e583328c2cb1ca7bd5262
parent 4d9a7ab5f5c28820e0b076f9ca44bdd20e19e6ea
... |
... |
|












I’m not sure catching Exception is such a good idea, it might mask all kinds of bugs like syntax errors thrown while executing the column_names method.
Why not just catch the errors thrown by ActiveRecord?
Yeah, it’s definitely less than ideal, but the problem is the variety of exceptions that get thrown when this thing is missing. There’s one for each of the adapters, and several different ones depending on the ‘backing gem’ i.e. pg vs postgres.
Hopefully for 2.3 we can tidy the boundaries between adapter and driver and make sure that only AR errors are thrown by the Adapters, but right now that line’s too fuzzy and making a far reaching change for this one case didn’t quite seem worth it.