@@ -306,11 +306,11 @@ def __del__(self):
306
306
307
307
def get_session_id (self ):
308
308
"""Get the session ID from the Session object"""
309
- return self .session .get_session_id ()
309
+ return self .session .get_id ()
310
310
311
311
def get_session_id_hex (self ):
312
312
"""Get the session ID in hex format from the Session object"""
313
- return self .session .get_session_id_hex ()
313
+ return self .session .get_id_hex ()
314
314
315
315
@staticmethod
316
316
def server_parameterized_queries_enabled (protocolVersion ):
@@ -776,7 +776,7 @@ def execute(
776
776
self ._close_and_clear_active_result_set ()
777
777
execute_response = self .thrift_backend .execute_command (
778
778
operation = prepared_operation ,
779
- session_handle = self .connection .session ._session_handle ,
779
+ session_handle = self .connection .session .get_handle () ,
780
780
max_rows = self .arraysize ,
781
781
max_bytes = self .buffer_size_bytes ,
782
782
lz4_compression = self .connection .lz4_compression ,
@@ -839,7 +839,7 @@ def execute_async(
839
839
self ._close_and_clear_active_result_set ()
840
840
self .thrift_backend .execute_command (
841
841
operation = prepared_operation ,
842
- session_handle = self .connection .session ._session_handle ,
842
+ session_handle = self .connection .session .get_handle () ,
843
843
max_rows = self .arraysize ,
844
844
max_bytes = self .buffer_size_bytes ,
845
845
lz4_compression = self .connection .lz4_compression ,
@@ -935,7 +935,7 @@ def catalogs(self) -> "Cursor":
935
935
self ._check_not_closed ()
936
936
self ._close_and_clear_active_result_set ()
937
937
execute_response = self .thrift_backend .get_catalogs (
938
- session_handle = self .connection .session ._session_handle ,
938
+ session_handle = self .connection .session .get_handle () ,
939
939
max_rows = self .arraysize ,
940
940
max_bytes = self .buffer_size_bytes ,
941
941
cursor = self ,
@@ -961,7 +961,7 @@ def schemas(
961
961
self ._check_not_closed ()
962
962
self ._close_and_clear_active_result_set ()
963
963
execute_response = self .thrift_backend .get_schemas (
964
- session_handle = self .connection .session ._session_handle ,
964
+ session_handle = self .connection .session .get_handle () ,
965
965
max_rows = self .arraysize ,
966
966
max_bytes = self .buffer_size_bytes ,
967
967
cursor = self ,
@@ -994,7 +994,7 @@ def tables(
994
994
self ._close_and_clear_active_result_set ()
995
995
996
996
execute_response = self .thrift_backend .get_tables (
997
- session_handle = self .connection .session ._session_handle ,
997
+ session_handle = self .connection .session .get_handle () ,
998
998
max_rows = self .arraysize ,
999
999
max_bytes = self .buffer_size_bytes ,
1000
1000
cursor = self ,
@@ -1029,7 +1029,7 @@ def columns(
1029
1029
self ._close_and_clear_active_result_set ()
1030
1030
1031
1031
execute_response = self .thrift_backend .get_columns (
1032
- session_handle = self .connection .session ._session_handle ,
1032
+ session_handle = self .connection .session .get_handle () ,
1033
1033
max_rows = self .arraysize ,
1034
1034
max_bytes = self .buffer_size_bytes ,
1035
1035
cursor = self ,
0 commit comments