You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/12/15 20:07:09 UTC
svn commit: r1645724 - in /commons/proper/dbutils/trunk/src:
site/xdoc/building.xml site/xdoc/examples.xml
test/java/org/apache/commons/dbutils/QueryRunnerTest.java
Author: sebb
Date: Mon Dec 15 19:07:09 2014
New Revision: 1645724
URL: http://svn.apache.org/r1645724
Log:
Tab police
Modified:
commons/proper/dbutils/trunk/src/site/xdoc/building.xml
commons/proper/dbutils/trunk/src/site/xdoc/examples.xml
commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java
Modified: commons/proper/dbutils/trunk/src/site/xdoc/building.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/site/xdoc/building.xml?rev=1645724&r1=1645723&r2=1645724&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/site/xdoc/building.xml (original)
+++ commons/proper/dbutils/trunk/src/site/xdoc/building.xml Mon Dec 15 19:07:09 2014
@@ -47,8 +47,8 @@
The result will be in "target/docs".
</p>
<p>
- Further details can be found in the
- <a href="http://commons.apache.org/building.html">commons build instructions</a>.
+ Further details can be found in the
+ <a href="http://commons.apache.org/building.html">commons build instructions</a>.
</p>
</section>
<!-- ================================================== -->
Modified: commons/proper/dbutils/trunk/src/site/xdoc/examples.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/site/xdoc/examples.xml?rev=1645724&r1=1645723&r2=1645724&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/site/xdoc/examples.xml (original)
+++ commons/proper/dbutils/trunk/src/site/xdoc/examples.xml Mon Dec 15 19:07:09 2014
@@ -93,8 +93,7 @@ Connection conn = ... // open a connecti
try{
Object[] result = run.query(
conn, "SELECT * FROM Person WHERE name=?", h, "John Doe");
- // do something with the result
-
+ // do something with the result
} finally {
// Use this helper method so we don't have to check for null
DbUtils.close(conn);
Modified: commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java?rev=1645724&r1=1645723&r2=1645724&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java (original)
+++ commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java Mon Dec 15 19:07:09 2014
@@ -411,7 +411,7 @@ public class QueryRunnerTest {
when(stmt.getGeneratedKeys()).thenReturn(results);
when(results.next()).thenReturn(true).thenReturn(false);
when(results.getObject(1)).thenReturn(1L);
-
+
Long generatedKey = runner.insert("INSERT INTO blah(col1, col2) VALUES(?,?)", new ScalarHandler<Long>(), "unit", "test");
verify(stmt, times(1)).executeUpdate();