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.

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to