Skip to content

Commit d2468f1

Browse files
betodealmeidamistercrunch
authored andcommitted
Check if connection is closed before execute (#113)
1 parent bdf6bac commit d2468f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydruid/db/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def cursor(self):
132132

133133
return cursor
134134

135+
@check_closed
135136
def execute(self, operation, parameters=None):
136137
cursor = self.cursor()
137138
return cursor.execute(operation, parameters)

0 commit comments

Comments
 (0)