Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(fixed #3) MySQL driver requires to reconnect to server after a datab…

…ase error is raised.
  • Loading branch information...
commit eee60237156e284e613669b22437e4e60cc7773b 1 parent 16ef300
@fukamachi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/dbd/mysql.lisp
View
2  src/dbd/mysql.lisp
@@ -51,6 +51,8 @@
:database (connection-handle conn)
:store nil)
(mysql-error (e)
+ ;; reconnect
+ (connect-to-server (slot-value conn 'dbi.driver::%handle))
(error '<dbi-database-error>
:message (mysql-error-message e)
:error-code (mysql-error-errno e))))))

1 comment on commit eee6023

@tuscland

Hi,
Unfortunately, this problem does not seem to be fixed.
I still have to reconnect when an error is thrown.
Best,
Cam

Please sign in to comment.
Something went wrong with that request. Please try again.