httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject Problems with mod_dbd and prepared statements
Date Fri, 04 Apr 2008 23:56:31 GMT
Hi all,

I am trying to debug a problem with mod_dbd, and the creation of 
prepared statements.

If I run the following three steps, the first adds the prepared 
statement, the second obtains a handle to the dbd functions, and the 
third statement retrieves the prepared statement.

For some reason, the third statement returns NULL, which doesn't make 
sense, as the prepared statement has just been added.

Are there any special requirements necessary before mod_dbd will 
successfully register a prepared statement?

     session_dbd_prepare_fn(r->server, query, label);

     dbd = session_dbd_acquire_fn(r);

     statement = apr_hash_get(dbd->prepared, label, APR_HASH_KEY_STRING);

Nothing is logged to the error log to suggest there is a problem.


View raw message