mod_dbd/apr_dbd and "Commands out of sync"

2008-10-03 Thread Andrej van der Zee
Hi, I am using mod_dbd for the first time and get into trouble when I execute the following in sequence: 1) do an INSERT 2) do a SELECT 3) do another INSERT On 3) I get the error "Commands out of sync; you can't run this command now". This is what MySQL sais: "If you get Commands out of sync; y

Wrapping an existing hook (2.0)

2008-10-03 Thread Houser, Rick
I'm relatively new to module development, but I have a need to wrap a function in a proprietary module (no source) registered via a check_user_id hook in a proprietary module (mod_auth_saf). Basically, I need to detect an expired password condition. I've already tried to use the normal pre/post h

Re: Wrapping an existing hook (2.0)

2008-10-03 Thread Sorin Manolache
Normally, the check_user_id of the proprietary module should return DECLINE if the AuthType does not match its auth type. Let us assume that the auth type of the proprietary module is "saf". The auth type is set with the AuthType directive. So, what you could do is to change the auth type in the c

Re: mod_dbd/apr_dbd and "Commands out of sync"

2008-10-03 Thread Andrej van der Zee
Hi, When I execute two SELECT statements after each other I do not get the "Comamnd out of sync" error anymore if I iterate through all the rows in the apr_dbd_results_t, but I do get all emty values and column names for the 2nd SELECT. > > Can you please post your code ? > Below the code. The s

Re: Wrapping an existing hook (2.0)

2008-10-03 Thread Eric Covener
On Fri, Oct 3, 2008 at 11:11 AM, Houser, Rick <[EMAIL PROTECTED]> wrote: > I'm relatively new to module development, but I have a need to wrap a > function in a proprietary module (no source) registered via a > check_user_id hook in a proprietary module (mod_auth_saf). Basically, I > need to detec