https://bugzilla.wikimedia.org/show_bug.cgi?id=37601

       Web browser: ---
             Bug #: 37601
           Summary: Tests introduced in
                    tests/phpunit/includes/db/TestORMRowTest.php fail on
                    PostgreSQL
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: postgresql
          Severity: normal
          Priority: Unprioritized
         Component: Database
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


maintenance/update.php script was run, but the tests fail nethertheless on
PostgreSQL:

$ sh -x /usr/home/saper/bin/runphpunit.sh
/usr/home/saper/public_html/pg/w/tests/phpunit/includes/db/TestORMRowTest.php
+ php -c /usr/home/saper/php.ini tests/phpunit/phpunit.php --configuration
tests/phpunit/suite.xml --exclude-group Broken,Stub,Dump,ParserFuzz --log-junit
/usr/home/saper/tests/log/postgres-log.xml
/usr/home/saper/public_html/pg/w/tests/phpunit/includes/db/TestORMRowTest.php
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from
/usr/home/saper/public_html/pg/w/tests/phpunit/suite.xml

EFF

Time: 1 second, Memory: 31.25Mb

There was 1 error:

1) TestORMRowTest::testConstructor with data set #0 (array('Foobar', 42,
9000.1, true, array(13, 11, 7, 5, 3, 2), stdClass), true)
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 ...
                                           ^



/usr/home/saper/public_html/pg/w/includes/db/Database.php:953
/usr/home/saper/public_html/pg/w/includes/db/DatabasePostgres.php:394
/usr/home/saper/public_html/pg/w/includes/db/Database.php:920
/usr/home/saper/public_html/pg/w/includes/db/Database.php:1006
/usr/home/saper/public_html/pg/w/includes/db/Database.php:1031
/usr/home/saper/public_html/pg/w/tests/phpunit/includes/db/TestORMRowTest.php:82
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiTestCase.php:75
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/usr/home/saper/public_html/pg/w/tests/phpunit/phpunit.php:103

--


There were 2 failures:

1) TestORMRowTest::testSave with data set #0 (array('Foobar', 42, 9000.1, true,
array(13, 11, 7, 5, 3, 2), stdClass), true)
Failed asserting that false is true.

/usr/home/saper/public_html/pg/w/tests/phpunit/includes/db/ORMRowTest.php:102
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiTestCase.php:75
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/usr/home/saper/public_html/pg/w/tests/phpunit/phpunit.php:103

2) TestORMRowTest::testRemove with data set #0 (array('Foobar', 42, 9000.1,
true, array(13, 11, 7, 5, 3, 2), stdClass), true)
Failed asserting that false is true.

/usr/home/saper/public_html/pg/w/tests/phpunit/includes/db/ORMRowTest.php:117
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiTestCase.php:75
/usr/home/saper/public_html/pg/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/usr/home/saper/public_html/pg/w/tests/phpunit/phpunit.php:103

FAILURES!
Tests: 3, Assertions: 6, Failures: 2, Errors: 1.
+ exit

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to