Skip to content

Commit 5813139

Browse files
authored
Merge pull request #20 from gjsstigter/Patch-issue-19
Resolve issue 19 - where query is sometimes missing in the connection
2 parents 7b644eb + 60a565c commit 5813139

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 1.1.1
4+
5+
* Resolve issue where query is sometimes missing
6+
37
## 1.1.0
48

59
* Update psycopg2 to 2.8 to support python 3.8

actions/lib/base_action.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def db_connection(self, kwargs_dict):
119119
if default_driver:
120120
connection['drivername'] = default_driver
121121

122+
# Check if query is in de connection
123+
if 'query' not in connection:
124+
connection['query'] = ()
125+
122126
# Format the connection string
123127
database_connection_string = URL(**connection)
124128

pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- Postgres
77
- MySQL
88
- MsSQL
9-
version: 1.1.0
9+
version: 1.1.1
1010
author: Encore Technologies
1111
1212
python_versions:

0 commit comments

Comments
 (0)