diff options
author | Robin Appelman <robin@icewind.nl> | 2025-02-26 17:37:13 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-02-26 17:37:13 +0100 |
commit | f3bd4a79d9e70882c0b78664d94b726c1b6a4ec8 (patch) | |
tree | 2a61227cbfaa6e32e666e49194b3d9a718befd93 /lib/private/DB/ConnectionAdapter.php | |
parent | 9682ef7025789dd47695fe5087bb4c37ce8332af (diff) | |
download | nextcloud-server-dbal-exception-query.tar.gz nextcloud-server-dbal-exception-query.zip |
feat: log query for dbal exceptionsdbal-exception-query
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/ConnectionAdapter.php')
-rw-r--r-- | lib/private/DB/ConnectionAdapter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/ConnectionAdapter.php b/lib/private/DB/ConnectionAdapter.php index 2baeda9cfb7..3d857634a98 100644 --- a/lib/private/DB/ConnectionAdapter.php +++ b/lib/private/DB/ConnectionAdapter.php @@ -50,7 +50,7 @@ class ConnectionAdapter implements IDBConnection { $this->inner->executeQuery($sql, $params, $types) ); } catch (Exception $e) { - throw DbalException::wrap($e); + throw DbalException::wrap($e, '', $sql); } } @@ -58,7 +58,7 @@ class ConnectionAdapter implements IDBConnection { try { return $this->inner->executeUpdate($sql, $params, $types); } catch (Exception $e) { - throw DbalException::wrap($e); + throw DbalException::wrap($e, '', $sql); } } @@ -66,7 +66,7 @@ class ConnectionAdapter implements IDBConnection { try { return $this->inner->executeStatement($sql, $params, $types); } catch (Exception $e) { - throw DbalException::wrap($e); + throw DbalException::wrap($e, '', $sql); } } |