Index: trunk/phase3/includes/DatabasePostgres.php |
— | — | @@ -601,13 +601,9 @@ |
602 | 602 | if ( !$res ) { |
603 | 603 | return NULL; |
604 | 604 | } |
605 | | - |
606 | 605 | while ( $row = $this->fetchObject( $res ) ) { |
607 | 606 | if ( $row->indexname == $index ) { |
608 | 607 | return $row; |
609 | | - |
610 | | - // BUG: !!!! This code needs to be synced up with database.php |
611 | | - |
612 | 608 | } |
613 | 609 | } |
614 | 610 | return false; |
— | — | @@ -1102,10 +1098,10 @@ |
1103 | 1099 | $this->doQuery("COMMIT"); |
1104 | 1100 | } |
1105 | 1101 | |
1106 | | - function encodeBlob($b) { |
1107 | | - return array('bytea',pg_escape_bytea($b)); |
| 1102 | + function encodeBlob( $b ) { |
| 1103 | + return pg_escape_bytea( $b ); |
1108 | 1104 | } |
1109 | | - function decodeBlob($b) { |
| 1105 | + function decodeBlob( $b ) { |
1110 | 1106 | return pg_unescape_bytea( $b ); |
1111 | 1107 | } |
1112 | 1108 | |