mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-12 13:14:23 +03:00
Merge 7365ee3ec9
into c52cf2b045
This commit is contained in:
commit
c438e358aa
|
@ -109,6 +109,7 @@ class NormalCursorWrapper:
|
|||
alias = getattr(self.db, "alias", "default")
|
||||
conn = self.db.connection
|
||||
vendor = getattr(conn, "vendor", "unknown")
|
||||
sql_str = sql.decode(errors="ignore") if isinstance(sql, bytes) else sql
|
||||
|
||||
params = {
|
||||
"vendor": vendor,
|
||||
|
@ -122,7 +123,7 @@ class NormalCursorWrapper:
|
|||
"start_time": start_time,
|
||||
"stop_time": stop_time,
|
||||
"is_slow": duration > 10,
|
||||
"is_select": sql.lower().strip().startswith("select"),
|
||||
"is_select": sql_str.lower().strip().startswith("select"),
|
||||
}
|
||||
|
||||
if vendor == "postgresql":
|
||||
|
|
Loading…
Reference in New Issue
Block a user