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