Mercurial > hg > ZDBInterface
changeset 14:9cea47dc6926
added _op_XXX=in operation
added version number
author | casties |
---|---|
date | Thu, 10 Nov 2011 19:59:59 +0100 |
parents | cf03ab908a2b |
children | 9fb0d4f24486 |
files | ZDBInterfaceFolder.py version.txt |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ZDBInterfaceFolder.py Thu Jul 07 21:04:23 2011 +0200 +++ b/ZDBInterfaceFolder.py Thu Nov 10 19:59:59 2011 +0100 @@ -99,6 +99,12 @@ words.append(param + " ILIKE %s") args.append("%" + word + "%") wheres.append("(" + " OR ".join(words) + ")") + elif op == "in": + words = [] + for word in val.split(" "): + words.append("%s") + args.append(word) + wheres.append(param + " in (" + ", ".join(words) + ")") else: logging.error("getSQLquery: unknown op=%s!"%op)