From 2ec9a49f173d8dbaefdb31a63092702ce61a0072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Sun, 24 Oct 2010 20:01:33 -0430 Subject: [PATCH] Resolving yet more problems with booleans in postgres --- cake/libs/model/datasources/dbo/dbo_postgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index edd22607f..bbe7d5623 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -728,14 +728,14 @@ class DboPostgres extends DboSource { case ($data === 'TRUE' || $data === 'FALSE'): $result = ($data === 'TRUE'); default: - $result = (bool)$data; + $result = (bool) $data; break; } if ($quote) { $result = ($result) ? 'TRUE' : 'FALSE'; } - return $result; + return (int) $result; } /**