Skip to content

Commit 151e4dc

Browse files
committed
Use performance_schema.session_connect_attrs in test
1 parent 7038d92 commit 151e4dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,10 +2096,10 @@ func TestConnectAttrs(t *testing.T) {
20962096
dbt.Error("no data in processlist")
20972097
}
20982098

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

21052105
if rows.Next() {
@@ -2112,7 +2112,7 @@ func TestConnectAttrs(t *testing.T) {
21122112
dbt.Error("no data for program_name")
21132113
}
21142114

2115-
rows = dbt.mustQuery("select attr_value from performance_schema.session_account_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='foo'")
2115+
rows = dbt.mustQuery("select attr_value from performance_schema.session_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='foo'")
21162116
if rows.Next() {
21172117
var str string
21182118
rows.Scan(&str)

0 commit comments

Comments
 (0)