Skip to content

Commit 60e7e1f

Browse files
authored
Fix circleci (#61)
* Fix locale issues * Change variable name to not override a module name to make pylint happy * Revert the addition of the catalog flag
1 parent 77edd50 commit 60e7e1f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
command: |
1111
aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh
1212
source dev_env.sh
13+
export LC_ALL=C
1314
python3 -m venv /usr/local/share/virtualenvs/tap-postgres
1415
source /usr/local/share/virtualenvs/tap-postgres/bin/activate
1516
pip install .

tap_postgres/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,9 @@ def main_impl():
691691

692692
if args.discover:
693693
do_discovery(conn_config)
694-
elif args.properties or args.catalog:
694+
elif args.properties:
695695
state = args.state
696-
do_sync(conn_config, args.catalog.to_dict() if args.catalog else args.properties, args.config.get('default_replication_method'), state)
696+
do_sync(conn_config, args.properties, args.config.get('default_replication_method'), state)
697697
else:
698698
LOGGER.info("No properties were selected")
699699

tap_postgres/sync_strategies/logical_replication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def create_array_elem(elem, sql_datatype, conn_info):
134134
#custom datatypes like enums
135135
cast_datatype = 'text[]'
136136

137-
sql = """SELECT $stitch_quote${}$stitch_quote$::{}""".format(elem, cast_datatype)
138-
cur.execute(sql)
137+
sql_stmt = """SELECT $stitch_quote${}$stitch_quote$::{}""".format(elem, cast_datatype)
138+
cur.execute(sql_stmt)
139139
res = cur.fetchone()[0]
140140
return res
141141

0 commit comments

Comments
 (0)