Re: [PDO] pdo getColumnMeta

[email protected] (Stanley Sufficool) Tue, 14 Dec 2010 18:06:09 -0800
Newsgroups php.pdo
Message-ID <[email protected]>
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 <[email protected]> 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
>
>