Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EDC101337B56 for ; Tue, 28 Sep 2010 21:04:39 -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 11770-08 for ; Wed, 29 Sep 2010 00:04:33 +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 B39011337B47 for ; Tue, 28 Sep 2010 21:04:31 -0300 (ADT) Received: (qmail 30634 invoked by uid 512); 29 Sep 2010 00:04:28 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 29 Sep 2010 00:04:28 -0000 Message-ID: <4CA2828A.6010302@tpf.co.jp> Date: Wed, 29 Sep 2010 09:04:26 +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: Alex Balan CC: pgsql-odbc@postgresql.org Subject: Re: raise notice causes driver to crash References: <4CA234B7.8020303@carainformation.com> In-Reply-To: <4CA234B7.8020303@carainformation.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.557 tagged_above=-10 required=5 tests=BAYES_05=-0.5, DNS_FROM_RFC_BOGUSMX=1.668, RCVD_ILLEGAL_IP=3.399, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: **** X-Archive-Number: 201009/33 X-Sequence-Number: 10443 Hi Alex, (2010/09/29 3:32), Alex Balan wrote: > raise notice - displaying string having length over 4096 characters > causes crash in ODBC ANSI driver but seems to be ok on 7.4.3 driver. > > Driver: psqlODBC ANSI ver. 8.4.2 > Database: PostgreSQL 8.1.5 on i686-redhat-linux-gnu > Error: Faulting application vb6.exe, version 6.0.97.82, > faulting module psqlodbc30a.dll, version 8.4.2.0, fault address 0x00045431. Maybe this bug was already fixed. Could you please try the drivers on testing for 8.4.0202 at http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/ ? regards, Hiroshi Inoue > Notes: Version 7.4.3 of psqlodbc driver driver does not expose this issue > > Calling procedure from VB > > Const strConnect = "DRIVER={PostgreSQL > ANSI};DATABASE=test-medsql-alder;SERVER=192.168.100.77;PORT=5432; > UID=postgres;PWD=secret;ByteaAsLongVarBinary=1;MaxLongVarcharSize=-4;" > conn.ConnectionString = strConnect > conn.Open > Set RCS = conn.Execute("SELECT * FROM > select_patient_all_visit_data(77.00,'')") > > > Called pl/pgsql function > > > --sqltext is dynamically built here with a LENGTH OVER 4096 characters > > --next line if enabled causes crash > --********************************* > --raise notice '%',sqltext; > --********************************* > > FOR ret_row IN EXECUTE sqltext LOOP > return next ret_row; > END LOOP; > return; > > > Hope this helps track down the issue(s) if any... > Alex Balan