Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We can't create a multiple connection with Pgsql #119

Closed
michalbundyra opened this issue Jan 16, 2020 · 1 comment
Closed

We can't create a multiple connection with Pgsql #119

michalbundyra opened this issue Jan 16, 2020 · 1 comment

Comments

@michalbundyra
Copy link
Member

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7377
User: @wandersonwhcr
Created On: 2015-03-27T19:54:03Z
Updated At: 2015-04-03T01:47:43Z
Body
Olá pessoas!

I'm trying to use a multiple connection with pgsql adapter, but it always retrieve the same PHP resource, even setting a multiple configuration in ServiceManager.

Why?

http://php.net/manual/en/function.pg-connect.php

If we use same configuration in both connections, we'll always receive same resource. But if we pass PGSQL_CONNECT_FORCE_NEW parameter, all works fine.

8d603705 master Zend\Db\Adapter\Driver\Pgsql\Connection

Thanks.


Comment

User: @samsonasik
Created On: 2015-04-03T01:47:43Z
Updated At: 2015-04-03T01:47:43Z
Body
linked with #7396



Originally posted by @GeeH at zendframework/zend-db#129

@samsonasik
Copy link
Member

I'm closing it as there is PR for it that merged at zendframework/zendframework#7396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants