This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.23.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit c4c1e6107a5f4a672de137fa0f9b18c6a1e0876d Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jul 1 05:39:04 2019 +0200 Fixed CS --- .../apache/camel/component/jdbc/ResultSetIterator.java | 2 +- .../apache/camel/component/jdbc/JdbcColumnTypeTest.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/ResultSetIterator.java b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/ResultSetIterator.java index cc063c6..c3c8108 100644 --- a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/ResultSetIterator.java +++ b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/ResultSetIterator.java @@ -57,7 +57,7 @@ public class ResultSetIterator implements Iterator<Map<String, Object>> { String columnName = getColumnName(metaData, columnNumber, isJDBC4); int columnType = metaData.getColumnType(columnNumber); - if(columnType == Types.CLOB) { + if (columnType == Types.CLOB) { columns[i] = new ClobColumn(columnName, columnNumber); } else if (columnType == Types.BLOB) { columns[i] = new BlobColumn(columnName, columnNumber); diff --git a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcColumnTypeTest.java b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcColumnTypeTest.java index 3f63e8a..68fcc5d 100644 --- a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcColumnTypeTest.java +++ b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcColumnTypeTest.java @@ -1,3 +1,19 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.camel.component.jdbc; import java.io.InputStream;