Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A77C6200C22 for ; Tue, 21 Feb 2017 14:32:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5FC5160B3E; Tue, 21 Feb 2017 13:32:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1594160B68 for ; Tue, 21 Feb 2017 14:32:52 +0100 (CET) Received: (qmail 87057 invoked by uid 500); 21 Feb 2017 13:32:52 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 87046 invoked by uid 99); 21 Feb 2017 13:32:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 13:32:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 81276185F11 for ; Tue, 21 Feb 2017 13:32:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jVfoy6zzq0SZ for ; Tue, 21 Feb 2017 13:32:49 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C936E5FCCA for ; Tue, 21 Feb 2017 13:32:48 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 588E6E0A0D for ; Tue, 21 Feb 2017 13:32:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5324124138 for ; Tue, 21 Feb 2017 13:32:44 +0000 (UTC) Date: Tue, 21 Feb 2017 13:32:44 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-10870) camel-sql stored procedures don't support negative vendor-specific JDBC types MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 13:32:53 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15875968#comment-15875968 ] ASF GitHub Bot commented on CAMEL-10870: ---------------------------------------- Github user adessaigne closed the pull request at: https://github.com/apache/camel/pull/1479 > camel-sql stored procedures don't support negative vendor-specific JDBC types > ----------------------------------------------------------------------------- > > Key: CAMEL-10870 > URL: https://issues.apache.org/jira/browse/CAMEL-10870 > Project: Camel > Issue Type: Improvement > Components: camel-sql > Reporter: Antoine DESSAIGNE > Assignee: Claus Ibsen > Fix For: 2.18.3, 2.19.0 > > > When you use a vendor-specific JDBC type in {{camel-sql}} you need to use its value instead of its label. > For instance, if you use oracle if you want to call a stored procedure that returns a {{FIXED_CHAR}} type you need to write: > {noformat} > > {noformat} > All values are defined here: https://docs.oracle.com/cd/E16338_01/appdev.112/e13995/constant-values.html#oracle_jdbc_OracleTypes_ARRAY > You can notice that there are negative values in this list ({{CURSOR}} for instance). Unfortunately the negative values aren't handled by the parser which leads to the following exception > {noformat} > org.apache.camel.component.sql.stored.template.ast.ParseRuntimeException: Field -10 not found from java.procedureName.Types > at org.apache.camel.component.sql.stored.template.ast.ParseHelper.parseSqlType(ParseHelper.java:41) > at org.apache.camel.component.sql.stored.template.generated.SSPTParser.OutParameter(SSPTParser.java:92) > at org.apache.camel.component.sql.stored.template.generated.SSPTParser.Parameter(SSPTParser.java:60) > at org.apache.camel.component.sql.stored.template.generated.SSPTParser.parse(SSPTParser.java:23) > at org.apache.camel.component.sql.stored.template.TemplateParser.parseTemplate(TemplateParser.java:31) > at org.apache.camel.component.sql.stored.CallableStatementWrapperFactory.getTemplateStoredProcedure(CallableStatementWrapperFactory.java:71) > at org.apache.camel.component.sql.stored.CallableStatementWrapper.populateStatement(CallableStatementWrapper.java:104) > at org.apache.camel.component.sql.stored.SqlStoredProducer$1.execute(SqlStoredProducer.java:69) > at org.apache.camel.component.sql.stored.CallableStatementWrapper.call(CallableStatementWrapper.java:55) > at org.apache.camel.component.sql.stored.SqlStoredProducer.process(SqlStoredProducer.java:43) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)