***********************
** 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
**
/*****************************
$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
*****************************/
-static const char *RCSID = "$Id: database.cpp,v 1.4 2003-01-18 08:52:32 arjen Exp $";
+static const char *RCSID = "$Id: database.cpp,v 1.5 2003-01-20 07:31:42 arjen Exp $";
#include <AXE/date.h>
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 + "'";
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";
insertion += notif_id + "', '" + now.format("%Y-%m-%d %T") + "', 'new', '";
insertion += remark + "')";
- std::cout << insertion << "\n";
Query(insertion);
}
else