r22831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22830‎ | r22831 | r22832 >
Date:00:57, 8 June 2007
Author:greg
Status:old
Tags:
Comment:
Fix up encodeBlob, don't worry so much about indexInfo compat.
Modified paths:
  • /trunk/phase3/includes/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DatabasePostgres.php
@@ -601,13 +601,9 @@
602602 if ( !$res ) {
603603 return NULL;
604604 }
605 -
606605 while ( $row = $this->fetchObject( $res ) ) {
607606 if ( $row->indexname == $index ) {
608607 return $row;
609 -
610 - // BUG: !!!! This code needs to be synced up with database.php
611 -
612608 }
613609 }
614610 return false;
@@ -1102,10 +1098,10 @@
11031099 $this->doQuery("COMMIT");
11041100 }
11051101
1106 - function encodeBlob($b) {
1107 - return array('bytea',pg_escape_bytea($b));
 1102+ function encodeBlob( $b ) {
 1103+ return pg_escape_bytea( $b );
11081104 }
1109 - function decodeBlob($b) {
 1105+ function decodeBlob( $b ) {
11101106 return pg_unescape_bytea( $b );
11111107 }
11121108

Follow-up revisions

RevisionCommit summaryAuthorDate
r22857Merged revisions 22811-22855 via svnmerge from...david00:48, 9 June 2007

Status & tagging log