Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 32778 invoked from network); 11 Mar 2011 00:33:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 00:33:18 -0000 Received: (qmail 68726 invoked by uid 500); 11 Mar 2011 00:33:18 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 68650 invoked by uid 500); 11 Mar 2011 00:33:17 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 68642 invoked by uid 99); 11 Mar 2011 00:33:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 00:33:17 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 74.208.4.195 is neither permitted nor denied by domain of SRS0=MlRd=WE=bellatlantic.net=donovant@srs.perfora.net) Received: from [74.208.4.195] (HELO mout.perfora.net) (74.208.4.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 00:33:08 +0000 Received: from [127.0.0.1] (pool-70-22-214-96.bos.east.verizon.net [70.22.214.96]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0LfCrI-1QHkgu3Zoe-00p7OU; Thu, 10 Mar 2011 19:32:46 -0500 Message-ID: <4D796DA7.1020906@bellatlantic.net> Date: Thu, 10 Mar 2011 19:32:39 -0500 From: Tom Donovan Reply-To: Tom.Donovan@acm.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: dev@apr.apache.org Subject: Re: svn commit: r1078507 - /apr/apr/trunk/dbd/apr_dbd_odbc.c References: <20110306163446.EC605238899C@eris.apache.org> <4D77CCCA.6020601@rowe-clan.net> In-Reply-To: <4D77CCCA.6020601@rowe-clan.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 110310-1, 03/10/2011), Outbound message X-Antivirus-Status: Clean X-Provags-ID: V02:K0:yYqC1GJ9n1aaUJZOB7yUPIYMpYC31hE/2BMgdwRL6z+ mibfXRuR0mmY2MviC67Ets926O78cy8raXGp63L0QtRgZZUxSK PDmXPGVq5/Mz6UsMb332dY5IrWNbxcusnMtfGr7okdrf/SpZ/Q o481beb5KscMor9Jmsk+x4ATEPqbcAPD1Nc8cGdP0V5yvfLr3u pINcR/YLPTAaPhacKQLaJLk/E5ANlOeUzoYZWC+fvI= X-Virus-Checked: Checked by ClamAV on apache.org On 3/9/2011 1:54 PM, William A. Rowe Jr. wrote: > On 3/9/2011 12:40 PM, Jeff Trawick wrote: >> >> The original code was a bit disturbing because of the indentation: >> >> /* mark all the columns as needing SQLGetData unless they are bound */ >> for (c = 0; c< res->ncols; c++) { >> if (res->colstate[c] != COL_BOUND) >> res->colstate[c] = COL_AVAIL; >> /* some drivers do not null-term zero-len CHAR data */ >> if (res->colptrs[c] ) >> * (char *) res->colptrs[c] = 0; >> } >> >> From the indentation, it looks like the second 'if' is part of a block >> starting with res->colstate[c] = COL_AVAIL. > > Someone perhaps had a bit too much Python on their brain? :) > >> The behavior stayed the same across the reformat, and I can't confirm >> that the original code was broken, but still... > > Jumping back across whitespace changes, this originates at Tom's original > checkin... Tom, can you verify if the behavior is correct and fix the > indentation, or fix the code if the scope isn't correct? > Done. Change 1080403. The behavior was correct, the indenting wasn't. Sorry about the disturbing indentation. -tom-