|
@@ -191,7 +191,9 @@ def create(config_file="dbtools/OPTIMA.json"):
|
|
|
prefix, cfg.filter[0], cfg.filter[1]
|
|
|
)
|
|
|
elif "." in source_table or cfg.source_dsn["schema"] == "":
|
|
|
- select_query = f'SELECT T1.* FROM \\"{source_table}\\" T1 '
|
|
|
+ if source_table[0] != "[":
|
|
|
+ source_table = f"[{source_table}]"
|
|
|
+ select_query = f"SELECT T1.* FROM {source_table} T1 "
|
|
|
else:
|
|
|
select_query = f"SELECT T1.* FROM [{cfg.source_dsn['schema']}].[{source_table}] T1 "
|
|
|
|