Skip to content

MySQL error handling could be improved #1240

@vadz

Description

@vadz

Currently this backend code only uses mysql_errno(), but this doesn't provide full information about the errors and, moreover, mysql_soci_error::get_error_category() handles just a few of these error codes.

We should use mysql_sqlstate() to return the more informative SQLSTATE values and return the correct categories for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category/EnhancementOverall improvements, not necessarily bug fixesMySQLStatus/Need-HelpLooking for volunteers willing to help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions