Author: tack
Date: Sat Mar 18 18:47:34 2006
New Revision: 1305
Modified:
trunk/base/src/db.py
Log:
Add "like" operator to QExpr
Modified: trunk/base/src/db.py
==============================================================================
--- trunk/base/src/db.py (original)
+++ trunk/base/src/db.py Sat Mar 18 18:47:34 2006
@@ -101,8 +101,8 @@
Flexible query expressions for use with Database.query()
"""
def __init__(self, operator, operand):
- assert(operator in ("=", "!=", "<", "<=", ">", ">=", "in", "not in",
- "range"))
+ operator = operator.lower()
+ assert(operator in ("=", "!=", "<", "<=", ">", ">=", "in", "not in",
"range", "like"))
if operator in ("in", "not in", "range"):
assert(type(operand) == tuple)
if operator == "range":
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog