Index: branches/REL1_13/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -1167,6 +1167,16 @@ |
1168 | 1168 | function fieldInfo( $table, $field ) { |
1169 | 1169 | return PostgresField::fromText($this, $table, $field); |
1170 | 1170 | } |
| 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 | + } |
1171 | 1181 | |
1172 | 1182 | function begin( $fname = 'DatabasePostgres::begin' ) { |
1173 | 1183 | $this->query( 'BEGIN', $fname ); |
Index: branches/REL1_13/phase3/RELEASE-NOTES |
— | — | @@ -453,6 +453,7 @@ |
454 | 454 | * (bug 12568) configuration script now produce valid XHTML. |
455 | 455 | * The accesskey to edit a page is now disabled when editing the page, to pre- |
456 | 456 | vent conflicts with Safari shortcuts. |
| 457 | +* (bug 14907) DatabasePostgres::fieldType now defined. |
457 | 458 | |
458 | 459 | === API changes in 1.13 === |
459 | 460 | |