Last modified: 2013-04-22 16:15:14 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 T39352, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37352 - Boolean option issue when using sqlite
Boolean option issue when using sqlite
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nischay Nahata
:
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2012-06-05 21:02 UTC by Jeroen De Dauw
Modified: 2013-04-22 16:15 UTC (History)
4 users (show)

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


Attachments

Description Jeroen De Dauw 2012-06-05 21:02:41 UTC
When using sqlite and saving a campaign without having it enabled, it will show up as enabled when next editing it or when querying it's info via the API. Not showing as enabled on Special:UploadCampaigns though.

Works just fine on MySQL.
Comment 1 Nischay Nahata 2013-01-22 04:23:44 UTC
Moving to MediaWiki as this is due to string to boolean conversion in ORMRow, recommend to use simple boolean cast instead
http://php.net/manual/en/language.types.boolean.php

calling setField() with an empty string for a boolean datatype returns true instead of false.
Comment 2 Nischay Nahata 2013-01-22 04:31:59 UTC
https://gerrit.wikimedia.org/r/#/c/45088/
Comment 3 Nischay Nahata 2013-03-06 05:44:53 UTC
Change Merged

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


Navigation
Links