@@ -306,11 +306,11 @@ def __del__(self):
306306
307307 def get_session_id (self ):
308308 """Get the session ID from the Session object"""
309- return self .session .get_session_id ()
309+ return self .session .get_id ()
310310
311311 def get_session_id_hex (self ):
312312 """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 ()
314314
315315 @staticmethod
316316 def server_parameterized_queries_enabled (protocolVersion ):
@@ -776,7 +776,7 @@ def execute(
776776 self ._close_and_clear_active_result_set ()
777777 execute_response = self .thrift_backend .execute_command (
778778 operation = prepared_operation ,
779- session_handle = self .connection .session ._session_handle ,
779+ session_handle = self .connection .session .get_handle () ,
780780 max_rows = self .arraysize ,
781781 max_bytes = self .buffer_size_bytes ,
782782 lz4_compression = self .connection .lz4_compression ,
@@ -839,7 +839,7 @@ def execute_async(
839839 self ._close_and_clear_active_result_set ()
840840 self .thrift_backend .execute_command (
841841 operation = prepared_operation ,
842- session_handle = self .connection .session ._session_handle ,
842+ session_handle = self .connection .session .get_handle () ,
843843 max_rows = self .arraysize ,
844844 max_bytes = self .buffer_size_bytes ,
845845 lz4_compression = self .connection .lz4_compression ,
@@ -935,7 +935,7 @@ def catalogs(self) -> "Cursor":
935935 self ._check_not_closed ()
936936 self ._close_and_clear_active_result_set ()
937937 execute_response = self .thrift_backend .get_catalogs (
938- session_handle = self .connection .session ._session_handle ,
938+ session_handle = self .connection .session .get_handle () ,
939939 max_rows = self .arraysize ,
940940 max_bytes = self .buffer_size_bytes ,
941941 cursor = self ,
@@ -961,7 +961,7 @@ def schemas(
961961 self ._check_not_closed ()
962962 self ._close_and_clear_active_result_set ()
963963 execute_response = self .thrift_backend .get_schemas (
964- session_handle = self .connection .session ._session_handle ,
964+ session_handle = self .connection .session .get_handle () ,
965965 max_rows = self .arraysize ,
966966 max_bytes = self .buffer_size_bytes ,
967967 cursor = self ,
@@ -994,7 +994,7 @@ def tables(
994994 self ._close_and_clear_active_result_set ()
995995
996996 execute_response = self .thrift_backend .get_tables (
997- session_handle = self .connection .session ._session_handle ,
997+ session_handle = self .connection .session .get_handle () ,
998998 max_rows = self .arraysize ,
999999 max_bytes = self .buffer_size_bytes ,
10001000 cursor = self ,
@@ -1029,7 +1029,7 @@ def columns(
10291029 self ._close_and_clear_active_result_set ()
10301030
10311031 execute_response = self .thrift_backend .get_columns (
1032- session_handle = self .connection .session ._session_handle ,
1032+ session_handle = self .connection .session .get_handle () ,
10331033 max_rows = self .arraysize ,
10341034 max_bytes = self .buffer_size_bytes ,
10351035 cursor = self ,
0 commit comments