|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-21 11:30 UTC] jani@php.net
[2008-10-29 01:00 UTC] php-bugs at lists dot php dot net
[2014-03-20 18:15 UTC] contact at nicolasbouliane dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 09 01:00:01 2025 UTC |
Description: ------------ Fetching data on BIT columns with NULL values return 0 (zero) instead of NULL. Reproduce code: --------------- <?php $db = new PDO('dblib:host=X;dbname=X', 'x', 'x'); print_r($db->query("SELECT CONVERT(BIT,NULL) AS THIS_MUST_BE_BLANK")->fetch(PDO::FETCH_ASSOC)); Expected result: ---------------- Array ( [THIS_MUST_BE_BLANK] => ) Actual result: -------------- Array ( [THIS_MUST_BE_BLANK] => 0 )