fixed problem with Postgres PDO and Boolean values

See the following resources for details:
yiisoft/yii#779
https://bugs.php.net/bug.php?id=33876
http://www.yiiframework.com/forum/index.php/topic/32334-boolean-type-with-postgresql/page__view__findpost__p__155647