try this with current git code (2011-02-04):
(select (table :tbl) (where (and (= :id 1) (= :valid_until nil))))
results in: SELECT tbl.* FROM tbl WHERE ((tbl.id = 1) AND (tbl.valtbl.id_until IS NULL))
expected: SELECT tbl.* FROM tbl WHERE ((tbl.id = 1) AND (tbl.valid_until IS NULL))
...obvilously the substring 'id' within 'valid_until' gets erroneously replaced by the fully qualified tbl.id
try this with current git code (2011-02-04): (select (table :tbl) (where (and (= :id 1) (= :valid_until nil)))) results in: SELECT tbl.* FROM tbl WHERE ((tbl.id = 1) AND (tbl.valtbl.id_until IS NULL)) expected: SELECT tbl.* FROM tbl WHERE ((tbl.id = 1) AND (tbl.valid_until IS NULL)) ...obvilously the substring 'id' within 'valid_until' gets erroneously replaced by the fully qualified tbl.id