On 12/25/2016 08:45 PM, Wietse Venema wrote:
> John Fawcett:
>>> I'll diff your new patch against the previous version and see what
>>> changes you made.
>> if you break out of the loop without reading all the result data you
>> will get the following mysql error on the next query.
>>
>> Commands out of sync; you can't run this command now
> Noted. Meanwhile I have separated 1) the code that handles the
> result set with the lookup result, from 2) the code that handles
> all other result sets.
>
> Without interleaving 1) and 2), the code becomes easier to follow.
> It's uploaded as postfix-3.2-20161225-nonprod; please check it out.
>
>       Wietse
I confirm it behaves as expected on positive and negative cases. The
code is indeed much easier to follow.

John

Reply via email to