result))
-#+(or cmu scl sbcl openmcl)
(defmethod validate-superclass ((class standard-db-class)
(superclass standard-class))
t)
(let ((all-slots (mapcar #'frob-slot slots)))
(setq all-slots (remove-if #'not-db-col all-slots))
(setq all-slots (stable-sort all-slots #'string< :key #'car))
- (setf (object-definition class) all-slots
- (key-slots class) (remove-if-not (lambda (slot)
- (eql (slot-value slot 'db-kind)
- :key))
- (class-slots class))))))
-
-#+allegro
+ (setf (object-definition class) all-slots))
+ #-(or allegro openmcl)
+ (setf (key-slots class) (remove-if-not (lambda (slot)
+ (eql (slot-value slot 'db-kind)
+ :key))
+ (class-slots class)))))
+
+#+(or allegro openmcl)
(defmethod finalize-inheritance :after ((class standard-db-class))
(setf (key-slots class) (remove-if-not (lambda (slot)
(eql (slot-value slot 'db-kind)
(view-class-slot-db-info sd)))))
;; all other slots
(t
- (change-class slotd 'view-class-effective-slot-definition)
+ (change-class slotd 'view-class-effective-slot-definition
+ #+allegro :name
+ #+allegro (slot-definition-name sd))
(setf (slot-value slotd 'column)
(column-name-from-arg
(sql-escape (slot-definition-name sd))))