web/modules/rhn/RHN/DB/Scheduler.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a10f88192e6564a594087ca1fc182779e0da9612
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Fri Jul 20 09:54:35 2012 +0200
Forcing parameter to be string
ERROR: inconsistent types deduced for parameter $1
LINE 4: ($1, 'delta-' || $1)
^
DETAIL: text versus numeric
diff --git a/web/modules/rhn/RHN/DB/Scheduler.pm b/web/modules/rhn/RHN/DB/Scheduler.pm
index 10fbed1..916c901 100644
--- a/web/modules/rhn/RHN/DB/Scheduler.pm
+++ b/web/modules/rhn/RHN/DB/Scheduler.pm
@@ -1250,7 +1250,7 @@ EOS
INSERT INTO rhnPackageDelta
(id, label)
VALUES
- (:id, 'delta-' || :id)
+ (cast(:id as numeric), 'delta-' || :id)
EOS
$sth->execute_h(id => $delta_id);
Show replies by date