From: | Michael Meskes <meskes(at)topsystem(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker) |
Subject: | preprocessor bug? |
Date: | 1998-02-12 08:15:58 |
Message-ID: | 199802120815.JAA25989@gauss.topsystem.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
IMO this is a rather serious bug:
{
exec sql begin declare section;
long i;
exec sql end declare section;
...
{
exec sql begin declare section;
short i;
exec sql end declare section;
...
}
...
some DB access into i;
The code produced by ecpg now lists i with size 2 bytes, i.e. it still
thinks i is a short.
I believe I have found a way to work around this and disregard variable
definitions as soon as they are no longer valid.
To my big surprise though I noticed that ORACLE's proc suffers from the same
bug. I hope it's okay with you that I don't care about compatibility and fix
this. :-)
Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10
From | Date | Subject | |
---|---|---|---|
Next Message | Bu Dongbo | 1998-02-12 08:30:56 | subscribe |
Previous Message | Michael Meskes | 1998-02-12 08:05:12 | Re: [HACKERS] cursor access doesn't work anmore |