<span class="gmail_quote">2006/10/13, Timo Sirainen &lt;<a href="mailto:tss@iki.fi">tss@iki.fi</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Fri, 2006-10-13 at 22:42 +0200, Chaos Engine wrote:<br>&gt; On my Gentoo box until today I<br>&gt; had dovecot-1.0_rc7 and used following entry in /etc/dovecot/dovecot-sql.conf<br>&gt;<br>&gt; password_query = call Authorize('%u', '%n', '%d')
<br>&gt;<br>&gt; Simply put dovecot is calling my mysql stored routine which handles<br>&gt; authorization. Until today, when I updated dovecot to&nbsp;&nbsp;dovecot-1.0_rc8<br>&gt; it worked flawlessly. With this version executing stored proc dies
<br>&gt; with:<br>&gt;<br>&gt; Password query failed: PROCEDURE mailsql.Authorize can't return a<br>&gt; result set in the given context<br>&gt;<br>&gt; Replacing stored proc call with select .... statement does the thing,
<br>&gt; but it's stored procedures are ... generally better to do things on DB<br>&gt; imvho :-)<br>&gt; Downgrading to dovetot-1.0_rc7 fixes the problem immediately. Of<br>&gt; course /etc/dovecot/dovecot.conf remains the same in either case.
<br>&gt; Is this a bug or change made on purpose?<br><br>Are you sure the difference is between the changes in Dovecot and not in<br>some gentoo compile/link flags? Such as a different mysql library.</blockquote><div><br>
I'm&nbsp;pretty&nbsp;sure.&nbsp;I&nbsp;haven't&nbsp;changed&nbsp;my&nbsp;previous&nbsp;compile&nbsp;flags&nbsp;(Gentoo&nbsp;USE&nbsp;flags). To tell the truth I haven't found any word of using stored procedures in mysql authorization; but it worked. I haven't touched MySQL or its libs, only upgraded dovecot.
</div><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
I don't think I've changed anything related to that between rc7 and rc8.<br><br></blockquote><br>-- <br>Chaos greets U