Skip to content

explicitly display mysqli error #64

@michalbundyra

Description

@michalbundyra

Minor change to show mysqli errno and error explicitly. Without this, mysqli errors do not get shown in some debuggers when preparing sql statements, for example whoops.

Here is an example with whoops before
original_schema_error

and after the change.
schema_error_corrected

I think some components already use this style, for example zend-http/src/Client/Adapter/Socket.php line 278.


Originally posted by @ConorSheehan1 at zendframework/zend-db#269

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions