Last modified: 2013-03-16 23:17:43 UTC
When installing MediaWiki 1.15.0 on DB2 v8.0 the error below occurs. DB2 v8 does not support the "/* */" multi-line SQL comment syntax. The Database class (includes/db/Database.php) seems to be injecting the comment into the statement during the query() method before execution. Warning: db2_exec() [function.db2-exec]: Statement Execute Failed in C:\httpd\mediawiki\includes\db\DatabaseIbm_db2.php on line 595 SELECT /* */ COUNT(*) FROM SYSIBM.SYSTABLES ST WHERE ST.NAME = 'cur' AND ST.CREATOR = 'mediawiki' SQL error: [IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "SELECT /* */ COUNT(*)" was found following "BEGIN-OF-STATEMENT". Expected tokens may include: "<space>". SQLSTATE=42601 SQLCODE=-104 Backtrace: #0 C:\httpd\mediawiki\includes\db\Database.php(595): DatabaseIbm_db2->doQuery('SELECT /* */ ...') #1 C:\httpd\mediawiki\includes\db\DatabaseIbm_db2.php(626): Database->query('SELECT COUNT(*)...') #2 C:\httpd\mediawiki\config\index.php(1039): DatabaseIbm_db2->tableExists('cur') #3 {main}
db2 support dropped with Gerrit change #50764