Revision 5448
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_gen.py | ||
---|---|---|
1162 | 1162 |
|
1163 | 1163 |
# Replace out both with and without quotes |
1164 | 1164 |
expr = expr.replace(out.to_str(db), in_str) |
1165 |
expr = re.sub(r'(?<!["\'\.\[])\b'+out.name+r'\b(?!["\'\.=\]])', in_str, |
|
1165 |
expr = re.sub(r'(?<!["\'\.=\[])\b'+out.name+r'\b(?!["\'\.=\]])', in_str,
|
|
1166 | 1166 |
expr) |
1167 | 1167 |
|
1168 | 1168 |
if in_cols_found != None and expr != orig_expr: # replaced something |
Also available in: Unified diff
sql_gen.py: map_expr(): Fixed bug where names were being replaced when they were inside another name. This occurred with combined names created by sql_io.into_table_name().