2009年7月30日星期四

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

On Thu, Jul 30, 2009 at 8:17 PM, Christian Welzel<gawain@camlann.de> wrote:
> Hi there,
>
> what is the recommended way to test if an insert action of
> Zend_Db_Table::insert() succeeded?
> The return value of the Adapter::insert() is discarded, and
> the returned pk is only usable if it is a autoincrementing
> column and the value was not given...
>

I thought I just read that it returns the affected rows.

Till

没有评论: