Closed keitheis closed 11 years ago
table = "wants" updated_at_field = "wants.updated_at" select_sql = select(table, {updated_at_field: None}) print(select_sql) print(db.session.execute(select_sql).rowcount) Output: SELECT * FROM wants WHERE wants.updated_at = null 0 select_sql = ("SELECT * FROM " + table + " WHERE " + updated_at_field + " IS NULL") print(select_sql) print(db.session.execute(select_sql).rowcount) Output: SELECT * FROM wants WHERE wants.updated_at IS NULL 37