You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Camel Guy (JIRA)" <ji...@apache.org> on 2014/11/19 19:18:35 UTC
[jira] [Updated] (CAMEL-7904) JDBC and SQL components: Setting the
PostgreSQL schema search path
[ https://issues.apache.org/jira/browse/CAMEL-7904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Camel Guy updated CAMEL-7904:
-----------------------------
Component/s: camel-core
Description:
For PostgreSQL it is common to run two commands in a single transaction in order to set the schema search path:
set search_path to foo, public;
select 5;
Due to connection pooling it is desirable to combine both statements in a single operation.
These types of queries don't work with the JDBC and SQL components because they return the result set for the first command (set search_path), which is always empty.
The easiest solution would be an option to skip the first N result sets. However, if any of those result sets reported an error, an exception should be thrown.
was:
For PostgreSQL it is common to run two commands in a single transaction in order to set the schema search path:
set search_path to foo, public;
select 5;
Due to connection pooling it is desirable to combine both statements in a single operation.
These types of queries don't work with the JDBC component because it only returns the result set for the first command (set search_path), which is always empty.
The easiest solution would be an option to skip the first N result sets. However, if any of those result sets reported an error, an exception should be thrown.
Summary: JDBC and SQL components: Setting the PostgreSQL schema search path (was: JDBC component: Setting the PostgreSQL schema search path)
> JDBC and SQL components: Setting the PostgreSQL schema search path
> ------------------------------------------------------------------
>
> Key: CAMEL-7904
> URL: https://issues.apache.org/jira/browse/CAMEL-7904
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Affects Versions: 2.13.0
> Reporter: Camel Guy
>
> For PostgreSQL it is common to run two commands in a single transaction in order to set the schema search path:
> set search_path to foo, public;
> select 5;
> Due to connection pooling it is desirable to combine both statements in a single operation.
> These types of queries don't work with the JDBC and SQL components because they return the result set for the first command (set search_path), which is always empty.
> The easiest solution would be an option to skip the first N result sets. However, if any of those result sets reported an error, an exception should be thrown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)