Skip to content

Commit 9864d63

Browse files
Adding the conf TinyIntIsBit only if not already present (#391)
1 parent cb4d025 commit 9864d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-plugin/src/main/java/io/cdap/plugin/mysql/MysqlConnectorConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Properties getConnectionArgumentsProperties() {
6161
prop.put(JDBC_PROPERTY_SOCKET_TIMEOUT, "20000");
6262
prop.put(JDBC_REWRITE_BATCHED_STATEMENTS, "true");
6363
// MySQL property to ensure that TINYINT(1) type data is not converted to MySQL Bit/Boolean type in the ResultSet.
64-
prop.put(MYSQL_TINYINT1_IS_BIT, "false");
64+
prop.putIfAbsent(MYSQL_TINYINT1_IS_BIT, "false");
6565
return prop;
6666
}
6767
}

0 commit comments

Comments
 (0)