Re: [PHP-DEV] PDO/MySQL getColumnMeta() broken

2005-02-20 Thread Timm Friebe
On Sun, 2005-02-20 at 04:32 -0500, Wez Furlong wrote: > On Sat, 19 Feb 2005 18:11:06 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote: > > with no indication what went wrong. > > Please read the OTN article to learn about the error modes in PDO. > (I expect everyone to have read this!) > > I find set

Re: [PHP-DEV] PDO/MySQL getColumnMeta() broken

2005-02-20 Thread Wez Furlong
On Sat, 19 Feb 2005 18:11:06 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote: > with no indication what went wrong. Please read the OTN article to learn about the error modes in PDO. (I expect everyone to have read this!) I find setting this: $dbh->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTI

[PHP-DEV] PDO/MySQL getColumnMeta() broken

2005-02-19 Thread Timm Friebe
Hi, the following sourcecode: prepare('select * from entries where id = :id'); $stmt->bindParam(':id', $argv[4]); if (!$stmt->execute()) { var_dump($dbh->errorInfo()); exit; } for ($i= 0, $s= $stmt->columnCount(); $i < $s; $i++) { echo $i, ':: '; var_dump($stmt->getColumnMeta