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

Database failover error on postgresql #899

Closed
byazrail opened this issue Jan 13, 2018 · 2 comments
Closed

Database failover error on postgresql #899

byazrail opened this issue Jan 13, 2018 · 2 comments

Comments

@byazrail
Copy link
Contributor

BaseConnection
initialize() function
failover connect before DNS clean required.

sample;
$this->DSN = '';

				// Try to connect
				$this->connID = $this->connect($this->pConnect);
@lonnieezell
Copy link
Member

I'm confused on what the actual error is that you're reporting. Please provide a better example and how you would expect it to work.

@byazrail
Copy link
Contributor Author

byazrail commented Feb 5, 2018

hi,

old database dns string not clean new failover connection try.
postgreSQL Connection connect function;

if (empty($this->DSN))
{
	$this->buildDSN();
}

failover before not empty buildDNS;

BaseConnection initialize function;

// Replace the current settings with those of the failover
foreach ($failover as $key => $val)
{
	$this->$key = $val;
}

$this->DSN = ''; // added new line.

// Try to connect
$this->connID = $this->connect($this->pConnect);

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