projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add value check before updating :default slots.
[clsql.git]
/
sql
/
oodml.lisp
diff --git
a/sql/oodml.lisp
b/sql/oodml.lisp
index d47bbba447ec98914db2b883377c9c941debfdd9..e575d4df66ae7e58bc921badebe500629eb55a85 100644
(file)
--- 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)))
(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)))
;;this may just be a NOP.
(setf (slot-value obj 'view-database) database)))