You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return the profiles of last executed stored procedure or UDF in current thread. If there is no previous
108
+
stored procedure or UDF call, an error will be raised.
109
+
110
+
Note:
111
+
Please call this function right after the stored procedure or UDF you want to profile to avoid any error.
112
+
113
+
"""
114
+
# return empty string when profiler is not enabled to not interrupt user's code
115
+
ifnotself._is_enabled:
116
+
logger.warning(
117
+
"You are seeing this warning because you try to get profiler output while profiler is disabled. Please use profiler.set_active_profiler() to enable profiler."
118
+
)
119
+
return""
120
+
query_id=self._get_last_query_id()
121
+
ifquery_idisNone:
122
+
logger.warning(
123
+
"You are seeing this warning because last executed stored procedure or UDF does not exist. Please run the store procedure or UDF before get profiler output."
Return the profiles of last executed stored procedure in current thread. If there is no previous
137
-
stored procedure call, an error will be raised.
138
-
Please call this function right after the stored procedure you want to profile to avoid any error.
139
-
140
-
"""
141
-
# return empty string when profiler is not enabled to not interrupt user's code
142
-
ifnotself._is_enabled:
143
-
logger.warning(
144
-
"You are seeing this warning because you try to get profiler output while profiler is disabled. Please use profiler.set_active_profiler() to enable profiler."
145
-
)
146
-
return""
147
-
query_id=self._get_last_query_id()
148
-
ifquery_idisNone:
149
-
logger.warning(
150
-
"You are seeing this warning because last executed stored procedure does not exist. Please run the store procedure before get profiler output."
0 commit comments