Jack Phoenix wrote:
> On Sat, Sep 3, 2011 at 8:45 PM, Jeroen De Dauw<[email protected]>wrote:
>
>>> $sqlx = substr( $commentedSql, 0, 500 );
>>
>> What's the reason for this line? Why truncate after 500 chars?

Probably to avoid storing several megabytes inside the sql dump when 
people save articles.


> Now that's a good question! I did some digging and finally found the
> revision in which that line was added:
> http://www.mediawiki.org/wiki/Special:Code/MediaWiki/1914 by Tim, dating
> back to November 2003. Tim might know why that limitation is there, although
> the code is ooooooold -- I don't think anyone has objections to making the
> limit configurable at least (but correct me if I'm wrong).

I think the real source is r1834
 
http://svn.wikimedia.org/viewvc/mediawiki/branches/stable/phase3/includes/DatabaseFunctions.php?r1=1728&r2=1834


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to