2009年7月30日星期四

Re: [fw-db] How to test the success of Db_Table::insert()?

Am Donnerstag 30 Juli 2009 schrieb Hector Virgen:
> If it fails, wouldn't an exception be thrown?

Ok, you are right.
I wrote a little test script and get an exception if some constraint check
fails:
Zend_Db_Statement_Exception' with message 'SQLSTATE[23505]: Unique violation:.

Seems this thing got lost somewhere in my application.
Thanks for your hints.


--
MfG, Christian Welzel

GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15

没有评论: