Skip to content

Commit

Permalink
fix forced use of write DB connection (#48015)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiikhr committed Aug 10, 2023
1 parent 746ad0e commit bfae965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connection.php
Expand Up @@ -1080,7 +1080,7 @@ public function escape($value, $binary = false)
*/
protected function escapeString($value)
{
return $this->getPdo()->quote($value);
return $this->getReadPdo()->quote($value);
}

/**
Expand Down

0 comments on commit bfae965

Please sign in to comment.