fukamachi / mito

An ORM for Common Lisp with migrations, relationships and PostgreSQL support
284 stars 31 forks source link

Fix unbound *connection* error after disconnected #107

Closed sheepduke closed 3 years ago

sheepduke commented 3 years ago

Function disconnect-toplevel calls makunbound on variable *connection*.

The following code fails unconditionally:

(mito:disconnect-toplevel)
(mito.connection:connected-p) ; => Error: The variable *CONNECTION* is unbound.

This PR fixes this issue.

106

fukamachi commented 3 years ago

Thanks!