r10110: Automated commit for Debian build of clsql upstream-version-3.0.11
[clsql.git] / sql / oodml.lisp
index 142e51631d1f246eb19f8abb1a449d24ec0bd247..9d8154f44b6a0c6ea72c8c013d825884351f92dd 100644 (file)
@@ -751,7 +751,8 @@ maximum of MAX-LEN instances updated in each query."
         (jc (gethash :join-class dbi)))
     (let ((jq (join-qualifier class object slot-def)))
       (when jq 
-        (select jc :where jq :flatp t :result-types nil)))))
+        (select jc :where jq :flatp t :result-types nil
+               :database (view-database object))))))
 
 (defun fault-join-slot (class object slot-def)
   (let* ((dbi (view-class-slot-db-info slot-def))
@@ -1148,7 +1149,8 @@ as elements of a list."
   (unless (record-caches database)
     (setf (record-caches database)
          (make-hash-table :test 'equal
-                          #+allegro :values #+allegro :weak
+                          #+allegro   :values    #+allegro :weak
+                          #+clisp     :weak      #+clisp :value
                            #+lispworks :weak-kind #+lispworks :value)))
   (setf (gethash (compute-records-cache-key targets qualifiers)
                 (record-caches database)) results)