[Dbix-class] Race condition in find_or_create()

Hartmaier Alexander Alexander.Hartmaier at t-systems.at
Fri Aug 1 11:59:27 BST 2008


For Oracle that would be the ORA-numbers.
Imho lots of the db specific things belong into the DBD modules.

-Alex

From: Oleg Pronin [mailto:syber.rus at gmail.com]
Sent: Thursday, July 31, 2008 11:40 PM
To: DBIx::Class user and developer list
Subject: Re: [Dbix-class] Race condition in find_or_create()

Do not forget that not all of the world has english databases. Some people =
use localized postgresql or other. If so it may return errors in other lang=
uage :)
The best way is to use error codes (they are specific in various db servers=
), but unfortunately, some databases (or database drivers) return wrong cod=
es or do not return at all.

*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
Notice: This e-mail contains information that is confidential and may be pr=
ivileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080801/308=
cca46/attachment.htm


More information about the DBIx-Class mailing list