]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DatabaseException.php
Increased performance when fetching the parent
[friendica.git] / src / Database / DatabaseException.php
index 9473e58081feaedfd33470c96f33f9c772da1fdc..8c99b9a7ef4a59a26d8af46c4df2ecc6ef29e146 100644 (file)
@@ -45,9 +45,8 @@ class DatabaseException extends Exception
         */
        public function __construct(string $message, int $code, string $query, Throwable $previous = null)
        {
-               $this->query = $query;
-
                parent::__construct(sprintf('"%s" at "%s"', $message, $query) , $code, $previous);
+               $this->query = $query;
        }
 
        /**