Re: ECPG: include sqlca
| От | Bruce Momjian |
|---|---|
| Тема | Re: ECPG: include sqlca |
| Дата | |
| Msg-id | 200201091545.g09Fjix02294@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: ECPG: include sqlca ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>) |
| Ответы |
Re: ECPG: include sqlca
|
| Список | 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@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: