5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 02:51:00 +08:00

SQOOP-1250: Oracle connector is not disabling autoCommit on created connections

(Jarek Jarcec Cecho via Venkat Ranganathan)
This commit is contained in:
Venkat Ranganathan 2013-12-05 11:07:30 -08:00
parent e98075976b
commit 8d3454dc60

View File

@ -331,6 +331,12 @@ protected Connection makeConnection() throws SQLException {
// Setting session time zone
setSessionTimeZone(connection);
// Rest of the Sqoop code expects that the connection will have be running
// without autoCommit, so we need to explicitly set it to false. This is
// usually done directly by SqlManager in the makeConnection method, but
// since we are overriding it, we have to do it ourselves.
connection.setAutoCommit(false);
return connection;
}