Revision 2644
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
190 | 190 |
|
191 | 191 |
def __setitem__(self, key, value): |
192 | 192 |
key = self._key(key) |
193 |
if value == None: value = self.db.col_default(key) |
|
193 | 194 |
return dict.__setitem__(self, key, as_Col(value, name=key.name)) |
194 | 195 |
|
195 | 196 |
def update(self, dict_): |
Also available in: Unified diff
sql_gen.py: ColDict: Translate NULL values to the key column's actual default value. This avoids incorrectly comparing against NULL in join/filter conditions when the column's actual default value must be used.