projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9112: fixes
[clsql.git]
/
db-odbc
/
odbc-sql.lisp
diff --git
a/db-odbc/odbc-sql.lisp
b/db-odbc/odbc-sql.lisp
index 43bcfbb7b64b43453997f414b1b7a522e61dd554..3bc5368594f287d733391ffd734c9a833b850b6c 100644
(file)
--- a/
db-odbc/odbc-sql.lisp
+++ b/
db-odbc/odbc-sql.lisp
@@
-271,7
+271,13
@@
(warn "Not implemented."))
(defmethod database-probe (connection-spec (type (eql :odbc)))
(warn "Not implemented."))
(defmethod database-probe (connection-spec (type (eql :odbc)))
- (warn "Not implemented."))
+ (when (find (car connection-spec) (database-list connection-spec type)
+ :test #'string-equal)
+ t))
+
+(defmethod database-list (connection-spec (type (eql :odbc)))
+ (declare (ignore connection-spec))
+ (odbc-dbi:list-all-data-sources))
#+ignore
(when (clsql-base-sys:database-type-library-loaded :odbc)
#+ignore
(when (clsql-base-sys:database-type-library-loaded :odbc)