Skip to content

Commit

Permalink
Merge pull request #2 from snmsts/postgres-disconnect
Browse files Browse the repository at this point in the history
add disconnect function for postgresql
  • Loading branch information
fukamachi committed May 18, 2012
2 parents 74f434c + 0fc6cea commit 6667fe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dbd/postgres.lisp
Expand Up @@ -64,6 +64,9 @@
(defmethod fetch ((query <dbd-postgres-query>))
(pop (slot-value query '%result)))

(defmethod disconnect ((conn <dbd-postgres-connection>))
(close-database (connection-handle conn)))

(defmethod begin-transaction ((conn <dbd-postgres-connection>))
(do-sql conn "BEGIN"))

Expand Down

0 comments on commit 6667fe4

Please sign in to comment.