OPENJPA-750: Updates to code and doc based on code review comments

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeremy Bauer 2008-10-24 15:24:21 +00:00
parent c49f0e17d6
commit 044764a395
2 changed files with 3 additions and 15 deletions

View File

@ -250,22 +250,10 @@ public class PreparedStatementManagerImpl
try {
SQLWarning warn = stmt.getWarnings();
while (warn != null) {
logSQLWarning(warn);
_log.trace(_loc.get("sql-warning", warn.getMessage()));
warn = warn.getNextWarning();
} while (warn != null);
}
} catch (SQLException e) {}
}
}
/*
* Log the SQLWarning message. Some drivers report expected conditions
* such as "no rows returned" as a warning. These types of messages can
* clutter up the default log very quickly, so trace level will be used to
* log SQL warnings.
*/
private void logSQLWarning(SQLWarning warn) {
if (warn != null) {
_log.trace(_loc.get("sql-warning", warn.getMessage()));
}
}
}

View File

@ -3377,7 +3377,7 @@ The <literal>sybase</literal> dictionary understands the following additional
properties:
</para>
<itemizedlist>
<listitem id="OracleDictionary.IgnoreNumericTruncation">
<listitem id="SybaseDictionary.IgnoreNumericTruncation">
<para>
<indexterm>
<primary>