Last modified: 2004-09-07 13:46:30 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 T2412, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 412 - <math> fails on PostgreSQL
<math> fails on PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2004-09-07 08:38 UTC by Brion Vibber
Modified: 2004-09-07 13:46 UTC (History)
1 user (show)

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


Attachments

Description Brion Vibber 2004-09-07 08:38:44 UTC
On a PostgreSQL-backed wiki, rendering <math> segments fails when trying to record the equation into the math table:

Warning: pg_query() [function.pg-query]: Query failed: ERROR: null value in column "math_html" violates not-null constraint in /
var/www/html/gres/includes/DatabasePostgreSQL.php on line 96
A database error has occurred Query: INSERT INTO math 
(math_inputhash,math_outputhash,math_html_conservativeness,math_html,math_mathml) VALUES ('?0?????\\??:
??','(?m??hsF~e}2?''?H','2',NULL,NULL) Function: Error: 1 ERROR: null value in column "math_html" violates not-null constraint

Backtrace:

DatabasePostgreSQL.php line 370 calls wfDebugDieBacktrace()

Database.php line 297 calls DatabasePostgreSQL::reportQueryError()

DatabasePostgreSQL.php line 317 calls DatabasePostgreSQL::query()

Math.php line 138 calls DatabasePostgreSQL::replace()

Math.php line 212 calls MathRenderer::render()

Parser.php line 271 calls renderMath()

Parser.php line 132 calls Parser::strip()

OutputPage.php line 240 calls Parser::parse()

Article.php line 830 calls OutputPage::addWikiText()

index.php line 119 calls Article::view()
Comment 1 Domas Mituzas 2004-09-07 13:46:30 UTC
fixed in current schema, 

alter table math alter column math_mathml drop not null;
alter table math alter column math_html drop not null;

those 'not nulls' suck anyway, if field can be null, why shouldn't it?

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


Navigation
Links