Skip to content

Commit

Permalink
Fix double quoted fields in record messages (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflprr authored Jun 6, 2018
1 parent 0d4daaf commit de04cd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tap_redshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

from tap_redshift import resolve

__version__ = '1.0.0b6'
__version__ = '1.0.0b7'

LOGGER = singer.get_logger()

Expand Down Expand Up @@ -286,10 +286,9 @@ def sync_table(connection, catalog_entry, state):
tap_stream_id = catalog_entry.tap_stream_id
LOGGER.info('Beginning sync for {} table'.format(tap_stream_id))
with connection.cursor() as cursor:
columns = ['"{}"'.format(c) for c in columns]
schema, table = catalog_entry.table.split('.')
select = 'SELECT {} FROM {}.{}'.format(
','.join(columns),
','.join('"{}"'.format(c) for c in columns),
'"{}"'.format(schema),
'"{}"'.format(table))
params = {}
Expand Down

0 comments on commit de04cd9

Please sign in to comment.