As I posted before, when I upgraded to the latest version of weblocks
I started getting this error when trying to connect to my clsql
database:
A database error occurred: NIL / NIL
NIL is not a database.
[Condition of type CLSQL-SYS:SQL-DATABASE-ERROR]
I determined what the problem was and I have a very basic fix, so I
figured I'd post it here. The old version of the clsql open-store
code was:
(defmethod open-store ((store-type (eql :clsql)) &rest args)
(setf *default-caching* nil)
(setf *default-store* (apply #'connect args)))
and the new one is:
(defmethod open-store ((store-type (eql :clsql)) &rest args)
(setf *default-caching* nil)
(setf *default-store* (apply #'make-instance 'fluid-database
:connection-spec args)))
Though the new code correctly sets the *default-store* variable for me
and returns, it doesn't seem to also set *default-database*, and some
other clsql stuff I was using relies on that being set. I added an
extra setf to my function, giving me:
(defmethod open-store ((store-type (eql :clsql)) &rest args)
(setf *default-caching* nil)
(setf *default-store* (apply #'make-instance 'fluid-database
:connection-spec args))
(setf *default-database* *default-store*))
and that fixed my problem for me. Hope this helps in case anyone else
has the same issue. (I don't understand the weblocks code very well,
so let me know if I did anything terribly wrong :-).)
Divia
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---