-
Notifications
You must be signed in to change notification settings - Fork 11
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
Compatibility issues with PostgreSql? #23
Comments
Realy exists a issue when connects in Postgres. The problem is on set_schema of post model, Sequel schema don't translate columns types to Postgres. I will work to solve this, but if you discover a solution, please, pull request. |
+1 |
I think that is the mapping of models (set_schema). Some sequel references uses "String :title" instead of "varchar :title", as is in Wind. |
And about primary key on Postgress, I found this:
http://sequel.rubyforge.org/rdoc/classes/Sequel/Model/ClassMethods.html |
https://gist.github.com/3282515 I tried:
but it didn't work. |
With:
Sequel generates a integer column with primary key constraint? |
My schema was like that before it didnt work. Did you see the gist? When I do ;heroku log': 2012-08-07T06:46:04+00:00 app[web.1]: Sequel::DatabaseError - PG::Error: ERROR: invalid input syntax for integer: "" I'm getting this at each shot. |
I can't seem to get wind to play nice with postgres. On the /post/new page the hidden "id" field remains unfilled (null) and so when I click submit, it tries to create a record without a primary key (and fails and throws a 500 error). Any advice on this?
**I'm on PostgreSQL 8.3.
The text was updated successfully, but these errors were encountered: