Re: crashed odbc in CVS

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: crashed odbc in CVS
Date: 2000-06-08 16:55:37
Message-ID: Pine.LNX.3.96.1000608184928.26589D-200000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Thu, 8 Jun 2000, Bruce Momjian wrote:

> Oops. I thought that code included postgres.h. I have added a define
> to psqlodbc.h. I added:
>
> #ifdef WIN32
> #define PG_BINARY O_BINARY
> #define PG_BINARY_R "rb"
> #define PG_BINARY_W "wb"
> #else
> #define PG_BINARY 0
> #define PG_BINARY_R "r"
> #define PG_BINARY_W "w"
> #endif
>
> Can you give it a try?

Yes, you are right --- bug is in psqlodbc.h, but it is to in 'ggps.c'.
In this file is not included "psqlodbc.h".

The patch is attached.

Right?

Karel

Attachment Content-Type Size
a text/plain 770 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-06-08 17:02:49 Re: [HACKERS] INSTALL/install.sgml file
Previous Message Ed Loehr 2000-06-08 16:42:28 interactive oddity for psql -c "cmd; cmd;"