Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 19770 invoked from network); 23 Mar 2011 19:19:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2011 19:19:51 -0000 Received: (qmail 82293 invoked by uid 500); 23 Mar 2011 19:19:51 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 82250 invoked by uid 500); 23 Mar 2011 19:19:51 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 82243 invoked by uid 99); 23 Mar 2011 19:19:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2011 19:19:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2011 19:19:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B8FA5238890D; Wed, 23 Mar 2011 19:19:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1084681 - /apr/apr/trunk/dbd/apr_dbd_oracle.c Date: Wed, 23 Mar 2011 19:19:25 -0000 To: commits@apr.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110323191925.B8FA5238890D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trawick Date: Wed Mar 23 19:19:25 2011 New Revision: 1084681 URL: http://svn.apache.org/viewvc?rev=1084681&view=rev Log: small simplification to the fix in r1065258: just use the Oracle datatype for the type field (http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/ociaahan.htm#sthref5358) Modified: apr/apr/trunk/dbd/apr_dbd_oracle.c Modified: apr/apr/trunk/dbd/apr_dbd_oracle.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/dbd/apr_dbd_oracle.c?rev=1084681&r1=1084680&r2=1084681&view=diff ============================================================================== --- apr/apr/trunk/dbd/apr_dbd_oracle.c (original) +++ apr/apr/trunk/dbd/apr_dbd_oracle.c Wed Mar 23 19:19:25 2011 @@ -178,7 +178,7 @@ struct apr_dbd_prepared_t { define_arg *out; apr_dbd_t *handle; apr_pool_t *pool; - int type; + ub2 type; }; /* AFAICT from the docs, the OCIEnv thingey can be used async @@ -860,7 +860,6 @@ static int dbd_oracle_prepare(apr_pool_t int ret = 0; int i; apr_dbd_prepared_t *stmt ; - apr_int16_t type; if (*statement == NULL) { *statement = apr_pcalloc(pool, sizeof(apr_dbd_prepared_t)); @@ -896,12 +895,11 @@ static int dbd_oracle_prepare(apr_pool_t apr_pool_cleanup_null); /* Perl gets statement type here */ - sql->status = OCIAttrGet(stmt->stmt, OCI_HTYPE_STMT, &type, 0, + sql->status = OCIAttrGet(stmt->stmt, OCI_HTYPE_STMT, &stmt->type, 0, OCI_ATTR_STMT_TYPE, sql->err); if (sql->status != OCI_SUCCESS) { return 1; } - stmt->type = type; /* Perl sets PREFETCH_MEMORY here, but the docs say there's a working default */ #if 0