Last modified: 2012-08-04 20:48:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13021 - IMAGE.img_metadata and OLDIMAGE.oi_metadata types differ
IMAGE.img_metadata and OLDIMAGE.oi_metadata types differ
Status: RESOLVED DUPLICATE of bug 11363
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: postgres
  Show dependency treegraph
Reported: 2008-02-14 20:14 UTC by Daniel Wilches
Modified: 2012-08-04 20:48 UTC (History)
1 user (show)

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


Description Daniel Wilches 2008-02-14 20:14:14 UTC
In some file, mediawiki is trying to insert from table IMAGE to OLDIMAGE, but it complains on Postgres 8.2 because IMAGE.img_metadata is of a different type than OLDIMAGE.oi_metadata. One is BYTEA and the other is TEXT.

Here is what mediawiki tells:

A database error has occurred Query: INSERT INTO oldimage (oi_name,oi_archive_name,oi_size,oi_width,oi_height,oi_bits,oi_timestamp,oi_description,oi_user,oi_user_text,oi_metadata,oi_media_type,oi_major_mime,oi_minor_mime,oi_sha1) SELECT img_name,'20080214195833!Metodologia.png',img_size,img_width,img_height,img_bits,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_media_type,img_major_mime,img_minor_mime,img_sha1 FROM image WHERE img_name = 'Metodologia.png' Function: LocalFile::recordUpload2 Error: 1 ERROR: column "oi_metadata" is of type bytea but expression is of type text LINE 1: ...,oi_timestamp,oi_description,oi_user,oi_user_text,oi_metadat... ^ HINT: You will need to rewrite or cast the expression.
Comment 1 OverlordQ 2008-02-14 22:10:56 UTC
Looking in the source:

Appears this was fixed in r26042:

Modified Sun Sep 23 20:47:17 2007 UTC (4 months, 3 weeks ago) by greg 
(Bug 11363). Change image and filearchive to bytea from text, to match oldimage.
Comment 2 OverlordQ 2008-02-14 22:12:03 UTC

*** This bug has been marked as a duplicate of bug 11363 ***

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