Merge r3769 (fixed problem with convertBoolean in Pgsql)
This commit is contained in:
parent
fc4f7e6c1a
commit
05acd91da8
@ -106,12 +106,12 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
|
||||
{
|
||||
if (is_array($item)) {
|
||||
foreach ($item as $key => $value) {
|
||||
if (is_bool($value)) {
|
||||
if (is_bool($value) || is_numeric($item)) {
|
||||
$item[$key] = ($value) ? 'true' : 'false';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (is_bool($item)) {
|
||||
if (is_bool($item) || is_numeric($item)) {
|
||||
$item = ($item) ? 'true' : 'false';
|
||||
}
|
||||
}
|
||||
|
@ -748,7 +748,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
|
||||
}
|
||||
|
||||
if ($field['type'] === 'boolean') {
|
||||
$fields['default'] = $this->conn->convertBooleans($field['default']);
|
||||
$field['default'] = $this->conn->convertBooleans($field['default']);
|
||||
}
|
||||
$default = ' DEFAULT ' . $this->conn->quote($field['default'], $field['type']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user