metric.checkpoint("exec");
isSuccess = true;
} catch (Exception e) {
errorCode = options.generateErrorCode();
logEx = e;
<BUG>throw new DatabaseException(DebugSql.exceptionMessage(sql, null, errorCode, options), e);
</BUG>
} finally {
close(ps);
metric.checkpoint("close");

metric.checkpoint("exec");
isSuccess = true;
} catch (Exception e) {
errorCode = options.generateErrorCode();
logEx = e;
throw DatabaseException.wrap(DebugSql.exceptionMessage(sql, null, errorCode, options), e);
} finally {
close(ps);
metric.checkpoint("close");
