Skip site navigation (1) Skip section navigation (2)

raise notice causes driver to crash

From: Alex Balan <alex(dot)balan(at)carainformation(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: raise notice causes driver to crash
Date: 2010-09-28 18:32:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
  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,
              faulting module psqlodbc30a.dll, version, fault 
address 0x00045431.

Notes:       Version 7.4.3 of psqlodbc driver driver does not expose 
this issue

Calling procedure from VB

Const strConnect = "DRIVER={PostgreSQL 
conn.ConnectionString = strConnect
Set RCS = conn.Execute("SELECT * FROM 

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;

Hope this helps track down the issue(s) if any...
Alex Balan

Attachment: mylog_3260.log
Description: text/plain (27.8 KB)


pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2010-09-29 00:04:26
Subject: Re: raise notice causes driver to crash
Previous:From: Allen KrauseDate: 2010-09-27 19:27:41
Subject: unable to connect to postgresql datasource

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group