2 (in-package :cl-postgres-tests
)
4 (def-suite :cl-postgres-simple-date
)
5 (in-suite :cl-postgres-simple-date
)
7 (test row-timestamp-without-time-zone-binary
9 (with-binary-row-values
10 (is (time= (caaar (exec-query connection
"select row('2010-04-05 14:42:21.500'::timestamp without time zone)"
12 (encode-timestamp 2010 4 5 14 42 21 500))))))
14 (test row-timestamp-with-time-zone-binary
16 (with-binary-row-values
17 (is (time= (caaar (exec-query connection
"select row('2010-04-05 14:42:21.500'::timestamp with time zone)"
19 (encode-timestamp 2010 4 5 14 42 21 500))))))
21 (test row-timestamp-without-time-zone-array-binary
23 (with-binary-row-values
24 (is (time= (elt (caaar (exec-query connection
"select row(ARRAY['2010-04-05 14:42:21.500'::timestamp without time zone])"
26 (encode-timestamp 2010 4 5 14 42 21 500))))))
30 (with-binary-row-values
31 (is (time= (caaar (exec-query connection
"select row('05:00'::time)"
33 (encode-time-of-day 5 0))))))
35 (test row-timestamp-binary
37 (with-binary-row-values
38 (is (time= (caaar (exec-query connection
"select row('2010-04-05 14:42:21.500'::timestamp)"
40 (encode-timestamp 2010 4 5 14 42 21 500))))))