On 10/20/06, Larry Meadors <[EMAIL PROTECTED]> wrote:
Let me get this straight...you are doing an insert, and then selecting
row count to see if it's one to make sure it works?
That's, uhm, silly.
If your driver doesn't throw an exception, it's pretty safe to assume
that your single row insert successfully inserted one row.
If not, do EVERYTHING IN YOUR POWER to switch databases, because that
sort of failure is inexcusable from a database vendor.
Well, is a good point. :)
May be it was a paranoic practice I used in PHP... :) but what you say
sound logic.
I´ll change my code.
Nevertheless, I think there could exists situation where you'll need
to know rows affected by an insert to use the number for post related
process and is sad to see it didn´t work.
Thanks
J
J