Details
-
Type:
Bug
-
Status:
Postponed
-
Priority:
N/A
-
Resolution: Unresolved
-
Affects Version/s: 0.9.2, 0.9.3, 1.0.0 RC1
-
Fix Version/s: Next Mini Release
-
Component/s: Zend_Db
-
Labels:
-
Tags:
Description
When attempting to insert or update data in {ostgreSQL database that contain boolean type values i get this response from PostgreSQL:
Invalid text representation: 7 ERROR: invalid input syntax for type boolean: ""'
It occurs only when using boolean type values.
I have somewhere a temporary fix which seems to solve the issue:
In Zend_Db_Adapter_Pdo_Abstract in the beggining of query() function add :
if(is_array($bind)){ foreach($bind as $k => $v) { if(is_bool($v)) { $bind[$k] = $v ? 't' : 'f'; } } }
seems to fix the issue.
This can't be a blocker, because there is a workaround:
you can convert PHP bool variables to the corresponding the 't' or 'f' values in your application code.