Skip to content

Commit

Permalink
DataQuery, need to set primary and replica servers for NC29.
Browse files Browse the repository at this point in the history
  • Loading branch information
rotdrop committed May 23, 2024
1 parent c1475ce commit ebda81f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Query/DataQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ private function connectToDatabase()
"tablePrefix" => "",
"driverOptions" => array()
);
$parameters['primary'] = $parameters;
$parameters['replica'] = [$parameters];

if ($this->properties[DB::DRIVER] == 'mysql') {
if ($this->properties[DB::SSL_CA]) {
Expand Down

1 comment on commit ebda81f

@rotdrop
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.