Skip to content

Commit 7b935bb

Browse files
authored
Merge pull request #784 from utopia-php/fix-regex-perms
2 parents 6f0bc59 + 490e773 commit 7b935bb

File tree

2 files changed

+218
-221
lines changed

2 files changed

+218
-221
lines changed

src/Database/Adapter/MySQL.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public function setTimeout(int $milliseconds, string $event = Database::EVENT_AL
3232

3333
$this->timeout = $milliseconds;
3434

35-
$pdo = $this->getPDO();
36-
$pdo->exec("SET GLOBAL regexp_time_limit = {$milliseconds}");
37-
3835
$this->before($event, 'timeout', function ($sql) use ($milliseconds) {
3936
return \preg_replace(
4037
pattern: '/SELECT/',

0 commit comments

Comments
 (0)