[Spacewalk-list] Bugs in Spacewalk/PostgreSQL

Jan Pazdziora jpazdziora at redhat.com
Mon Nov 21 10:09:41 UTC 2011


On Fri, Nov 04, 2011 at 04:41:02PM +0000, Wojtak, Greg wrote:
> I've attached a patch for /usr/share/perl5/RHN/DB/Action.pm.

Thank you.

A few comments:

The patch seems to use just CR (no LF) as line ends which prevents it
to be applied. You might want to preserve the newline characters.

The patch was a reverse patch.

In general, you might want to use git format-patch to get it created
for you.

You seem to have introduced quite a lot of whitespace changes which
add unnecessary noise and can hide actual issues with the patch. For
example, the first chunk does

 SELECT A.id
-  FROM rhnAction A,
-       rhnServerAction SA
- WHERE SA.server_id = :server_id
+ FROM rhnAction A,
+      rhnServerAction SA
+  WHERE SA.server_id = :server_id
    AND SA.status = 0
-   AND SA.action_id = A.id
    AND A.prerequisite IS NULL
 ORDER BY A.id;

which removes the

	AND SA.action_id = A.id

join -- that does not sound correct.

Would you like to give the patch another try to fix these issues?

Thank you!

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list