From: Greg Sabino Mullane Date: Fri, 8 Jun 2007 00:57:22 +0000 (+0000) Subject: Fix up encodeBlob, don't worry so much about indexInfo compat. X-Git-Tag: 1.31.0-rc.0~52621 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=edea5f726ecb148beeb76d09df966e3fbd32907b;p=lhc%2Fweb%2Fwiklou.git Fix up encodeBlob, don't worry so much about indexInfo compat. --- diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 7e5736b7af..ef20292a5d 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -601,13 +601,9 @@ class DatabasePostgres extends Database { if ( !$res ) { return NULL; } - while ( $row = $this->fetchObject( $res ) ) { if ( $row->indexname == $index ) { return $row; - - // BUG: !!!! This code needs to be synced up with database.php - } } return false; @@ -1102,10 +1098,10 @@ END; $this->doQuery("COMMIT"); } - function encodeBlob($b) { - return array('bytea',pg_escape_bytea($b)); + function encodeBlob( $b ) { + return pg_escape_bytea( $b ); } - function decodeBlob($b) { + function decodeBlob( $b ) { return pg_unescape_bytea( $b ); }