Closed lucashpandolfo closed 10 years ago
Thank you for reporting this. I currently only test on PostgreSQL because Crane doesn't support migrations for SQLite3 yet and I'm not familiar with MySQL. I'll poke around and see how I can integrate these changes without breaking much.
Ok, thanks. It's working now. The only remaining issue is the same as https://github.com/eudoxia0/crane/issues/6. So this one can be closed.
Thank you for the feedback, and also for the code, which saved me a lot of trial and error.
Setup and configuration
Works as expected.
Table creation
The generated statement:
doesn't seem to be valid for sqlite. The next one works fine.
Another valid statement is
But it is not autoincremental. The AUTOINCREMENT part is enforced for INTEGER PRIMARY KEY rows (just one INTEGER).
Object creation
The RETURNING keyword is not valid for sqlite3. To get the id value the last_insert_rowid() function can be used.
or something like
So if i modify create%
Then create works as "expected" (works for sqlite3, breaks everything else).
Filter
But then, i think this is an error in the manual/main page, as inflate seems to be implemented for STRING, not TEXT.
Cheers.