Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mssql 2000
  • Loading branch information
chenson42 committed Mar 16, 2013
1 parent 8e51d84 commit 74872ca
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -285,7 +285,8 @@ public Integer execute(Connection con) throws SQLException {
try {
stmt = con.createStatement();
stmt.setQueryTimeout(settings.getQueryTimeout());
return stmt.executeUpdate(sql);
stmt.execute(sql);
return stmt.getUpdateCount();
} finally {
close(stmt);
}
Expand All @@ -300,7 +301,8 @@ public Integer execute(Connection con) throws SQLException {
} else {
setValues(ps, args);
}
return ps.executeUpdate();
ps.execute();
return ps.getUpdateCount();
} finally {
close(ps);
}
Expand Down

0 comments on commit 74872ca

Please sign in to comment.