Page MenuHomePhabricator

Call to DatabasePostgres::fieldType generates a fatal error.
Closed, ResolvedPublic

Description

Author: lhridley

Description:
DatabasePostgres inherits existing methods from Database, which is effectively the database abstraction object for MySQL; however, there is no method in DatabasePostgres to override method Database::fieldType, which gets inherited.

A call to DatabasePostgres::fieldType generates a fatal error because it is written for MySQL and utilizes mysql_field_type(), a PHP function that returns the database field type for MySQL.

DatabasePostgres::fieldType should be added to DatabasePostgres.php that overrides Database::fieldType and uses pg_field_type() or pg_fieldtype() (depending on the PHP version) instead.


Version: unspecified
Severity: normal

Details

Reference
bz14907

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:14 PM
bzimport set Reference to bz14907.
bzimport added a subscriber: Unknown Object (MLST).

Fixed in r37994 (trunk) and r37995 (branch 1.13)