Re: [PHP-DEV] Passing error codes through to PDOException

2010-01-11 Thread Lester Caine
Joey Smith wrote: Maybe I'm up in the night, but I've just opened 50728 because I discovered that all the PDO drivers had a hardcoded 0 where I would expect to see the driver-specific error - a user reported this in ##PHP on Freenode and I take a stab at writing the patches that would let the

Re: [PHP-DEV] Passing error codes through to PDOException

2010-01-11 Thread Joey Smith
I also just attached the following to the bug - it's a test that checks this fix in the sqlite driver - I can write tests for all the others if need be, but I figured there are others who might already be more familiar with the individual PDO drivers that would write them more quickly than I. --

[PHP-DEV] Passing error codes through to PDOException

2010-01-11 Thread Joey Smith
Maybe I'm up in the night, but I've just opened 50728 because I discovered that all the PDO drivers had a hardcoded 0 where I would expect to see the driver-specific error - a user reported this in ##PHP on Freenode and I take a stab at writing the patches that would let the individual drivers p