Re: LiveUser and PDO

From: Date: Mon, 05 Jun 2006 14:45:03 +0000
Subject: Re: LiveUser and PDO
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42768@lists.php.net to get a copy of this message
Arnaud Limbourg wrote:
Lukas Smith wrote:
Hi, I just noticed that we are not consistent in the error handling of PDO. In LiveUser we rely on PDO being said to not use Exceptions and in LiveUser_Admin rely on Exceptions. I guess the optimal solution would be to check for both in LiveUser and LiveUser_Admin. Arnaud could you take care of that?
Another way would be to set the attribute just before the query then set it back after. I will have a look at that.
I would prefer to not mess with that. Seems like a lot of function calls. Then again in the other solution we have redundant try/catch and if checks. But I guess it may even be less code and would let us work around the "issue" of fetch() returning false more elegantly if we were to use exceptions. So I guess both solutions have the same advantages and disadvantages. Whatever you prefer is fine by me. regards, Lukas

« previous php.pear.dev (#42768) next »