Bug #48724 [Opn->Asn]: getColumnMeta() doesn't return native_type for BIT, TINYINT and YEAR
| From: | tony2001@php.net | Date: | Mon, 16 Apr 2012 12:12:38 +0000 |
| Subject: | Bug #48724 [Opn->Asn]: getColumnMeta() doesn't return native_type for BIT, TINYINT and YEAR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169624@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=48724&edit=1
ID: 48724
Updated by: tony2001@php.net
Reported by: an0nym at narod dot ru
Summary: getColumnMeta() doesn't return native_type for BIT,
TINYINT and YEAR
-Status: Open
+Status: Assigned
Type: Bug
Package: PDO related
Operating System: *
PHP Version: 5.3.0
Block user comment: N
Private report: N
New Comment:
Ulf, could you pls check if the attached patch is correct?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2012-04-13 12:06:15] tony2001@php.net
The following patch has been added/updated:
Patch Name: fix-bug-48724.patch
Revision: 1334318775
URL: https://bugs.php.net/patch-display.php?bug=48724&patch=fix-bug-48724.patch&revision=1334318775
------------------------------------------------------------------------
[2009-07-03 16:57:28] uw@php.net
You are free to patch it.
Bye.
------------------------------------------------------------------------
[2009-07-03 16:30:12] an0nym at narod dot ru
Poor MySQLi developers... they've managed to solve this problem without
specification.
Poor you... you've spent sooo many time for nothing developing this
function, which works in 35 of 38 cases - this stuff has no
specification! Wait for a specification - you have a good excuse!
Bye.
------------------------------------------------------------------------
[2009-07-03 16:17:20] uw@php.net
You are free to write a patch.
I refuse to work on stuff that has no specification and which may go into any direction. That
typically ends up in a backwards compatibility nightmare, which in particular for an abstraction
like PDO makes no sense to me.
The patch may be rather simple. But watch out for different values returned by different MySQL
versions.
------------------------------------------------------------------------
[2009-07-03 15:39:20] an0nym at narod dot ru
> libmysql and mysqlnd behave the same way. If this is decided to be
considered as a bug it is not a mysqlnd bug.
I agree. This is not a libmysql or mysqlnd bug. This is a PDO (or
PDO_MySQL) bug.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=48724
--
Edit this bug report at https://bugs.php.net/bug.php?id=48724&edit=1