Skip to content

Commit

Permalink
Add PyMySQL dbapi commenter case
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Oct 9, 2024
1 parent 881f4af commit b0a9efd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def get_statement(self, cursor, args): # pylint: disable=no-self-use
return statement.decode("utf8", "replace")
return statement

def traced_execution(
def traced_execution( # pylint: disable=too-many-branches
self,
cursor,
query_method: typing.Callable[..., typing.Any],
Expand Down Expand Up @@ -479,6 +479,10 @@ def traced_execution(
mysqlc_version = (
self._db_api_integration.connect_module._mysql.get_client_info()
)
if db_driver == "pymysql":
mysqlc_version = (
self._db_api_integration.connect_module.get_client_info()
)

commenter_data.update(
{
Expand Down

0 comments on commit b0a9efd

Please sign in to comment.