Try to fix PostgreSQL 9.x cast issue.

This commit is contained in:
Andrew McMillan 2011-10-07 21:47:22 +02:00
parent ec2c7084a8
commit c747319ab0

View File

@ -513,7 +513,7 @@ class Principal {
if ( !isset($field_values->{$k}) && !isset($this->{$k}) ) continue;
if ( $inserting ) {
$insert_fields[] = $k;
$param_names[] = ':'.$k;
$param_names[] = ':'.$k . ($k == 'default_privileges' ? '::BIT(24)' : '');
}
else {
$update_list[] = $k.'=:'.$k;