https://bugzilla.wikimedia.org/show_bug.cgi?id=27646

Daniel Friesen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mediawiki-bugs@nadir-seen-f
                   |                            |ire.com

--- Comment #1 from Daniel Friesen <[email protected]> 
2011-02-23 00:13:28 UTC ---
We don't have any good support for the more common operators like != < > <=
etc... besides inline sql, we should come up with proper support for those
before we add BETWEEN.

Also, we can't support those syntaxes. 'colname' => array( [...] ) is already
used to create a 'colname IN (...)'.

We'll need to come up with a new way of writing queries.

We could make a "real" query building object:

DBQuery::conds()
  ->column('colname')->eq($foo)
  ->column('colname')->in($arr)
  ->column('colname')->like("{0}%", $foo) // perhaps something better, but I
didn't like the idea of a pile more buildLike-like stuff
  ->column('colname')->between(1,5)
  ->column('colname')->compare('>=', 3)

Then again, what I really want myself is abstraction that kills the need to
depend heavily on database structure.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

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

Reply via email to