Re: [PDO] pdo getColumnMeta
| From: | Stanley Sufficool | Date: | Wed, 15 Dec 2010 02:06:09 +0000 |
| Subject: | Re: [PDO] pdo getColumnMeta | ||
| References: | 1 | Groups: | php.pdo |
| Request: | Send a blank email to pdo+get-491@lists.php.net to get a copy of this message | ||
This may be a limitation of the underlying library. Some drivers
cannot get column information when no rows are returned.
Ref: http://www.sqlite.org/c3ref/column_blob.html
"If the SQL statement does not currently point to a valid row, or if
the column index is out of range, the result is undefined."
On Sun, Dec 12, 2010 at 10:10 AM, Xaver Thum <xaver.thum@t-online.de> wrote:
> Hi,
>
> PDO for sqlite(3) doesn't deliver data for method getColumnMeta if the
> result set (delivered by $dbh->query) is empty; any workaround known ? (I
> need the meta data even in case of empty result sets for writing a html
> table header with column names.)
>
> Thanks Xaver
>
>
>
> --
> PDO Working Group Mailing List (http://pdo.php.net)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>