Revision 2841
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1185 | 1185 |
# after applying dicts.join() because that returns a plain dict |
1186 | 1186 |
|
1187 | 1187 |
# Resolve default value column |
1188 |
try: default = mapping[default]
|
|
1189 |
except KeyError:
|
|
1190 |
if default != None:
|
|
1188 |
if default != None:
|
|
1189 |
try: default = mapping[default]
|
|
1190 |
except KeyError:
|
|
1191 | 1191 |
db.log_debug('Default value column ' |
1192 | 1192 |
+strings.as_tt(strings.repr_no_u(default)) |
1193 | 1193 |
+' does not exist in mapping, falling back to None', level=2.1) |
Also available in: Unified diff
sql.py: put_table(): Resolving default value column: Fixed bug where default value of None was used as a key for mapping, even though this is an invalid Col name