Skip to content

Dev: DatabaseException might not be thrown even if query fails #6913

Open
@kenjis

Description

@kenjis

SQLite3, Postgres and OCI8 drivers throw ErrorException when a query error occurs
because of Error Handler. See #6912

if (error_reporting() & $severity) {
throw new ErrorException($message, 0, $severity, $file, $line);
}

So depending on the value of the error reporting setting, the ErrorException may not be thrown.

See #6886 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseIssues or pull requests that affect the database layerdev

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions