Req #72583 [Opn->Ver]: All data are fetched as strings

From: Date: Wed, 13 Jul 2016 01:28:27 +0000
Subject: Req #72583 [Opn->Ver]: All data are fetched as strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202259@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72583&edit=1

 ID:                 72583
 Updated by:         kalle@php.net
 Reported by:        dorin dot marcoci at gmail dot com
 Summary:            All data are fetched as strings
-Status:             Open
+Status:             Verified
 Type:               Feature/Change Request
 Package:            PDO Firebird
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2016-07-13 01:28:17] kalle@php.net

Changing this to be a FR;

Big side note here, every database driver seems to do this very differently and there is not much
consistency across the board, even in PDO where I believe we had an option or similar to do so (or
maybe it was just MySQL, I can't remember for certain).

But all in all, it would be nice to do this for all database drivers, or at least those that are in
the core now with the increased typeness in PHP.

------------------------------------------------------------------------
[2016-07-12 09:05:32] dorin dot marcoci at gmail dot com

Description:
------------
All columns are fetched as strings, even numeric, bools, etc...
Numeric columns (integers, floats) should be returned as native values.

In MySQL ND package this works as expected.
Please fix this for Firebird too.

Thanks!

Expected result:
----------------
Correct types

Actual result:
--------------
Incorrect types


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=72583&edit=1


Thread (4 messages)

« previous php.bugs (#202259) next »