File: auto-handle.cxx

package info (click to toggle)
libodb-pgsql 2.4.0-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, forky, sid, stretch, trixie
  • size: 2,332 kB
  • ctags: 1,878
  • sloc: sh: 11,329; cpp: 2,832; makefile: 20
file content (25 lines) | stat: -rw-r--r-- 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// file      : odb/pgsql/auto-handle.cxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#include <libpq-fe.h>

#include <odb/pgsql/auto-handle.hxx>

namespace odb
{
  namespace pgsql
  {
    void handle_traits<PGconn>::
    release (PGconn* h)
    {
      PQfinish (h);
    }

    void handle_traits<PGresult>::
    release (PGresult* h)
    {
      PQclear (h);
    }
  }
}