diff options
-rw-r--r-- | odb/mysql/error.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/mysql/error.cxx b/odb/mysql/error.cxx index 94a41b2..4700d12 100644 --- a/odb/mysql/error.cxx +++ b/odb/mysql/error.cxx @@ -33,10 +33,12 @@ namespace odb } case CR_SERVER_LOST: case CR_SERVER_GONE_ERROR: + { + c.mark_failed (); + throw connection_lost (); + } case CR_UNKNOWN_ERROR: { - // This connection is no longer usable. - // c.mark_failed (); // Fall through. } |