Re: Propsed pgagent patch: pgAgent reports failure upon success - For Review - Mailing list pgadmin-hackers

From Martin French
Subject Re: Propsed pgagent patch: pgAgent reports failure upon success - For Review
Date
Msg-id OF227E8F84.F97E9A4D-ON80257A3E.00420A24-80257A3E.0042207C@LocalDomain
Whole thread Raw
In response to Re: Propsed pgagent patch: pgAgent reports failure upon success - For Review  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
<p><font face="sans-serif" size="2">Hi</font><br /><br /><tt><font size="2">Dave Page <dpage@pgadmin.org> wrote
on17/07/2012 12:04:40:<br /><br />> From: Dave Page <dpage@pgadmin.org></font></tt><br /><tt><font
size="2">>To: Martin French <Martin.French@romaxtech.com>, </font></tt><br /><tt><font size="2">> Cc:
pgadmin-hackers@postgresql.org,pgadmin-hackers-owner@postgresql.org</font></tt><br /><tt><font size="2">> Date:
17/07/201212:04</font></tt><br /><tt><font size="2">> Subject: Re: [pgadmin-hackers] Propsed pgagent patch: pgAgent
<br/>> reports failure upon success - For Review</font></tt><br /><tt><font size="2">> <br />> Great, that got
it:-).<br />> <br />> Thanks Martin - patch applied and push to the main repo. It'll be<br />> included in the
nextrelease.<br />> <br />> On Tue, Jul 17, 2012 at 10:52 AM, Martin French<br />>
<Martin.French@romaxtech.com>wrote:<br />> > Hi Dave.<br />> ><br />> > Dave Page
<dpage@pgadmin.org>wrote on 17/07/2012 10:45:28:<br />> ><br />> >> From: Dave Page
<dpage@pgadmin.org><br/>> ><br />> ><br />> >> To: Martin French
<Martin.French@romaxtech.com>,<br/>> >> Cc: pgadmin-hackers@postgresql.org,
pgadmin-hackers-owner@postgresql.org<br/>> >> Date: 17/07/2012 10:45<br />> ><br />> >>
Subject:Re: [pgadmin-hackers] Propsed pgagent patch: pgAgent<br />> >> reports failure upon success - For
Review<br/>> >><br />> >> Hi<br />> >><br />> >> This still seems to be malformed -
I'mgetting:<br />> >><br />> >> raptor:pgagent dpage$ patch -p1 < ~/Downloads/pgagent.patch<br
/>>>> (Stripping trailing CRs from patch.)<br />> >> patching file connection.cpp<br />> >>
patch:**** malformed patch at line 6: if (result)<br />> >><br />> >> Looking at the patch itself, it
lookslike the indentation is missing<br />> >> from the first hunk for connection.cpp:<br />> >><br
/>>>> diff --git a/connection.cpp b/connection.cpp<br />> >> index 5e10078..6103c00 100644<br />>
>>--- a/connection.cpp<br />> >> +++ b/connection.cpp<br />> >> @@ -336,6 +336,7 @@
DBresult::DBresult(DBconn*conn, const wxString<br />> >> &query)<br />> >> if (result)<br />>
>>{<br />> >> int rc = PQresultStatus(result);<br />> >> + conn->SetLastResult(rc);<br
/>>>> if (rc == PGRES_TUPLES_OK)<br />> >> maxRows = PQntuples(result);<br />> >> else if
(rc!= PGRES_COMMAND_OK)<br />> >><br />> >> If I look at the source file, it's more like this (he
says,hoping<br />> >> Gmail doesn't mangle it):<br />> >><br />> >>         if (result)<br
/>>>>         {<br />> >>                 int rc = PQresultStatus(result);<br />> >>        
       if (rc == PGRES_TUPLES_OK)<br />> >>                         maxRows = PQntuples(result);<br />>
>>                else if (rc != PGRES_COMMAND_OK)<br />> >><br />> >> How are you generating
thepatch? Has your unmodified version been<br />> >> inadvertently modified?<br />> >><br />>
>>On Tue, Jul 17, 2012 at 7:22 AM, Martin French<br />> >> <Martin.French@romaxtech.com> wrote:<br
/>>>> > (See attached file: pgAgent.patch)<br />> >> ><br />> >> > Hi<br />>
>>><br />> >> > pgadmin-hackers-owner@postgresql.org wrote on 16/07/2012 15:52:45:<br />>
>>><br />> >> >> From: Dave Page <dpage@pgadmin.org><br />> >> >> To:
MartinFrench <Martin.French@romaxtech.com>,<br />> >> >> Cc: pgadmin-hackers@postgresql.org<br
/>>>> >> Date: 16/07/2012 18:55<br />> >> >> Subject: Re: [pgadmin-hackers] Propsed
pgagentpatch: pgAgent<br />> >> >> reports failure upon success - For Review<br />> >> >>
Sentby: pgadmin-hackers-owner@postgresql.org<br />> >> ><br />> >> ><br />> >>
>><br/>> >> >> Hi<br />> >> >><br />> >> >> Can you resend the patch
asan attachment please? It's getting<br />> >> >> corrupted inline in email.<br />> >>
>><br/>> >> >> Thanks.<br />> >> >><br />> >> >> On Mon, Jul 16,
2012at 2:46 PM, Martin French<br />> >> >> <Martin.French@romaxtech.com> wrote:<br />> >>
>>> Hi,<br />> >> >> ><br />> >> >> > I have attempted a patch for an
issuewhere pgAgent incorrectly<br />> >> >> > reports<br />> >> >> > failure on a
plainSQL job. Please see below.<br />> >> >> ><br />> >> >> > Feedback/comments
welcome.<br/>> >> >> ><br />> >> >> > Thanks<br />> >> >> ><br
/>>>> >> > Martin French.<br />> >> >> ><br />> >> >> ><br />>
>>><br />> >> >><br />> >> >><br />> >> ><br />> >> >
Patchattached. Apologies for that. :)<br />> >> ><br />> >> > Cheers<br />> >> ><br
/>>>> > Martin French<br />> >><br />> >><br />> >><br />> >><br />>
><br/>> > The patch was generated with git diff. I've just picked up the file off the<br />> > box with
WinSCPdirectly and emailed it...<br />> ><br />> > I've FTP'd to my local machine this time...<br />>
><br/>> > cheers<br />> ><br />> > (See attached file: pgagent.patch)<br />> <br />> <br
/>GreatStuff. Thanks for the assistance Dave. </font></tt><br /><br /><tt><font size="2">Cheers</font></tt><font
face="sans-serif">=============================================Romax Technology Limited Rutherford House Nottingham
Science& Technology Park Nottingham, NG7 2PZ England Telephone numbers: +44 (0)115 951 88 00 (main) For other
officelocations see: http://www.romaxtech.com/Contact ================================= =============== E-mail:
info@romaxtech.comWebsite: www.romaxtech.com ================================= ================ Confidentiality
StatementThis transmission is for the addressee only and contains information that is confidential and privileged.
Unlessyou are the named addressee, or authorised to receive it on behalf of the addressee you may not copy or use it,
ordisclose it to anyone else. If you have received this transmission in error please delete from your system and
contactthe sender. Thank you for your cooperation. =================================================</font> 

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Propsed pgagent patch: pgAgent reports failure upon success - For Review
Next
From: Dave Page
Date:
Subject: Re: SSH Tunneling implementation