From: Kevin M. Rosenberg Date: Fri, 29 Mar 2002 08:34:44 +0000 (+0000) Subject: r1700: *** empty log message *** X-Git-Tag: v3.8.6~1185 X-Git-Url: http://git.kpe.io/?p=clsql.git;a=commitdiff_plain;h=be6778983c41d53e759eb6d84412dd43fd77ddb3 r1700: *** empty log message *** --- diff --git a/sql/db-interface.cl b/sql/db-interface.cl index 80b9ba0..499bf8c 100644 --- a/sql/db-interface.cl +++ b/sql/db-interface.cl @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: db-interface.cl,v 1.3 2002/03/29 08:23:38 kevin Exp $ +;;;; $Id: db-interface.cl,v 1.4 2002/03/29 08:34:44 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -23,10 +23,7 @@ (defgeneric database-type-load-foreign (database-type) (:documentation - "The internal generic implementation of reload-database-types.") - (:method :after (database-type) - (when (database-type-library-loaded database-type) - (pushnew database-type *loaded-database-types*)))) + "The internal generic implementation of reload-database-types.")) (defgeneric database-type-library-loaded (database-type) (:documentation diff --git a/sql/sql.cl b/sql/sql.cl index 92d0e44..f0d5bee 100644 --- a/sql/sql.cl +++ b/sql/sql.cl @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: sql.cl,v 1.10 2002/03/29 08:23:38 kevin Exp $ +;;;; $Id: sql.cl,v 1.11 2002/03/29 08:34:44 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -35,6 +35,10 @@ (defvar *loaded-database-types* nil "Contains a list of database types which have been defined/loaded.") +(defmethod database-type-load-foreign :after (database-type) + (when (database-type-library-loaded database-type) + (pushnew database-type *loaded-database-types*))) + (defun reload-database-types () "Reloads any foreign code for the loaded database types after a dump." (mapc #'database-type-load-foreign *loaded-database-types*))