Skip to content

Commit

Permalink
null pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 29, 2012
1 parent a682f8c commit 3b10f9a
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -58,7 +58,10 @@ protected void createSqlTemplate() {
* According to the documentation (and experience) the jdbc driver for mysql
* requires the fetch size to be as follows.
*/
protected static SqlTemplateSettings overrideSettings(SqlTemplateSettings settings) {
protected static SqlTemplateSettings overrideSettings(SqlTemplateSettings settings) {
if (settings == null) {
settings = new SqlTemplateSettings();
}
settings.setFetchSize(Integer.MIN_VALUE);
return settings;
}
Expand Down

0 comments on commit 3b10f9a

Please sign in to comment.