Skip to content

Commit 05f15c1

Browse files
committed
Use performance_schema.session_connect_attrs in test
1 parent b529d90 commit 05f15c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2093,10 +2093,10 @@ func TestConnectAttrs(t *testing.T) {
20932093
dbt.Error("no data in processlist")
20942094
}
20952095

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'")
2096+
rows, err = dbt.db.Query("select attr_value from performance_schema.session_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='program_name'")
20972097
if err != nil {
20982098
fmt.Println(err)
2099-
dbt.Skip("server probably does not support performance_schema.session_account_connect_attrs")
2099+
dbt.Skip("server probably does not support performance_schema.session_connect_attrs")
21002100
}
21012101

21022102
if rows.Next() {
@@ -2109,7 +2109,7 @@ func TestConnectAttrs(t *testing.T) {
21092109
dbt.Error("no data for program_name")
21102110
}
21112111

2112-
rows = dbt.mustQuery("select attr_value from performance_schema.session_account_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='foo'")
2112+
rows = dbt.mustQuery("select attr_value from performance_schema.session_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='foo'")
21132113
if rows.Next() {
21142114
var str string
21152115
rows.Scan(&str)

0 commit comments

Comments
 (0)