Line 63 in /home/aeso/deploys/releases/20260119165806/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php
54 if (!empty($sql)) { 55 $formatter = SQLFormatter::create(); 56 $formattedSQL = $formatter->formatPlain($sql); 57 $msg = "Couldn't run query:\n\n{$formattedSQL}\n\n{$msg}"; 58 } 59 60 if ($errorLevel === E_USER_ERROR) { 61 // Treating errors as exceptions better allows for responding to errors 62 // in code, such as credential checking during installation 63 throw new DatabaseException($msg, 0, null, $sql, $parameters); 64 } else { 65 user_error($msg ?? '', $errorLevel ?? 0); 66 } 67 } 68 69 protected function duplicateEntryError(