diff --git a/start.py b/start.py index 360e055..71acd8f 100644 --- a/start.py +++ b/start.py @@ -107,9 +107,9 @@ def test_oracle_connect(): print('start') for row in cursor: if row[2] is not None: - print(row[2]) - for attr in row[2].type.attributes: - print(f' obj[{attr.name}] = {row[2][attr.name]}') + print(row[2]) + print(f' obj[SDO_GTYPE] = '+row[2]['SDO_GTYPE']) + print('stop')