:initarg :height)
(married :db-kind :base :accessor married :type boolean :nulls-ok t
:initarg :married)
- (birthday :nulls-ok t :type wall-time :initarg :birthday)
+ (birthday :nulls-ok t :type clsql-base:wall-time :initarg :birthday)
(hobby :db-kind :virtual :initarg :hobby :initform nil)))
(def-view-class employee (person)
:make-default t
:if-exists :old))
+(defmacro with-ignore-errors (&rest forms)
+ `(progn
+ ,@(mapcar
+ (lambda (x) (list 'ignore-errors x))
+ forms)))
+
(defun test-initialise-database ()
;; Delete the instance records
- (ignore-errors
+ (with-ignore-errors
(usql:delete-instance-records company1)
(usql:delete-instance-records employee1)
(usql:delete-instance-records employee2)