httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Renard ...@ez.no>
Subject Re: [apr_dbd] apr_dbd_datum_get example
Date Tue, 14 Oct 2008 18:08:38 GMT
I actually fixed my issue with the following code :

for (rv = apr_dbd_get_row(dbd->driver, r->pool, res, &row, -1);
         rv != -1;
         rv = apr_dbd_get_row(dbd->driver, r->pool, res, &row, -1)) {

     file_data = apr_brigade_create(r->pool, r->connection->bucket_alloc);

     if(apr_dbd_datum_get(dbd->driver, row, 3, APR_DBD_TYPE_BLOB, file_data) != APR_SUCCESS)
     {
         ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "Unable to fetch file data");
         apr_brigade_destroy(file_data);
         return DECLINED;
     }

     apr_brigade_destroy(file_data);
}

I am not sure it is correct though.


Thanks in advance for any help.

-- 
Jérôme :)

Mime
View raw message