From dbac3435cc16a398498db3ebad40603ae4e303ac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 3 Jan 2017 14:40:47 +0000 Subject: Add function for retrieving server version number --- libpqpp/pq-connection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpqpp/pq-connection.cpp') diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index 590435e..21cbb5d 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -186,3 +186,9 @@ PQ::Connection::insertId() return id; } +int +PQ::Connection::serverVersion() const +{ + return PQserverVersion(conn); +} + -- cgit v1.2.3