-
Notifications
You must be signed in to change notification settings - Fork 140
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
Creating database fails for postgreSQL 9.1 #132
Comments
@ebuz would it be possible to check the protocol from the config and then modify the pertinent SQLAlchemy stuff based on the protocol? That way we'd be keeping everything safe. |
@gureckis that's what I was afraid of, looking through the documentation of MySQL it looks like there are actually four different @JSlote A conditional declaration in
I just tested it and it works but seems like a hack, though I don't know of any other solutions that aren't equally hackish. |
although SQLAlchemy aims at DB agnosticism, I think in practice it is nearly impossible to be a purist. given that the current solution of a large text field appears to work for both MySQL and SQLLite, i'm ok with a few conditional statements like this for postgreSQL, if it make things work... happy to merge a pull request to this effect. |
Database table creation fails for postgreSQL. The problem is from specifying a size for the
datastring
column in the participant model. Text column length is optional for MySQL and SQLite databases but postgreSQL doesn't use (or apparently accept) a length specification. I can initiate a pull request with the fix.Upshot: Fixes the problem for postgreSQL though I have not looked into how it changes the
datastring
length upper bound in MySQL databases.The text was updated successfully, but these errors were encountered: