X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-ooddl.lisp;h=0339179ba145f977e4f817d51acab6af273f80bb;hb=5148be446aee32ec705beac3fbba35f499df4fd4;hp=3bbaa2d1d7f44a568660753c82d95aeb958139eb;hpb=68290f0275c3193cd0413fb247a1395486747338;p=clsql.git diff --git a/tests/test-ooddl.lisp b/tests/test-ooddl.lisp index 3bbaa2d..0339179 100644 --- a/tests/test-ooddl.lisp +++ b/tests/test-ooddl.lisp @@ -48,9 +48,8 @@ t t t) (deftest :ooddl/join/1 - (mapcar #'(lambda (e) - (slot-value e 'companyid)) - (company-employees company1)) + (mapcar #'(lambda (e) (slot-value e 'ecompanyid)) + (company-employees company1)) (1 1 1 1 1 1 1 1 1 1)) (deftest :ooddl/join/2 @@ -62,7 +61,7 @@ "Lenin") (deftest :ooddl/time/1 - (let* ((now (clsql-base:get-time))) + (let* ((now (clsql:get-time))) (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket)) (clsql:execute-command "set datestyle to 'iso'")) (clsql:update-records [employee] :av-pairs `((birthday ,now)) @@ -71,11 +70,11 @@ :flatp t)))) (values (slot-value dbobj 'last-name) - (clsql-base:time= (slot-value dbobj 'birthday) now)))) + (clsql:time= (slot-value dbobj 'birthday) now)))) "Lenin" t) (deftest :ooddl/time/2 - (let* ((now (clsql-base:get-time)) + (let* ((now (clsql:get-time)) (fail-index -1)) (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket)) (clsql:execute-command "set datestyle to 'iso'")) @@ -84,9 +83,9 @@ :where [= [emplid] 1]) (let ((dbobj (car (clsql:select 'employee :where [= [birthday] now] :flatp t)))) - (unless (clsql-base:time= (slot-value dbobj 'birthday) now) + (unless (clsql:time= (slot-value dbobj 'birthday) now) (setf fail-index x)) - (setf now (clsql-base:roll now :day (* 10 x))))) + (setf now (clsql:roll now :day (* 10 x))))) fail-index) -1)