# HG changeset patch # User jbe # Date 1324239283 -3600 # Node ID 594a85118cb7338f2c5f12f253de56ec98a6cb6c # Parent 89030e955845479454196b76aaa12b89f6f2b836 Bugfix in :add_from(...) and :left_join(...) diff -r 89030e955845 -r 594a85118cb7 libraries/mondelefant/mondelefant.lua --- a/libraries/mondelefant/mondelefant.lua Tue Sep 06 21:05:11 2011 +0200 +++ b/libraries/mondelefant/mondelefant.lua Sun Dec 18 21:14:43 2011 +0100 @@ -227,7 +227,7 @@ end if condition then if first then - self:condition(condition) + self:add_where(condition) else add(self._from, "ON") add(self._from, condition) @@ -521,7 +521,7 @@ end if condition then if first then - self:condition(condition) + self:add_where(condition) else add(self._from, "ON") add(self._from, condition)