Last modified: 2012-12-28 01:39:49 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 T40930, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38930 - TestORMRowTest::testConstructor with data set #0 (array('Foobar', 42, 9000.1, true, array(13, 11, 7, 5, 3, 2), stdClass), true)
TestORMRowTest::testConstructor with data set #0 (array('Foobar', 42, 9000.1,...
Status: RESOLVED DUPLICATE of bug 37601
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2012-08-01 19:40 UTC by OverlordQ
Modified: 2012-12-28 01:39 UTC (History)
4 users (show)

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


Attachments

Description OverlordQ 2012-08-01 19:40:06 UTC
DBQueryError: A database error has occurred.  Did you forget to run maintenance/update.php after upgrading?  See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: CREATE TABLE IF NOT EXISTS "unittest_orm_test"(
				test_id                    INT unsigned        NOT NULL auto_increment PRIMARY KEY,
				test_name                  VARCHAR(255)        NOT NULL,
				test_age                   TINYINT unsigned    NOT NULL,
				test_height                FLOAT               NOT NULL,
				test_awesome               TINYINT unsigned    NOT NULL,
				test_stuff                 BLOB                NOT NULL,
				test_moarstuff             BLOB                NOT NULL,
				test_time                  varbinary(14)       NOT NULL
			);
Function: DatabaseBase::safeQuery
Error: 42601 ERROR:  syntax error at or near "unsigned"
LINE 2:     test_id                    INT unsigned        NOT NULL ...
Comment 1 OverlordQ 2012-08-01 19:40:51 UTC
                                           ^



/var/www/thedarkcitadel.com/w/includes/db/Database.php:972
/var/www/thedarkcitadel.com/w/includes/db/DatabasePostgres.php:468
/var/www/thedarkcitadel.com/w/includes/db/Database.php:939
/var/www/thedarkcitadel.com/w/includes/db/Database.php:1025
/var/www/thedarkcitadel.com/w/includes/db/Database.php:1050
/var/www/thedarkcitadel.com/w/tests/phpunit/includes/db/TestORMRowTest.php:82
/var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiTestCase.php:75
/var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/var/www/thedarkcitadel.com/w/tests/phpunit/phpunit.php:103

(Forgot second part of error)
Comment 2 Antoine "hashar" Musso (WMF) 2012-08-02 14:07:53 UTC
Which database backend (and version) are you using?

I am CCing Jeroen De Dauw who wrote the ORM stuff.
Comment 3 OverlordQ 2012-08-02 15:06:53 UTC
Postgres, as given the postgres keyword tag, marking it a blocker of the postgres tracking bug, and the second line of the backtrace which is DatabasePostgres.php

Version is generally unimportant in this case, as the main issue is the datatypes in the CREATE statement which have been fairly invariant for the basic types. Although for giggles it's 9.1.4

INT unsigned => INT
varchar(255) => TEXT
TINYINT unsigned => SMALLINT
FLOAT => REAL
BLOB => BYTEA
varbinary(14) => BYTEA

I think are the general mappings.
Comment 4 Tim Landscheidt 2012-12-28 01:39:49 UTC

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

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


Navigation
Links