Skip to content

Commit 8a38cb7

Browse files
committed
add autocommit
1 parent 836d927 commit 8a38cb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/geckotechnology/mySqlDataCompare/MySQLSchemaRetriever.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public void openConnection() throws Exception {
2424
Properties info = new Properties();
2525
info.put ("defaultFetchSize", Integer.toString(SELECT_FETCH_SIZE));
2626
info.put ("useCursorFetch", "true");
27-
conn = DriverManager.getConnection(url, info);
27+
conn = DriverManager.getConnection(url, info);
28+
conn.setAutoCommit(true);
2829
}
2930

3031
public void closeConnection() {

0 commit comments

Comments
 (0)