Last modified: 2008-07-24 12:42:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16907, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14907 - Call to DatabasePostgres::fieldType generates a fatal error.
Call to DatabasePostgres::fieldType generates a fatal error.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-24 12:16 UTC by Lisa Ridley
Modified: 2008-07-24 12:42 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Lisa Ridley 2008-07-24 12:16:46 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.
Comment 1 Chad H. 2008-07-24 12:42:41 UTC
Fixed in r37994 (trunk) and r37995 (branch 1.13)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links