On Wed, Sep 24, 2008 at 11:17 PM, Peter Wansch <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Does anybody have code to parse a Zend_DB_Statement_Exception thrown by
> MySQL that parses the SQLSTATE and Error code? It looks trivial but then
> there might be different server locale etc. settings to determine this, so
> if anybody has solved that already, I'd appreciate a paste.

I opened an issue a while ago. For me, parsing exception messages is
show stopper. Think about them changing the wording, and all of the
sudden you need to adjust to that. Or a different locale as you said.
IMHO, there need to be codes to handle exceptions in a more elegant
way.

http://framework.zend.com/issues/browse/ZF-3684

It's assigned to someone, but it's also been due for "next mini
release" for a pretty long time now.

Till

Reply via email to