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
// performance_schema seems to be updated with a delay in some conditions, so first see if we are in list:
2090
-
rows:=dbt.mustQuery("SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST where ID=CONNECTION_ID()")
2091
-
ifrows.Next() {
2092
-
} else {
2093
-
dbt.Error("no data in processlist")
2094
-
}
2089
+
// performance_schema seems to be updated with a delay in some conditions, so first see if we are in list:
2090
+
rows:=dbt.mustQuery("SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST where ID=CONNECTION_ID()")
2091
+
ifrows.Next() {
2092
+
} else {
2093
+
dbt.Error("no data in processlist")
2094
+
}
2095
2095
2096
2096
rows, err=dbt.db.Query("select attr_value from performance_schema.session_account_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='program_name'")
2097
2097
iferr!=nil {
2098
-
fmt.Println(err)
2098
+
fmt.Println(err)
2099
2099
dbt.Skip("server probably does not support performance_schema.session_account_connect_attrs")
0 commit comments