[jira] Created: (CAMEL-1283) SQL component doesn't handle wrong number of parameters

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1283) SQL component doesn't handle wrong number of parameters

JIRA jira@apache.org
SQL component doesn't handle wrong number of parameters
-------------------------------------------------------

                 Key: CAMEL-1283
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1283
             Project: Apache Camel
          Issue Type: Bug
    Affects Versions: 1.5.0
            Reporter: Roman Kalukiewicz
            Assignee: Roman Kalukiewicz
             Fix For: 2.0.0


NPE thrown when null body sent to to SQL endpoint. When to many parameters are set then exception is thrown but nothing wrong happens when to less parameters are set.

It should be possible to set null as a body as there might be parameterless statement to execute. There should be consistent Exception thrown when wrong number of parameters is set.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-1283) SQL component doesn't handle wrong number of parameters

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-1283 started by Roman Kalukiewicz.

> SQL component doesn't handle wrong number of parameters
> -------------------------------------------------------
>
>                 Key: CAMEL-1283
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1283
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Roman Kalukiewicz
>            Assignee: Roman Kalukiewicz
>             Fix For: 2.0.0
>
>
> NPE thrown when null body sent to to SQL endpoint. When to many parameters are set then exception is thrown but nothing wrong happens when to less parameters are set.
> It should be possible to set null as a body as there might be parameterless statement to execute. There should be consistent Exception thrown when wrong number of parameters is set.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-1283) SQL component doesn't handle wrong number of parameters

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Kalukiewicz resolved CAMEL-1283.
--------------------------------------

    Resolution: Fixed

Patch commited

> SQL component doesn't handle wrong number of parameters
> -------------------------------------------------------
>
>                 Key: CAMEL-1283
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1283
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Roman Kalukiewicz
>            Assignee: Roman Kalukiewicz
>             Fix For: 2.0.0
>
>
> NPE thrown when null body sent to to SQL endpoint. When to many parameters are set then exception is thrown but nothing wrong happens when to less parameters are set.
> It should be possible to set null as a body as there might be parameterless statement to execute. There should be consistent Exception thrown when wrong number of parameters is set.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.