mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Fix obvious mistakes like spelling errors
This commit is contained in:
@@ -513,10 +513,10 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
|
||||
return;
|
||||
}
|
||||
|
||||
if (holder.getDefaultRowPretch() == -1) {
|
||||
if (holder.getDefaultRowPrefetch() == -1) {
|
||||
int defaultRowPretch = OracleUtils.getRowPrefetch(this);
|
||||
if (defaultRowPretch != holder.getDefaultRowPretch()) {
|
||||
holder.setDefaultRowPretch(defaultRowPretch);
|
||||
if (defaultRowPretch != holder.getDefaultRowPrefetch()) {
|
||||
holder.setDefaultRowPrefetch(defaultRowPretch);
|
||||
holder.setRowPrefetch(defaultRowPretch);
|
||||
}
|
||||
}
|
||||
@@ -525,8 +525,8 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
|
||||
|
||||
if (fetchRowPeak <= 1) {
|
||||
rowPrefetch = 2;
|
||||
} else if (fetchRowPeak > holder.getDefaultRowPretch()) {
|
||||
rowPrefetch = holder.getDefaultRowPretch();
|
||||
} else if (fetchRowPeak > holder.getDefaultRowPrefetch()) {
|
||||
rowPrefetch = holder.getDefaultRowPrefetch();
|
||||
} else {
|
||||
rowPrefetch = fetchRowPeak + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user