java/code/src/com/redhat/rhn/domain/monitoring/MonitoringFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4dc19730824ded78827a0b9ae39bba25c6bee453
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Jan 27 17:04:56 2012 +0100
784013 - casting the probe id to string since that is what the substr expression in
the DELETE returns.
If we ever get to refactor that time_series table and use proper integer
column, this will need to be reverted.
diff --git a/java/code/src/com/redhat/rhn/domain/monitoring/MonitoringFactory.java
b/java/code/src/com/redhat/rhn/domain/monitoring/MonitoringFactory.java
index df61608..146c0cf 100644
--- a/java/code/src/com/redhat/rhn/domain/monitoring/MonitoringFactory.java
+++ b/java/code/src/com/redhat/rhn/domain/monitoring/MonitoringFactory.java
@@ -73,7 +73,7 @@ public class MonitoringFactory extends HibernateFactory {
WriteMode m = ModeFactory.getWriteMode("Monitoring_queries",
"delete_time_series_for_probe");
Map params = new HashMap();
- params.put("probe_id", probeIn.getId());
+ params.put("probe_id", probeIn.getId().toString());
m.executeUpdate(params);
singleton.removeObject(probeIn);
Show replies by date