Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL Adapter and Initial Schema Issue #81

Open
crdunwel opened this issue Nov 11, 2015 · 1 comment
Open

PostgreSQL Adapter and Initial Schema Issue #81

crdunwel opened this issue Nov 11, 2015 · 1 comment

Comments

@crdunwel
Copy link
Contributor

So it's completely painless to use PostgreSQL instead of MySQL aside from one issue with the initial schema. This may not be PostgreSQL specific and may be the version I'm using (9.4.3).

The error

PG::SyntaxError: ERROR:  syntax error at or near "("
LINE 1: SELECT 'boolean(1)'::regtype::oid
               ^
CONTEXT:  invalid type name "boolean(1)"

Caused by See https://github.com/EFForg/phantom-of-the-capitol/blob/master/db/schema.rb#L36 .

If the limit argument is removed then it works fine. This is probably because MySQL stores boolean type as a TINYINT(1) http://stackoverflow.com/questions/11167793/boolean-or-tinyint-confusion . So the limit argument should be unnecessary. Mind if we remove the limit argument to be more cross-database compatible?

crdunwel added a commit to crdunwel/phantom-of-the-capitol that referenced this issue Nov 11, 2015
@lyndsysimon
Copy link

If you wouldn't mind updating the install documentation (or at least making a note), I'd very much appreciate it. PhantomDC is the only service I have that requires MySQL at the moment, and it would be very nice to remove it from my stack.

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

No branches or pull requests

2 participants