r10325: * sql/oodml.lisp: Use explicit database in fault-join-target-slot
[clsql.git] / sql / oodml.lisp
index b1a5d6adc117ef8481b06a697d6dd8ee4fb89cbe..d76712c2d6e7726c65b91675fb5ab65fc29a71c9 100644 (file)
                                :attribute (gethash :home-key tdbi) 
                                :table jc-view-table))
                          :where jq
-                         :result-types :auto)))
+                         :result-types :auto
+                         :database (view-database object))))
           (mapcar #'(lambda (i)
                       (let* ((instance (car i))
                              (jcc (make-instance jc :view-database (view-database instance))))
                   (list instance jcc)))
             (select (sql-expression :attribute (gethash :foreign-key tdbi) :table jc-view-table)
                     :from (sql-expression :table jc-view-table)
-                    :where jq)))))))
+                    :where jq
+                    :database (view-database object))))))))
 
 
 ;;; Remote Joins