X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foodml.lisp;h=e575d4df66ae7e58bc921badebe500629eb55a85;hp=d47bbba447ec98914db2b883377c9c941debfdd9;hb=refs%2Fheads%2Fauto-increment;hpb=2259814df8868d2dcc653cd02126996284247f6b diff --git a/sql/oodml.lisp b/sql/oodml.lisp index d47bbba..e575d4d 100644 --- a/sql/oodml.lisp +++ b/sql/oodml.lisp @@ -257,7 +257,9 @@ (when (and (slot-exists-p slot 'db-constraints) (listp (view-class-slot-db-constraints slot)) (member :default (view-class-slot-db-constraints slot))) - (update-slot-from-record obj (slot-definition-name slot)))) + (unless (and (slot-boundp obj (slot-definition-name slot)) + (slot-value obj (slot-definition-name slot))) + (update-slot-from-record obj (slot-definition-name slot))))) ;;this may just be a NOP. (setf (slot-value obj 'view-database) database)))