projects
/
gnucomo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d24903e
)
Removed debug output.
author
arjen
<arjen>
Thu, 31 Jul 2003 15:44:02 +0000
(15:44 +0000)
committer
arjen
<arjen>
Thu, 31 Jul 2003 15:44:02 +0000
(15:44 +0000)
src/lib/database.cpp
patch
|
blob
|
history
diff --git
a/src/lib/database.cpp
b/src/lib/database.cpp
index
22f2883
..
79ceee2
100644
(file)
--- a/
src/lib/database.cpp
+++ b/
src/lib/database.cpp
@@
-8,7
+8,7
@@
***********************
** FILE NAME : database.cpp
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
***********************
** 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
**
**
** DESCRIPTION : Implementation of the gnucomo database classes
**
@@
-20,13
+20,16
@@
********************************
** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
** CREATION DATE : Sep 10, 2002
********************************
** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
** CREATION DATE : Sep 10, 2002
-** LAST UPDATE : J
an 31
, 2003
+** LAST UPDATE : J
ul 24
, 2003
** MODIFICATIONS :
**************************************************************************/
/*****************************
$Log: database.cpp,v $
** 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.
Use the SQL function currval() to obtain the identification number
of the most recently created notification.
@@
-51,14
+54,12
@@
*****************************/
*****************************/
-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"
#include <AXE/date.h>
#include "database.h"
-extern bool verbose; /* Defined in the main application */
-
/*=========================================================================
** NAME : gnucomo_database
** SYNOPSIS : gnucomo_database(gnucomo_config &c);
/*=========================================================================
** NAME : gnucomo_database
** SYNOPSIS : gnucomo_database(gnucomo_config &c);
@@
-72,7
+73,7
@@
extern bool verbose; /* Defined in the main application */
** VARS CHANGED :
** FUNCTIONS USED :
** SEE ALSO :
** VARS CHANGED :
** FUNCTIONS USED :
** SEE ALSO :
-** LAST MODIFIED :
Sep 26, 2002
+** LAST MODIFIED :
Jul 24, 2003
**=========================================================================
*/
**=========================================================================
*/
@@
-80,11
+81,6
@@
gnucomo_database::gnucomo_database(gnucomo_config *c)
{
cfg = c;
{
cfg = c;
- if (verbose)
- {
- std::cout << "Database connection string = " << cfg->Database() << "\n";
- }
-
db = new PgDatabase(cfg->Database());
if (db->ConnectionBad())
db = new PgDatabase(cfg->Database());
if (db->ConnectionBad())