Skip to content

Commit

Permalink
Merge pull request #1528 from lab79/patch-1
Browse files Browse the repository at this point in the history
[Vertica] Change: set longer read_timeout
  • Loading branch information
arikfr authored Jan 17, 2017
2 parents bca7d08 + 509c176 commit 8b74de7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion redash/query_runner/vertica.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def configuration_schema(cls):
"port": {
"type": "number"
},
"read_timeout": {
"type": "number",
"title": "Read Timeout"
},
},
'required': ['database'],
'secret': ['password']
Expand Down Expand Up @@ -109,7 +113,8 @@ def run_query(self, query, user):
'port': self.configuration.get('port', 5433),
'user': self.configuration.get('user', ''),
'password': self.configuration.get('password', ''),
'database': self.configuration.get('database', '')
'database': self.configuration.get('database', ''),
'read_timeout': self.configuration.get('read_timeout', 600)
}
connection = vertica_python.connect(**conn_info)
cursor = connection.cursor()
Expand Down

0 comments on commit 8b74de7

Please sign in to comment.