Menu

#601 report error when DB connection failed

closed-fixed
None
5
2021-02-02
2021-01-29
No

Dear Gerry,
I've added a little patch to class_pgv_db file. It fixes reporting of connect to db error. It was reported a non existence of a DBC object instead of the real reason.
I've catch the error when set limit of simultaneous connections to the DB and was very surprised with the exceptions reported.

Discussion

  • Gerry Kroll

    Gerry Kroll - 2021-01-29
    • assigned_to: Gerry Kroll
     
  • Gerry Kroll

    Gerry Kroll - 2021-01-29

    Thank you.

    Can you please post your updated class_pgv_db.php file, in ZIP format? That way, there is no mistake about your changes.

    Regards, Gerry Kroll

     
  • Tomasz Babczyński

    Maybe this patch will be better. It is generated ignoring white spaces and contains only important changes. The rest in the previous one is just the indentation matter.

     
  • Gerry Kroll

    Gerry Kroll - 2021-02-02
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +0,0 @@
    -DB_error.patch (22.7 kB; text/plain)
    
     
  • Gerry Kroll

    Gerry Kroll - 2021-02-02
    • status: open --> closed-fixed
     
  • Gerry Kroll

    Gerry Kroll - 2021-02-02

    Thank you.

    For those of us who don't speak "patch", the attached ZIP file is the complete class_pgv_db.php, as it was posted to SVN 7281.

     

    Last edit: Gerry Kroll 2021-02-02

Log in to post a comment.