projects
/
gnucomo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a88d24
)
Removed some debug output.
author
arjen
<arjen>
Mon, 20 Jan 2003 07:31:42 +0000
(07:31 +0000)
committer
arjen
<arjen>
Mon, 20 Jan 2003 07:31:42 +0000
(07:31 +0000)
src/lib/database.cpp
patch
|
blob
|
history
diff --git
a/src/lib/database.cpp
b/src/lib/database.cpp
index
9a20d6d
..
ce66552
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.
4
$
+** VERSION NUMBER : $Revision: 1.
5
$
**
** DESCRIPTION : Implementation of the gnucomo database classes
**
**
** DESCRIPTION : Implementation of the gnucomo database classes
**
@@
-26,7
+26,10
@@
/*****************************
$Log: database.cpp,v $
/*****************************
$Log: database.cpp,v $
- Revision 1.4 2003-01-18 08:52:32 arjen
+ Revision 1.5 2003-01-20 07:31:42 arjen
+ Removed some debug output.
+
+ Revision 1.4 2003/01/18 08:52:32 arjen
New C++ function: gnucomo_database::new_notification()
Revision 1.3 2002/11/09 08:04:27 arjen
New C++ function: gnucomo_database::new_notification()
Revision 1.3 2002/11/09 08:04:27 arjen
@@
-40,7
+43,7
@@
*****************************/
*****************************/
-static const char *RCSID = "$Id: database.cpp,v 1.
4 2003-01-18 08:52:3
2 arjen Exp $";
+static const char *RCSID = "$Id: database.cpp,v 1.
5 2003-01-20 07:31:4
2 arjen Exp $";
#include <AXE/date.h>
#include <AXE/date.h>
@@
-128,7
+131,7
@@
void gnucomo_database::new_notification(String objectid, String issue, String re
String issueid("");
String issueid("");
- std::cout << "Creating notification for " << issue << "\n";
+ std::cout << "Creating notification for " << issue << "
: " << remark << "
\n";
qry = "select type_of_issueid, suggested_priority from type_of_issue where name='";
qry += issue + "'";
qry = "select type_of_issueid, suggested_priority from type_of_issue where name='";
qry += issue + "'";
@@
-141,8
+144,6
@@
void gnucomo_database::new_notification(String objectid, String issue, String re
insertion += issueid + "', '" + now.format("%Y-%m-%d %T") + "', 'new', '";
insertion += Field(0, "suggested_priority") + "')";
insertion += issueid + "', '" + now.format("%Y-%m-%d %T") + "', 'new', '";
insertion += Field(0, "suggested_priority") + "')";
- std::cout << insertion << "\n";
-
qry = "select notificationid from notification where objectid='";
qry += objectid + "' and type_of_issueid = '";
qry += issueid + "' order by notificationid";
qry = "select notificationid from notification where objectid='";
qry += objectid + "' and type_of_issueid = '";
qry += issueid + "' order by notificationid";
@@
-159,7
+160,6
@@
void gnucomo_database::new_notification(String objectid, String issue, String re
insertion += notif_id + "', '" + now.format("%Y-%m-%d %T") + "', 'new', '";
insertion += remark + "')";
insertion += notif_id + "', '" + now.format("%Y-%m-%d %T") + "', 'new', '";
insertion += remark + "')";
- std::cout << insertion << "\n";
Query(insertion);
}
else
Query(insertion);
}
else