Re: stability of mysql error strings

2005-05-05 Thread Jigal van Hemert
- Original Message - From: "Scott Haneda" > on 5/4/05 7:22 PM, Paul DuBois at [EMAIL PROTECTED] wrote: > > Error strings do change format sometimes. > > And they won't necessarily be in English. :-) > > I had a feeling, what is the general method most use to deal with the above > scenario?

Re: stability of mysql error strings

2005-05-04 Thread Scott Haneda
on 5/4/05 7:22 PM, Paul DuBois at [EMAIL PROTECTED] wrote: > At 19:09 -0700 5/4/05, Scott Haneda wrote: >> I have a unique key on username and email address in mysql. In my >> application logic, I want to test for that response on failed insert. Error >> number 1062 tells me there is a duplicate

Re: stability of mysql error strings

2005-05-04 Thread Paul DuBois
At 19:09 -0700 5/4/05, Scott Haneda wrote: I have a unique key on username and email address in mysql. In my application logic, I want to test for that response on failed insert. Error number 1062 tells me there is a duplicate key, but no way to tell what key that is. The error string returned is

stability of mysql error strings

2005-05-04 Thread Scott Haneda
I have a unique key on username and email address in mysql. In my application logic, I want to test for that response on failed insert. Error number 1062 tells me there is a duplicate key, but no way to tell what key that is. The error string returned is more telling, but seems less than ideal t