⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Database write error - no feedback from GC?



Dale
  • profile picture
  • Member

Posted 22 April 2013 - 10:19 AM

Attempted to write to a table which I thought had auto increment on the PK (but it didn't).

 

The DB write would fail, but GC gives no indication of this, apart from not moving past the insert page.

 

There doesn't seem to be any error handlers available from GC (e.g. a callback function on failure). Is there any way to handle this sort of problem?


davidoster
  • profile picture
  • Member

Posted 22 April 2013 - 14:40 PM

Yes. Extend the GC model and change to your liking the db_insert function on grocery_crud_model.php