Page MenuHomePhabricator

Boolean option issue when using sqlite
Closed, ResolvedPublic

Description

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.


Version: 1.21.x
Severity: normal

Details

Reference
bz37352

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:28 AM
bzimport added a project: Wikimedia-Rdbms.
bzimport set Reference to bz37352.

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.

Change Merged