Index: trunk/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: trunk/phase3/RELEASE-NOTES |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | === Bug fixes in 1.14 === |
32 | 32 | |
33 | | -None yet |
| 33 | +* (bug 14907) DatabasePostgres::fieldType now defined. |
34 | 34 | |
35 | 35 | === API changes in 1.14 === |
36 | 36 | |