Skip to content

Commit bfae965

Browse files
authored
fix forced use of write DB connection (#48015)
1 parent 746ad0e commit bfae965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ public function escape($value, $binary = false)
10801080
*/
10811081
protected function escapeString($value)
10821082
{
1083-
return $this->getPdo()->quote($value);
1083+
return $this->getReadPdo()->quote($value);
10841084
}
10851085

10861086
/**

0 commit comments

Comments
 (0)