Revision 2461
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
164 | 164 |
|
165 | 165 |
def to_str(self, db, left_value): |
166 | 166 |
if not isinstance(left_value, Code): left_value = Col(left_value) |
167 |
if isinstance(left_value, NamedCol): left_value = left_value.code |
|
167 | 168 |
|
168 | 169 |
right_value = self.value |
169 | 170 |
left = left_value.to_str(db) |
Also available in: Unified diff
sql_gen.py: CompareCond.to_str(): If left_value has been renamed as a NamedCol, unwrap it