X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foodml.lisp;fp=sql%2Foodml.lisp;h=0ddaabad5d5444eda23851945f018cf7d9a3bd67;hp=b6f4b417185961e6c3eefac98bf346bbcf13eee9;hb=4a30248613bca9864145306a00bb801cf5348017;hpb=a4bb1686f874b4ce4e6cac8adf75c0ecc114d683 diff --git a/sql/oodml.lisp b/sql/oodml.lisp index b6f4b41..0ddaaba 100644 --- a/sql/oodml.lisp +++ b/sql/oodml.lisp @@ -251,6 +251,12 @@ (slot-definition s)) when (sstoredp sd) collect sd)) + ;; handle slots with defaults + (dolist (slot slots) + (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)))) ;;this may just be a NOP. (setf (slot-value obj 'view-database) database)))