X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=interfaces%2Fmysql%2Fmysql-loader.cl;h=7a2345ab2092f550c611ecab950f63a9c8add38b;hb=42a951e9f7152e7c145958f4dfed41d4e865c9fd;hp=13e504376afbdb9d17f7ef6198c8e0579ed50a8c;hpb=b3d8cca2287bb8e5224798a549cc9069abc7d968;p=clsql.git diff --git a/interfaces/mysql/mysql-loader.cl b/interfaces/mysql/mysql-loader.cl index 13e5043..7a2345a 100644 --- a/interfaces/mysql/mysql-loader.cl +++ b/interfaces/mysql/mysql-loader.cl @@ -7,7 +7,7 @@ ;;;; Programmers: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: mysql-loader.cl,v 1.13 2002/05/14 16:29:53 kevin Exp $ +;;;; $Id: mysql-loader.cl,v 1.21 2002/07/26 02:47:12 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -28,10 +28,12 @@ (defvar *clsql-mysql-library-filename* (uffi:find-foreign-library "clsql-mysql" - `(,(translate-logical-pathname - "CL-LIBRARY:clsql;interfaces;mysql;") - "/usr/share/common-lisp/source/clsql/interfaces/mysql/"))) - + `(,(directory-namestring + (translate-logical-pathname + "cl-library:clsql;interfaces;mysql;")) + "/usr/lib/clsql/") + :drive-letters '("C" "D" "E" "F" "G"))) + (defvar *mysql-library-filename* (cond ((probe-file "/opt/mysql/lib/mysql/libmysqlclient.so") @@ -63,10 +65,10 @@ set to the right path before compiling or loading the system.") (defvar *mysql-library-loaded* nil "T if foreign library was able to be loaded successfully") -(defmethod clsql-sys:database-type-library-loaded ((database-type (eql :mysql))) +(defmethod clsql-base-sys:database-type-library-loaded ((database-type (eql :mysql))) *mysql-library-loaded*) -(defmethod clsql-sys:database-type-load-foreign ((database-type (eql :mysql))) +(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :mysql))) (let ((mysql-path (uffi:find-foreign-library *mysql-library-candidate-names* *mysql-library-candidate-directories* @@ -90,5 +92,5 @@ set to the right path before compiling or loading the system.") mysql-path *clsql-mysql-library-filename*)))) -(clsql-sys:database-type-load-foreign :mysql) +(clsql-base-sys:database-type-load-foreign :mysql)