From b026a860c163f2a047471982a7077d7a0671d821 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Wed, 2 Mar 2016 16:20:55 +0100 Subject: [PATCH] Fix MS SQL fetch metadata function. It should return the fetched catalog rather than the count of objects, which is only used for statistics purposes. Fix #349. This problem once again shows that we lack proper testing environment for MS SQL source :/ --- src/sources/mssql/mssql.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sources/mssql/mssql.lisp b/src/sources/mssql/mssql.lisp index ceb2cc0..f0f5fde 100644 --- a/src/sources/mssql/mssql.lisp +++ b/src/sources/mssql/mssql.lisp @@ -83,5 +83,8 @@ ;; return how many objects we're going to deal with in total ;; for stats collection - (+ (count-tables catalog) (count-indexes catalog))))) + (+ (count-tables catalog) (count-indexes catalog)))) + + ;; be sure to return the catalog itself + catalog)