webmcp
changeset 55:594a85118cb7
Bugfix in <db_selector>:add_from(...) and <db_selector>:left_join(...)
author | jbe |
---|---|
date | Sun Dec 18 21:14:43 2011 +0100 (2011-12-18) |
parents | 89030e955845 |
children | 36ebcae1cde3 |
files | libraries/mondelefant/mondelefant.lua |
line diff
1.1 --- a/libraries/mondelefant/mondelefant.lua Tue Sep 06 21:05:11 2011 +0200 1.2 +++ b/libraries/mondelefant/mondelefant.lua Sun Dec 18 21:14:43 2011 +0100 1.3 @@ -227,7 +227,7 @@ 1.4 end 1.5 if condition then 1.6 if first then 1.7 - self:condition(condition) 1.8 + self:add_where(condition) 1.9 else 1.10 add(self._from, "ON") 1.11 add(self._from, condition) 1.12 @@ -521,7 +521,7 @@ 1.13 end 1.14 if condition then 1.15 if first then 1.16 - self:condition(condition) 1.17 + self:add_where(condition) 1.18 else 1.19 add(self._from, "ON") 1.20 add(self._from, condition)