r2053: update library search
[clsql.git] / interfaces / mysql / mysql-loader.cl
index a0afeb5e91db00df9d074426488a75c9ce45e308..3c505cb9ab878696b7cb38a099e5b3c3d46629e8 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmers:   Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: mysql-loader.cl,v 1.12 2002/05/14 16:19:11 kevin Exp $
+;;;; $Id: mysql-loader.cl,v 1.14 2002/05/15 18:05:51 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -28,8 +28,9 @@
 (defvar *clsql-mysql-library-filename* 
   (uffi:find-foreign-library
    "clsql-mysql"
-   `(,(translate-logical-pathname 
-       "CL-LIBRARY:clsql;interfaces;mysql;")
+   `(,(directory-namestring
+       ((translate-logical-pathname 
+        "CL-LIBRARY:clsql;interfaces;mysql;"))
      "/usr/share/common-lisp/source/clsql/interfaces/mysql/")))
 
 (defvar *mysql-library-filename*
@@ -91,7 +92,4 @@ set to the right path before compiling or loading the system.")
 
 
 (clsql-sys:database-type-load-foreign :mysql)
-(when (clsql-sys:database-type-library-loaded :mysql)
-  (clsql-sys:initialize-database-type :database-type :mysql)
-  (setq clsql:*default-database-type* :mysql)
-  (pushnew :mysql cl:*features*))
+