DbQuery: WHERE without AND is still WHERE
This commit is contained in:
parent
9d511ba165
commit
c64e97f0d6
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ class DbQuery:
|
||||||
def parseWheres(self, query_where):
|
def parseWheres(self, query_where):
|
||||||
if " AND " in query_where:
|
if " AND " in query_where:
|
||||||
return query_where.split(" AND ")
|
return query_where.split(" AND ")
|
||||||
|
elif query_where:
|
||||||
|
return [query_where]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue