Skip to content

Commit 22c9bec

Browse files
committed
Output a warning about MySQL Connector/J version up.
1 parent 24b7320 commit 22c9bec

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

embulk-output-mysql/src/main/java/org/embulk/output/mysql/MySQLOutputConnection.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,20 @@ public void compareTimeZone() throws SQLException
119119
timeZoneComparison.compareTimeZone();
120120
}
121121

122+
//
123+
//
124+
// The MySQL Connector/J 5.1.35 introduce new option `Current MySQL Connect`.
125+
// It has incompatibility behavior current version and 5.1.35.
126+
//
127+
// This method announces users about this change before the update driver version.
128+
//
129+
@Override
130+
public void showDriverVersion() throws SQLException {
131+
super.showDriverVersion();
132+
logger.warn("This plugin will update MySQL Connector/J version in the near future release.");
133+
logger.warn("It has some incompatibility changes.");
134+
logger.warn("For example, the 5.1.35 introduced `noTimezoneConversionForDateType` and `cacheDefaultTimezone` options.");
135+
logger.warn("Please read a document and make sure configuration carefully before updating the plugin.");
136+
}
137+
122138
}

0 commit comments

Comments
 (0)