Skip to content

Commit 6645834

Browse files
committed
Rename setStatementTimeout
1 parent 5b6289e commit 6645834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embulk-input-postgresql/src/main/java/org/embulk/input/postgresql/PostgreSQLInputConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public PostgreSQLInputConnection(Connection connection, String schemaName, Optio
2323
throws SQLException
2424
{
2525
super(connection, schemaName);
26-
setStatementTimeout(statementTimeoutMillis);
26+
setStatementTimeoutIfSpecified(statementTimeoutMillis);
2727
}
2828

2929
@Override
@@ -81,7 +81,7 @@ public void close() throws SQLException
8181
}
8282
}
8383

84-
private void setStatementTimeout(Optional<Integer> statementTimeoutMillis)
84+
private void setStatementTimeoutIfSpecified(Optional<Integer> statementTimeoutMillis)
8585
throws SQLException
8686
{
8787
if (statementTimeoutMillis.isPresent() && statementTimeoutMillis.get() > 0) {

0 commit comments

Comments
 (0)