From c747319ab0af789a14da92f60f7a8a7ba5183670 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 7 Oct 2011 21:47:22 +0200 Subject: [PATCH] Try to fix PostgreSQL 9.x cast issue. --- inc/Principal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Principal.php b/inc/Principal.php index e46bee7e..c0ed381e 100644 --- a/inc/Principal.php +++ b/inc/Principal.php @@ -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;