changeset 11550:a7e6bec0e9bf octave-forge

Retrieve error message when failing to connect.
author i7tiol
date Sat, 16 Mar 2013 16:41:45 +0000
parents 93e04d0baec5
children 7c0dae992c31
files main/database/DESCRIPTION main/database/src/configure.ac main/database/src/pq_connection.cc
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/database/DESCRIPTION	Sat Mar 16 09:48:44 2013 +0000
+++ b/main/database/DESCRIPTION	Sat Mar 16 16:41:45 2013 +0000
@@ -1,6 +1,6 @@
 Name: database
 Version: 2.1.0
-Date: 2013-03-02
+Date: 2013-03-16
 Author: Olaf Till <i7tiol@t-online.de>
 Maintainer: Olaf Till <i7tiol@t-online.de>
 Title: Database.
--- a/main/database/src/configure.ac	Sat Mar 16 09:48:44 2013 +0000
+++ b/main/database/src/configure.ac	Sat Mar 16 16:41:45 2013 +0000
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.67])
-AC_INIT([database], [2.0.0], [i7tiol@t-online.de])
+AC_INIT([database], [2.1.0], [i7tiol@t-online.de])
 AC_CONFIG_SRCDIR([__pq_connect__.cc])
 
 # Checks for programs.
--- a/main/database/src/pq_connection.cc	Sat Mar 16 09:48:44 2013 +0000
+++ b/main/database/src/pq_connection.cc	Sat Mar 16 16:41:45 2013 +0000
@@ -45,6 +45,8 @@
     {
       if (conn)
         {
+          error ("%s", PQerrorMessage (conn));
+
           PGconn *t_conn = conn;
 
           conn = NULL;