@@ -50,16 +50,11 @@ def fetchone(
50
50
class InterSystemsExecutionContext (IRISExecutionContext ):
51
51
cursor_fetch_strategy = InterSystemsCursorFetchStrategy ()
52
52
53
- def create_cursor (self ):
54
- cursor = self ._dbapi_connection .cursor ()
55
- cursor .sqlcode = 0
56
- return cursor
57
-
58
53
59
54
class IRISDialect_intersystems (IRISDialect ):
60
55
driver = "intersystems"
61
56
62
- execution_ctx_cls = InterSystemsExecutionContext
57
+ # execution_ctx_cls = InterSystemsExecutionContext
63
58
64
59
supports_statement_cache = True
65
60
@@ -148,14 +143,6 @@ def on_connect(conn):
148
143
def _get_server_version_info (self , connection ):
149
144
return self .server_version
150
145
151
- def _get_option (self , connection , option ):
152
- with connection .cursor () as cursor :
153
- cursor .execute ("SELECT %SYSTEM_SQL.Util_GetOption(?)" , (option ,))
154
- row = cursor .fetchone ()
155
- if row :
156
- return row [0 ]
157
- return None
158
-
159
146
def set_isolation_level (self , connection , level_str ):
160
147
if level_str == "AUTOCOMMIT" :
161
148
connection .autocommit = True
@@ -166,6 +153,7 @@ def set_isolation_level(self, connection, level_str):
166
153
with connection .cursor () as cursor :
167
154
cursor .execute ("SET TRANSACTION ISOLATION LEVEL " + level_str )
168
155
156
+ """
169
157
@remap_exception
170
158
def do_execute(self, cursor, query, params, context=None):
171
159
if query.endswith(";"):
@@ -182,5 +170,6 @@ def do_executemany(self, cursor, query, params, context=None):
182
170
params = [param[0] if len(param) else None for param in params]
183
171
cursor.executemany(query, params)
184
172
173
+ """
185
174
186
175
dialect = IRISDialect_intersystems
0 commit comments