From edea5f726ecb148beeb76d09df966e3fbd32907b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 8 Jun 2007 00:57:22 +0000 Subject: [PATCH] Fix up encodeBlob, don't worry so much about indexInfo compat. --- includes/DatabasePostgres.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 ); } -- 2.20.1