Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Failure when database does not contain PostGIS functions #15

Open
tashian opened this issue Jul 7, 2010 · 3 comments
Open

Failure when database does not contain PostGIS functions #15

tashian opened this issue Jul 7, 2010 · 3 comments

Comments

@tashian
Copy link

tashian commented Jul 7, 2010

I need to connect to another database in one of my models, and that database doesn't have PostGIS installed. If I have spatial_adapter installed, I get an ERROR: relation "geometry_columns" does not exist. I think spatial_adapter should look for the table and silently disable itself if it doesn't exist.

@pdeffendol
Copy link
Owner

I've created a test case that confirms this - now it just needs to be fixed.

@korczis
Copy link

korczis commented Feb 26, 2011

How it seems? Will this be fixed soon? Thanks in advance for any info.

@pdeffendol
Copy link
Owner

I've been pretty swamped with other things, and haven't gotten back to this fix. Due to the nature of the adapter, it's not a trivial thing to do. I would suggest looking into the RGeo gems which don't patch the standard "postgresql" adapter, but provide a new "postgis" adapter type, which would allow you to use the standard adapter for the second, non-spatial database. (Note, RGeo only works with Rails 3.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants