r1700: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 29 Mar 2002 08:34:44 +0000 (08:34 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 29 Mar 2002 08:34:44 +0000 (08:34 +0000)
sql/db-interface.cl
sql/sql.cl

index 80b9ba0c811c3fd291cbfe053d7d6560c7cc91dc..499bf8cfbd830d23c1883b09f054c6929c46d204 100644 (file)
@@ -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
 
 (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
index 92d0e4452aeb50185bc974003eb3b0456797f404..f0d5bee86d16865e8efefa2b9cc9e808266c649f 100644 (file)
@@ -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
 (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*))