Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 41144 invoked from network); 14 Oct 2008 18:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2008 18:09:14 -0000 Received: (qmail 5956 invoked by uid 500); 14 Oct 2008 18:09:14 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 5942 invoked by uid 500); 14 Oct 2008 18:09:14 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 5931 invoked by uid 99); 14 Oct 2008 18:09:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 11:09:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.248.150.22] (HELO smtp.ez.no) (194.248.150.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2008 18:08:07 +0000 Received: from ezjr.local (cxr69-5-82-228-193-7.fbx.proxad.net [82.228.193.7]) by smtp.ez.no (Postfix) with ESMTP id 0C028AB54C for ; Tue, 14 Oct 2008 20:00:10 +0200 (CEST) Message-ID: <48F4E026.6050703@ez.no> Date: Tue, 14 Oct 2008 20:08:38 +0200 From: =?UTF-8?B?SsOpcsO0bWUgUmVuYXJk?= User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: [apr_dbd] apr_dbd_datum_get example References: <48D0B9F7.1000205@ez.no> <48D94479.9050208@ez.no> <48D981E1.1010706@buanzo.com.ar> <48D9CBA0.7000105@ez.no> In-Reply-To: <48D9CBA0.7000105@ez.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org 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 :)