X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Fdatabase.lisp;fp=base%2Fdatabase.lisp;h=f3c72b65a2ead44ab85a414296ee959cbad6d2cb;hb=f716bb1161cf9e89a96945c4a444244f9d303691;hp=cc26d7119c517449b603ed41b654adeec3594017;hpb=8b5250e14e3280bdc4641c3b35a8dc68ca4dbde7;p=clsql.git diff --git a/base/database.lisp b/base/database.lisp index cc26d71..f3c72b6 100644 --- a/base/database.lisp +++ b/base/database.lisp @@ -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)))