Last modified: 2008-07-24 12:42:41 UTC
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.
Fixed in r37994 (trunk) and r37995 (branch 1.13)