Skip to content

Commit ebe2d19

Browse files
authored
Assign OS390Reflector for Db2 for z/OS (#147)
When connecting to a DBMS starting with "DSN" (Db2 for z/OS), assign the OS390Reflector. Signed-off-by: R_H <118392077+rhgit01@users.noreply.github.com>
1 parent 975e254 commit ebe2d19

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ibm_db_sa/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,8 @@ def initialize(self, connection):
733733
_reflector_cls = ibm_reflection.DB2Reflector
734734
elif "IDS/" in self.dbms_name:
735735
_reflector_cls = ibm_reflection.DB2Reflector
736+
elif self.dbms_name.startswith("DSN"):
737+
_reflector_cls = ibm_reflection.OS390Reflector
736738
self._reflector = _reflector_cls(self)
737739

738740
def get_columns(self, connection, table_name, schema=None, **kw):

0 commit comments

Comments
 (0)