***********************
** FILE NAME : database.cpp
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.7 $
+** VERSION NUMBER : $Revision: 1.8 $
**
** DESCRIPTION : Implementation of the gnucomo database classes
**
********************************
** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
** CREATION DATE : Sep 10, 2002
-** LAST UPDATE : Jan 31, 2003
+** LAST UPDATE : Jul 24, 2003
** MODIFICATIONS :
**************************************************************************/
/*****************************
$Log: database.cpp,v $
- Revision 1.7 2003-02-19 12:07:55 arjen
+ Revision 1.8 2003-07-31 15:44:02 arjen
+ Removed debug output.
+
+ Revision 1.7 2003/02/19 12:07:55 arjen
Use the SQL function currval() to obtain the identification number
of the most recently created notification.
*****************************/
-static const char *RCSID = "$Id: database.cpp,v 1.7 2003-02-19 12:07:55 arjen Exp $";
+static const char *RCSID = "$Id: database.cpp,v 1.8 2003-07-31 15:44:02 arjen Exp $";
#include <AXE/date.h>
#include "database.h"
-extern bool verbose; /* Defined in the main application */
-
/*=========================================================================
** NAME : gnucomo_database
** SYNOPSIS : gnucomo_database(gnucomo_config &c);
** VARS CHANGED :
** FUNCTIONS USED :
** SEE ALSO :
-** LAST MODIFIED : Sep 26, 2002
+** LAST MODIFIED : Jul 24, 2003
**=========================================================================
*/
{
cfg = c;
- if (verbose)
- {
- std::cout << "Database connection string = " << cfg->Database() << "\n";
- }
-
db = new PgDatabase(cfg->Database());
if (db->ConnectionBad())