jbroadway / elefant

Elefant, the refreshingly simple PHP CMS and web framework.
http://www.elefantcms.com
MIT License
209 stars 39 forks source link

Explicit sequence name fix proposal #227

Closed techanon closed 10 years ago

techanon commented 10 years ago

In relation to an issue discovered with the form app incorrectly redirecting when using PostgreSQL, this proposed fix adds a catch to the DB::last_id setup in the model class for postgres that explicitly sends a sequence name that follows the default format of the serial datatype: tablename_fieldname_seq.

After reinstalling the form app using it's proposed SQL setup, the redirect worked correctly with this fix.

jbroadway commented 10 years ago

Ignore my comment in your PR, this is better :) Thanks!