If updating an instance from the database and we found the row in the
authorNathan Bird <nathan@acceleration.net>
Thu, 15 Jan 2009 16:19:09 +0000 (11:19 -0500)
committerNathan Bird <nathan@acceleration.net>
Tue, 2 Mar 2010 23:16:45 +0000 (18:16 -0500)
database then set the view-database slot. This indicates that this
instance now reflects an object in that DB. Underneath
get-slot-values-from-view (the next function) we depend on the slot
being present.

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)