Page 1 of 1

Redshift and error "opening multiple cursors..."

Posted: Thu 23 May 2019 10:46
by mariot
Hi.

I use Unidac 7.3.10 and have problem with data access provider for Amazon Redshift.
When I open new query, while exist another open query (main), then this error appeared (after second record in main query is processed):
"opening multiple cursors from within the same client connection is not allowed"

I use provider for Amazon Redshift similar way as data access provider for PostgreSQL with similar program code. In PostgreSQL it is OK, in Amazon Redshift not.

With ODBC connection it is OK (for Amazon Redshift).

Any suggestion please?

Re: Redshift and error "opening multiple cursors..."

Posted: Thu 23 May 2019 20:23
by mariot
Solution: I had UniDirectional parameter set to true. When I set it to false, then using of Redshift provider is OK, but it is more slow.

Re: Redshift and error "opening multiple cursors..."

Posted: Fri 24 May 2019 13:39
by MaximG
The described issue is not caused by our driver functionality - it stems from the limitations that Amazon Redshift imposes on the use of cursors. Please see this page for a detailed description: https://docs.aws.amazon.com/en_us/redsh ... clare.html