Quoting John Fawcett <j...@voipsupport.it>:
I can propose a code submission to add stored procedure support (based
on the proof of concept code from 2008), but the biggest part will be
doing the testing and non regression testing not the actual coding.

I believe the best approach to adding stored procedure support is to
iterate over multiple result sets and if there are exactly two and the
last one is the status result of the stored procedure and it is
successful then allow the lookup against the first result set. In all
other cases there should be an error for multiple result sets. In the
context of Postfix don't think it is useful to have more than one result
set generated by multiple queries or more than two result sets
(including the status one) from a stored procedure.

John

That is exactly what I had on my mind.

The specific error message would enable admins to exactly see where the trouble originates. Also consuming all results still allows subsequent lookups to succeed normally.

I would of course volunteer to "test" the change per se but I'm afraid my knowledge of postfix's inner workings converges to zero, rendering my testing unrepresentative at last :/
Although the subset of postfix interfacing with mysql is quite small.

Joel

Reply via email to