Re: Pro*C, errorcode include file

From: Dan Boyle <boyle_at_cs.nyu.edu>
Date: 1996/02/04
Message-ID: <31155164.1EDF_at_cs.nyu.edu>#1/1


If you use ORACA you can get error codes from Oracle:

	sqlca.sqlerrm.sqlerrmc[sqlca.sqlerrm.sqlerrml] = '\0';
	oraca.orastxt.orastxtc[oraca.orastxt.orastxtl] = '\0';
	oraca.orasfnm.orasfnmc[oraca.orasfnm.orasfnml] = '\0';
	printf("\n%s\n", sqlca.sqlerrm.sqlerrmc);
	printf("in \"%s...\"\n", oraca.orastxt.orastxtc);
	printf("on line %d of %s.\n\n", oraca.oraslnr,
Hope this helps.
-Dan Boyle

> Hi all,
>
> We are starting a new project, which includes developing Pro*C programs.
>
> One of the first things that struke me was a missing include file, that contains
> Oracle error codes and error messages.
>
> If you have knowledge about such a file or you have a file like that, I would like to
> hear from you.
>
> Thanks in advance
>
> Peter Villadsen
Received on Sun Feb 04 1996 - 00:00:00 CET

Original text of this message