Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 56887133798E for ; Tue, 9 Nov 2010 23:49:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83104-01 for ; Wed, 10 Nov 2010 03:49:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 01F621336B42 for ; Tue, 9 Nov 2010 23:49:27 -0400 (AST) Received: (qmail 10970 invoked by uid 512); 10 Nov 2010 03:49:25 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 10 Nov 2010 03:49:25 -0000 Message-ID: <4CDA163C.5040005@tpf.co.jp> Date: Wed, 10 Nov 2010 12:49:16 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Adrien de Croy CC: "pgsql-odbc@postgresql.org" Subject: Re: 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> <4CD3374A.1040003@qbik.com> <4CD3C5F1.80606@tpf.co.jp> <4CD9F80E.50203@qbik.com> In-Reply-To: <4CD9F80E.50203@qbik.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.157 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DNS_FROM_RFC_BOGUSMX=1.668, RCVD_ILLEGAL_IP=3.399, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: *** X-Archive-Number: 201011/21 X-Sequence-Number: 10506 (2010/11/10 10:40), Adrien de Croy wrote: > > Hi Hiroshi > > this build has another problem > > ::SQLTables no longer returns the table name at all (empty string). Oops, I seem to have introduced another bug so as to fix [ODBC] Errors using psqlodbc . I would fix it and report soon. regards, Hiroshi Inoue > So I can't test any further, since I require this for all my startup > code, type retrieval etc (for a column of a table def). > > Regards > > Adrien > > > On 5/11/2010 9:53 p.m., Hiroshi Inoue wrote: >> Hi、 >> >> (2010/11/05 7:44), Adrien de Croy wrote: >>> >>> Hi all >>> >>> I'm getting an access violation from within SQLDescribeColW when I'm >>> getting the result scheme from a query. >> >> Hmm I may have introduced a bug in 9.0.0200. >> >> Could you please try the drivers on testing for 9.0.0201 at >> http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/ >> ? >> >> regards, >> Hiroshi Inoue >> >>> 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