Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E8C631336971 for ; Thu, 4 Nov 2010 19:44:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 47641-04 for ; Thu, 4 Nov 2010 22:44:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.qbik.com (smtp.qbik.com [210.55.214.35]) by mail.postgresql.org (Postfix) with ESMTP id 34DCE1337B79 for ; Thu, 4 Nov 2010 19:44:28 -0300 (ADT) Received: From [210.55.214.39] (unverified [210.55.214.39]) by SMTP Server [210.55.214.35] (WinGate SMTP Receiver v7.0.0 (Build 3060)) with SMTP id <0017659023@smtp.qbik.com>; Fri, 5 Nov 2010 11:44:26 +1300 Message-ID: <4CD3374A.1040003@qbik.com> Date: Fri, 05 Nov 2010 11:44:26 +1300 From: Adrien de Croy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: Access violation (0xC0000005) in PSQLODBC35W.DLL when calling SQLDescribeColW References: <6B48F83ECA0ABA4F9E360E8E0A1CDFFC35E4AE0E@HALLEY.maeil.pt> <4CD09C7F.9070403@tpf.co.jp> <4CD0D584.30908@qbik.com> <4CD11F17.5050207@tpf.co.jp> <4CD24723.5020203@qbik.com> In-Reply-To: <4CD24723.5020203@qbik.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/16 X-Sequence-Number: 10501 Hi all I'm getting an access violation from within SQLDescribeColW when I'm getting the result scheme from a query. the query is pretty simple: SELECT count(*) as folder_files, sum(file_size) as folder_size, sum(disk_use) as folder_size_disk, folder_id from cache_index where volume_id = %u group by folder_id SQLExecute returns OK SQLNumResultCols returns 4 columns as expected the SQLDescribeColW blows up when calling with column #2, corresponding to sum(file_size). file_size is a bigint field. There are only 5 records, and the sum of the file_size is under 1MB. So shouldn't be any bigint overflow or something. I used to use a double precision and it worked fine, then I figured out how to store into a bigint field and now this happens every time I do this query if there are any records in the table. If there are no records it's fine. Regards Adrien de Croy