X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-ooddl.lisp;h=d2b73f48278208f4feafab93c0697ebb9ae5ae1d;hb=e4778554b1dc8a130f9b189d760730ce5d76ced4;hp=0339179ba145f977e4f817d51acab6af273f80bb;hpb=8a8ee2d7d791b7a3efaed06420802a925d16fca3;p=clsql.git diff --git a/tests/test-ooddl.lisp b/tests/test-ooddl.lisp index 0339179..d2b73f4 100644 --- a/tests/test-ooddl.lisp +++ b/tests/test-ooddl.lisp @@ -89,6 +89,18 @@ fail-index) -1) +(deftest :ooddl/time/3 + (progn + (when (member *test-database-underlying-type* '(:postgresql :postgresql-socket)) + (clsql:execute-command "set datestyle to 'iso'")) + (let ((dbobj (car (clsql:select 'employee :where [= [emplid] 10] + :flatp t)))) + (list + (eql *test-start-utime* (slot-value dbobj 'bd-utime)) + (clsql:time= (slot-value dbobj 'birthday) + (clsql:utime->time (slot-value dbobj 'bd-utime)))))) + (t t)) + )) #.(clsql:restore-sql-reader-syntax-state)