If updating an instance from the database and we found the row in the database then...
[clsql.git] / sql / oodml.lisp
index 30f6b0dfd82ea20aaab3526dcca657a8740f0a08..3e7ec9af023c31fc1c5d0e4cdd538c4ab2e8cfa5 100644 (file)
                                            :result-types nil
                                            :database database)))))
     (when res
+      (setf (slot-value instance 'view-database) database)
       (get-slot-values-from-view instance (mapcar #'car sels) (car res)))))
 
 (defmethod update-slot-from-record ((instance standard-db-object)