Load libsybdb even in --dry-run mode, fix #295.

This commit is contained in:
Dimitri Fontaine 2015-09-16 20:39:42 +02:00
parent 78c6bf097a
commit f6aa8210b9

View File

@ -142,6 +142,10 @@
;;; LOAD DATABASE FROM mssql://
(defun lisp-code-for-mssql-dry-run (ms-db-conn pg-db-conn)
`(lambda ()
;; now is the time to load the CFFI lib we need (freetds)
(log-message :log "Loading the FreeTDS shared librairy (sybdb)")
(cffi:load-foreign-library 'mssql::sybdb)
(log-message :log "DRY RUN, only checking connections.")
(check-connection ,ms-db-conn)
(check-connection ,pg-db-conn)))