r37995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37994‎ | r37995 | r37996 >
Date:12:42, 24 July 2008
Author:demon
Status:old
Tags:
Comment:
Fix bug 14907 on branch as well.
Modified paths:
  • /branches/REL1_13/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_13/phase3/includes/db/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: branches/REL1_13/phase3/includes/db/DatabasePostgres.php
@@ -1167,6 +1167,16 @@
11681168 function fieldInfo( $table, $field ) {
11691169 return PostgresField::fromText($this, $table, $field);
11701170 }
 1171+
 1172+ /**
 1173+ * pg_field_type() wrapper
 1174+ */
 1175+ function fieldType( $res, $index ) {
 1176+ if ( $res instanceof ResultWrapper ) {
 1177+ $res = $res->result;
 1178+ }
 1179+ return pg_field_type( $res, $index );
 1180+ }
11711181
11721182 function begin( $fname = 'DatabasePostgres::begin' ) {
11731183 $this->query( 'BEGIN', $fname );
Index: branches/REL1_13/phase3/RELEASE-NOTES
@@ -453,6 +453,7 @@
454454 * (bug 12568) configuration script now produce valid XHTML.
455455 * The accesskey to edit a page is now disabled when editing the page, to pre-
456456 vent conflicts with Safari shortcuts.
 457+* (bug 14907) DatabasePostgres::fieldType now defined.
457458
458459 === API changes in 1.13 ===
459460

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r37994bug 14907 - DatabasePostgres::fieldType() wasn't defined, fatal errors abound.demon12:37, 24 July 2008

Status & tagging log