Skip to content

Commit

Permalink
quoted column names to handle reserved keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
jy0321.song committed Jul 2, 2020
1 parent 48e046a commit 72e174d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piicatcher/explorer/databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _get_catalog_query(self):
@classmethod
def _get_sample_query(cls, schema_name, table_name, column_list):
return cls._sample_query_template.format(
column_list=",".join([col.get_name() for col in column_list]),
column_list='"{0}"'.format('", "'.join(col.get_name() for col in column_list)),
schema_name=schema_name.get_name(),
table_name=table_name.get_name()
)
Expand Down

0 comments on commit 72e174d

Please sign in to comment.