projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r2052: *** empty log message ***
[clsql.git]
/
interfaces
/
mysql
/
mysql-loader.cl
diff --git
a/interfaces/mysql/mysql-loader.cl
b/interfaces/mysql/mysql-loader.cl
index 408beba1d3f89b755499c3259f51dc417666d84d..13e504376afbdb9d17f7ef6198c8e0579ed50a8c 100644
(file)
--- a/
interfaces/mysql/mysql-loader.cl
+++ b/
interfaces/mysql/mysql-loader.cl
@@
-7,7
+7,7
@@
;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: mysql-loader.cl,v 1.
9 2002/05/14 16:10:55
kevin Exp $
+;;;; $Id: mysql-loader.cl,v 1.
13 2002/05/14 16:29:53
kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-29,8
+29,8
@@
(uffi:find-foreign-library
"clsql-mysql"
`(,(translate-logical-pathname
(uffi:find-foreign-library
"clsql-mysql"
`(,(translate-logical-pathname
- "CL-LIBRARY:clsql;interfaces;
clsql-uffi
;")
- "/usr/share/common-lisp/source/clsql/interfaces/
clsql-uffi
/")))
+ "CL-LIBRARY:clsql;interfaces;
mysql
;")
+ "/usr/share/common-lisp/source/clsql/interfaces/
mysql
/")))
(defvar *mysql-library-filename*
(cond
(defvar *mysql-library-filename*
(cond
@@
-76,8
+76,7
@@
set to the right path before compiling or loading the system.")
(uffi:load-foreign-library
(uffi:find-foreign-library '("libz" "zlib")
'("/usr/lib/" "/usr/local/" "/lib/")))
(uffi:load-foreign-library
(uffi:find-foreign-library '("libz" "zlib")
'("/usr/lib/" "/usr/local/" "/lib/")))
- (when
- (and
+ (if (and
(uffi:load-foreign-library mysql-path
:module "mysql"
:supporting-libraries
(uffi:load-foreign-library mysql-path
:module "mysql"
:supporting-libraries
@@
-86,11
+85,10
@@
set to the right path before compiling or loading the system.")
:module "clsql-mysql"
:supporting-libraries
(append *mysql-supporting-libraries*)))
:module "clsql-mysql"
:supporting-libraries
(append *mysql-supporting-libraries*)))
- (setq *mysql-library-loaded* t))))
+ (setq *mysql-library-loaded* t)
+ (warn "Unable to load MySQL client library ~A or CLSQL-MySQL library ~A"
+ mysql-path *clsql-mysql-library-filename*))))
(clsql-sys:database-type-load-foreign :mysql)
(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*))
+