Skip to content

Commit

Permalink
Test for unprepare-query
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrauss authored and marijnh committed Jun 17, 2015
1 parent e0cb2a5 commit 3709e2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cl-postgres/tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
(is (equal (exec-prepared connection "test" '(42 nil "foo") 'list-row-reader)
'((42 nil "foo"))))))

(test unprepare-statement
(with-test-connection
(prepare-query connection "test" "select true")
(unprepare-query connection "test")
(prepare-query connection "test" "select false")
(is (equal (exec-prepared connection "test" '() 'list-row-reader)
'((false))))))

(test prepared-array-param
(with-test-connection
(prepare-query connection "test" "select ($1::int[])[2]")
Expand Down

0 comments on commit 3709e2f

Please sign in to comment.