Skip to content

Commit

Permalink
skip for mysql5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
GuuBu authored and rusher committed Oct 10, 2019
1 parent 255566d commit 0cd9720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/mariadb/jdbc/AttributeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class AttributeTest extends BaseTest {
@Test
public void testServerHost() throws SQLException {
//test for _server_host attribute
Assume.assumeTrue(isMariadbServer() || minVersion(5,6)); //session_connect_attrs does not exist in MySQL 5.5

Statement statement = sharedConnection.createStatement();
try {
Expand All @@ -92,7 +93,7 @@ public void testServerHost() throws SQLException {
Protocol protocolVal = (Protocol) protocolField.get(connection);

Statement attributeStatement = connection.createStatement();
ResultSet result = attributeStatement.executeQuery("select * from performance_schema.session_connect_attrs where ATTR_NAME='_server_host'");
ResultSet result = attributeStatement.executeQuery("select * from performance_schema.session_connect_attrs where ATTR_NAME='_server_host' and processlist_id = connection_id()");
while(result.next()) {
String str = result.getString("ATTR_NAME");
String strVal = result.getString("ATTR_VALUE");
Expand Down

0 comments on commit 0cd9720

Please sign in to comment.