prepared statement, obscuring earlier errors. Fixed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1208078 13f79535-47bb-0310-9956-
ffa450edef68
ap_dbd_t *rec)
{
apr_hash_index_t *hi;
- apr_status_t rv = APR_SUCCESS;
rec->prepared = apr_hash_make(pool);
stmt = NULL;
if (apr_dbd_prepare(rec->driver, pool, rec->handle, query,
label, &stmt)) {
- rv = APR_EGENERAL;
+ return APR_EGENERAL;
}
else {
apr_hash_set(rec->prepared, label, APR_HASH_KEY_STRING, stmt);
}
}
- return rv;
+ return APR_SUCCESS;
}
static apr_status_t dbd_init_sql_init(apr_pool_t *pool, dbd_cfg_t *cfg,