|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-17 11:12 UTC] lsmith@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
Description: ------------ MDB has auto type conversion. It doesn't work on pgsql with type 'boolean'. Patch followed: --- pgsql.php.orig Fri Jul 18 00:51:40 2003 +++ pgsql.php Fri Jul 18 00:54:38 2003 @@ -749,7 +749,7 @@ { switch ($type) { case MDB_TYPE_BOOLEAN: - return(strcmp($value, 'Y') ? 0 : 1); + return(strcmp($value, 't') ? false : true); case MDB_TYPE_DECIMAL: return(sprintf('%.'.$this->decimal_places.'f',doubleval($value)/$this->decimal_factor)); case MDB_TYPE_FLOAT: