r9186: add attribute caching, improve inititialize-database-type
[clsql.git] / base / database.lisp
index cc26d7119c517449b603ed41b654adeec3594017..f3c72b65a2ead44ab85a414296ee959cbad6d2cb 100644 (file)
@@ -85,6 +85,9 @@ to the new connection, otherwise *default-database is not changed. If
 pool is t the connection will be taken from the general pool, if pool
 is a conn-pool object the connection will be taken from this pool."
 
+  (unless database-type
+    (error "Must specify a database-type."))
+  
   (when (stringp connection-spec)
     (setq connection-spec (string-to-list-connection-spec connection-spec)))