From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at> |
Cc: | Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: ECPG: include sqlca |
Date: | 2002-01-09 15:45:44 |
Message-ID: | 200201091545.g09Fjix02294@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Zeugswetter Andreas SB SD wrote:
> Michael wrote:
> > I just got a bug report that originated in the programmer not knowing he had
> > to include sqlca to use whenever. When I told him he asked me why it isn't
> > included automatically. Now that's a tricky question. :-)
> >
> > I do know that Oracle also asks the programmer to include
> > sqlca, but how
> > about other DBs? Infromix? Sybase? DB2? Does anyone know that?
>
> Informix includes
> #include <sqlhdr.h>
> #include <sqliapi.h>
> automatically.
>
> sqlhdr.h then includes sqlca, sqlda, locator.h and most of the other headers.
Also, we are allowed to be better than other databases. I recommend
auto-include, perhaps with a message to the user.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-01-09 16:04:01 | pg_upgrade |
Previous Message | Tom Lane | 2002-01-09 15:28:24 | Re: Time as keyword |