[libdbi-users] finding out if an insert failed because the record already exists.

2005-10-31 Thread Markus Hoenicka
Hi Ron, not that I know of. I'm afraid your only option is to use dbi_conn_error() and parse the error string in your application. regards, Markus Ron Arts writes: > Hi, > > I am looking into libdbi. In my application (which currently > is MySQL only) I check the return value of a query to

[libdbi-users] finding out if an insert failed because the record already exists.

2005-10-30 Thread Ron Arts
Hi, I am looking into libdbi. In my application (which currently is MySQL only) I check the return value of a query to find out if it is ER_DUP_ENTRY, which means record already exists, or something along that lines. Can I do that in a database portable way in libdbi? Could not find it in the do