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