Last modified: 2011-12-18 20:39:18 UTC
See url. The page is an empty page, but the export contains: <text xml:space="preserve" bytes="" /> I am expected a bytes="0" for empty pages. Thanks.
This seems to depend on the value of $row->revlen... Testing locally on trunk <page> <title>Blank</title> <ns>0</ns> <id>223</id> <revision> <id>326</id> <timestamp>2011-12-11T18:54:49Z</timestamp> <contributor> <ip>192.168.0.17</ip> </contributor> <comment>noh</comment> <text xml:space="preserve" bytes="0"/> </revision> </page> mysql> select * from revision WHERE rev_id = 94010356; +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ | rev_id | rev_page | rev_text_id | rev_comment | rev_user | rev_user_text | rev_timestamp | rev_minor_edit | rev_deleted | rev_len | rev_parent_id | +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ | 94010356 | 10129 | 6754686 | Hob den Schutz von „[[Diskussion:Sylvia]]“ auf | 10276 | APPER | 20110924151739 | 1 | 0 | NULL | 94010347 | +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ 1 row in set (0.00 sec) Said db row on dewiki mysql> select * from revision WHERE rev_id = 94010356; +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ | rev_id | rev_page | rev_text_id | rev_comment | rev_user | rev_user_text | rev_timestamp | rev_minor_edit | rev_deleted | rev_len | rev_parent_id | +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ | 94010356 | 10129 | 6754686 | Hob den Schutz von „[[Diskussion:Sylvia]]“ auf | 10276 | APPER | 20110924151739 | 1 | 0 | NULL | 94010347 | +----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+ 1 row in set (0.00 sec) Pushing null through intval seems to be enough r105816
Needs a (second?) run of populateRevisionLength to fill that field right?