macaron icon indicating copy to clipboard operation
macaron copied to clipboard

Empty Q object causes SQL syntax error

Open nobrin opened this issue 9 years ago • 0 comments

Empty Q() object will causes SQL syntax error.

q = Q()
User.select(q)

This means "SELECT * FROM user WHERE (())" in SQL. In case of empty Q object, it should be ignored.

nobrin avatar Apr 21 '15 05:04 nobrin