-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from tmaeno/master
for jedi enhancement
- Loading branch information
Showing
5 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
release_version = "0.3.22" | ||
release_version = "0.3.23" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# wrapper for Oracle Connection | ||
class WrappedOracleConn(object): | ||
def __init__(self, conn): | ||
self.orig_conn = conn | ||
|
||
def __getattribute__(self, item): | ||
try: | ||
return object.__getattribute__(self.orig_conn, item) | ||
except Exception: | ||
pass | ||
return object.__getattribute__(self, item) | ||
|
||
# override context manager protocol not to close connection | ||
def __enter__(self): | ||
return self.orig_conn.__enter__() | ||
|
||
def __exit__(self, exc_type, exc_val, exc_tb): | ||
self.orig_conn.commit() |