***********************
** FILE NAME : database.h
** SYSTEM NAME :
-** VERSION NUMBER : $Revision: 1.5 $
+** VERSION NUMBER : $Revision: 1.6 $
**
** DESCRIPTION : Classes to provide an abstract layer on the Gnucomo
** database.
/*****************************
$Log: database.h,v $
- Revision 1.5 2003-02-05 09:33:17 arjen
+ Revision 1.6 2003-02-19 09:54:47 arjen
+ Print the query on cerr, along with the error message when
+ the query results in an error.
+
+ Revision 1.5 2003/02/05 09:33:17 arjen
gnucomo_database::new_notification() retruns the id number of the
newly created notification record.
*****************************/
-/* static const char *RCSID = "$Id: database.h,v 1.5 2003-02-05 09:33:17 arjen Exp $"; */
+/* static const char *RCSID = "$Id: database.h,v 1.6 2003-02-19 09:54:47 arjen Exp $"; */
#include <libpq++/pgdatabase.h>
#include "gnucomo_config.h"
else
{
std::cerr << "Database query error: " << db->ErrorMessage() << "\n";
+ std::cerr << "Query: " << qry << "\n";
return -1;
}
}