The issue is that SQLite allows to do: something = [] db(db.tablename.fieldname.belongs(something)).select()
However this fails on postgres (not sure what about the others). I am using SQLite for development so I don't notice the error until I move the code into production. Not only I have error tickets in production (which should not happen), my code ends up with lots of if-else lines and I don't like it either. I think DAL should be smarter. Now it passes a query to db and postgres raises a syntax error. What do you think? --

