From ebde29f63c195af5af3d1582c974e77d821ec420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Mon, 29 Mar 2010 23:58:07 -0430 Subject: [PATCH] Fixing error in las commit --- cake/libs/model/datasources/dbo/dbo_postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index a0c0eb3f5..4389553fe 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -600,7 +600,7 @@ class DboPostgres extends DboSource { } if (isset($default)) { - $colList[] = 'ALTER COLUMN '. $fieldName .' SET DEFAULT ' . $this->value($default, $field); + $colList[] = 'ALTER COLUMN '. $fieldName .' SET DEFAULT ' . $this->value($default, $col['type']); } else { $colList[] = 'ALTER COLUMN '. $fieldName .' DROP DEFAULT'; }