|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56888 Alternative for getColumnMeta
Submitted: 2006-03-12 15:48 UTC Modified: 2008-09-12 10:57 UTC
From: mauroi at digbang dot com Assigned:
Status: Not a bug Package: PDO (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2006-03-12 15:48 UTC] mauroi at digbang dot com
I'm trying to make our db abstraction class to work with PDO. The only problem I have found so far, is that getColumnMeta is a little to much for what we need. We try to cast every result obtained from the db as the correspondent php native type (or a custom class, in the case of a datetime). Maybe it could be useful if there was a method that only returns the native type (and avoids all the extra work needed to find everything else). 

Thanks in advance.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-12 10:57 UTC] johannes at schlueters dot de
Drivers can return the type which works for them best (as long as the stringify attribute is not explicitly set), as of PHP 5.3 the MySQL driver will return native types when using native prepared statements.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 12:02:32 2020 UTC