Skip to content

Commit

Permalink
Disable TestConnectionAttributes in mariadb env
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemonxiao committed Jan 31, 2023
1 parent 2546947 commit c7744d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3232,6 +3232,14 @@ func TestConnectionAttributes(t *testing.T) {

dbt := &DBTest{t, db}

var version string
if err := dbt.db.QueryRow("SELECT @@version").Scan(&version); err != nil {
dbt.Fatalf("%s", err.Error())
}
if strings.Contains(strings.ToLower(version), "mariadb") {
t.Skip(`TODO: Support adding connection attributes in MariaDB`)
}

var attrValue string
queryString := "SELECT ATTR_VALUE FROM performance_schema.session_account_connect_attrs WHERE PROCESSLIST_ID = CONNECTION_ID() and ATTR_NAME = ?"
rows := dbt.mustQuery(queryString, connAttrClientName)
Expand Down

0 comments on commit c7744d6

Please sign in to comment.