fukamachi / mito

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

Function disconnect-toplevel makes *connection* unbound which breaks connected-p #106

Closed sheepduke closed 3 years ago

sheepduke commented 3 years ago

As the title says, 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.

disconnect-toplevel should set it to NIL instead of make it unbound.

sheepduke commented 3 years ago

Fixed via #107