camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1378827 - /camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Date Thu, 30 Aug 2012 07:11:27 GMT
Author: ningjiang
Date: Thu Aug 30 07:11:27 2012
New Revision: 1378827

URL: http://svn.apache.org/viewvc?rev=1378827&view=rev
Log:
CAMEL-5551 fix the CS error

Modified:
    camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java

Modified: camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java?rev=1378827&r1=1378826&r2=1378827&view=diff
==============================================================================
--- camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
(original)
+++ camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Thu Aug 30 07:11:27 2012
@@ -258,14 +258,13 @@ public class JdbcProducer extends Defaul
                         columnName = meta.getColumnName(columnNumber);
                     }
                 }
-				// use index based which should be faster
-				int columnType = meta.getColumnType( columnNumber );
-				if (columnType == Types.CLOB || columnType == Types.BLOB) {
-					row.put(columnName, rs.getString( columnNumber));
-				}
-				else {
-					row.put(columnName, rs.getObject(columnNumber));
-				}
+                // use index based which should be faster
+                int columnType = meta.getColumnType(columnNumber);
+                if (columnType == Types.CLOB || columnType == Types.BLOB) {
+                    row.put(columnName, rs.getString(columnNumber));
+                } else {
+                    row.put(columnName, rs.getObject(columnNumber));
+                }
             }
             data.add(row);
             rowNumber++;



Mime
View raw message