php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mauroi at digbang dot com
New email:
PHP Version: OS:

 

 [2006-03-12 15:48 UTC] mauroi at digbang dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC