User "Hashar" posted a comment on MediaWiki.r87992.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/87992#c21412
Commit summary:
Support abstraction for 'NOT IN' SQL structure
Following a live discussion with Catrope.
When using Database::makeList() in LIST_AND or LIST_OR modes, you can now
suffix the field name with an exclamation mark. It will negate the logical
boolean.
Example:
$db->makeList( array( 'field!' => array( 1,2,3 ) );
outputs:
'field' NOT IN ('1', '2', '3' );
$db->makeList( array( 'foo!' => array( 777 ) ) );
outputs:
'foo' =! 777
(note: tests not ran, please run them and ammend them)
Comment:
That revision was hacked up during the Berlin hackaton. Catrope and Krinkle
found it awesome then brion raised a concern (see above).
I have sent a Request For Comment on the wikitech-l mailing list to attract
more commenters/reviewers/thought:
http://permalink.gmane.org/gmane.science.linguistics.wikipedia.technical/55179
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview