Re: ESQL-C - Errormessages
Posted in 1994
Rodger Anderson — — source: Informix-list mailing list archive (1991-1998)
In article <2fu81i$psk@maicgn.softwareengineering>, Achim Reiners <ar@mai.de> wrote: > The specified table (%s) is not in the database > >My problem is how to resolve the %s with the name of the missing table. Take a look at the sqlca structure, specifically the sqlerrm member. It will contain the information you need. Do something like this: rgetmsg(sqlcode, mtmp, sizeof(mtmp)); sprintf(msg, mtmp, sqlca.sqlerrm); ^^^^^^^^^^^^^ where mtmp and msg are appropriate sized character arrays. I remember seeing this documented somewhere, but I can't find it now. The old ESQL/C manual that I have says that sqlerrm `is not used at present.' -- Rodger Anderson