X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foodml.lisp;h=85730dccf7d7f2eedf870992d567bf6a704a2fc4;hp=2e0f6a64182237f0cadc43eccb323e29922fbaf8;hb=706c29aa55b25e5b7c7f90460589a4702b1390e7;hpb=f965db085f8c538eed152128887df3da640a1562 diff --git a/sql/oodml.lisp b/sql/oodml.lisp index 2e0f6a6..85730dc 100644 --- a/sql/oodml.lisp +++ b/sql/oodml.lisp @@ -120,7 +120,7 @@ nil) ((typep slot-reader 'string) (format nil slot-reader value)) - ((typep slot-reader 'function) + ((typep slot-reader '(or symbol function)) (apply slot-reader (list value))) (t (error "Slot reader is of an unusual type."))))) @@ -130,7 +130,7 @@ (dbtype (specified-type slotdef))) (typecase dbwriter (string (format nil dbwriter val)) - ((or symbol function) (apply dbwriter (list val))) + ((and (or symbol function) (not null)) (apply dbwriter (list val))) (t (database-output-sql-as-type (typecase dbtype