If updating an instance from the database and we found the row in the
[clsql.git] / sql / oodml.lisp
index 5cf86230dfdab18cc4018ee9793ea4007bc6e7be..710e5e8e090c45548e4a41d6948ccd35c7c7536c 100644 (file)
                                                      :result-types nil
                                                      :database vd))))
              (when res
+              (setf (slot-value instance 'view-database) vd)
                (get-slot-values-from-view instance (mapcar #'car sels) (car res))))
             (pres)
             (t nil)))))
            (res (select att-ref :from  view-table :where view-qual
                                                   :result-types nil)))
       (when res
+       (setf (slot-value instance 'view-database) vd)
         (get-slot-values-from-view instance (list slot-def) (car res))))))
 
 (defmethod update-slot-with-null ((object standard-db-object)