Skip to content

Commit

Permalink
Fix issue with snowflake Connector (#13)
Browse files Browse the repository at this point in the history
* Fix issue with snowflake Connector

* More fixes
  • Loading branch information
MeirShpilraien authored Apr 14, 2020
1 parent 7070b45 commit 65e0787
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rgsync/Connectors/sql_connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def __init__(self, user, passwd, db, account):
self.account = account

def _getConnectionStr(self):
return 'snowflake://{user}:{password}@{account}/{db}'.format(user=self.username,
password=self.password,
return 'snowflake://{user}:{password}@{account}/{db}'.format(user=self.user,
password=self.passwd,
account=self.account,
db=self.db)

Expand Down Expand Up @@ -182,5 +182,5 @@ def GetUpdateQuery(table, pkey, values_with_pkey, values):
self.exactlyOnceQuery = GetUpdateQuery(self.exactlyOnceTableName, 'id', ['id', 'val'], ['val'])

class SnowflakeSqlConnector(OracleSqlConnector):
def __init__(self, OracleSqlConnector, tableName, pk, exactlyOnceTableName=None):
OracleSqlBackend.__init__(self, OracleSqlConnector, tableName, pk, exactlyOnceTableName)
def __init__(self, connection, tableName, pk, exactlyOnceTableName=None):
OracleSqlConnector.__init__(self, connection, tableName, pk, exactlyOnceTableName)

0 comments on commit 65e0787

Please sign in to comment.