Open GitMensch opened 1 year ago
currently OCDB_PGConnect gets the error message - but only set it into the error log:
OCDB_PGConnect
https://github.com/opensourcecobol/Open-COBOL-ESQL/blob/eec3a231f12225cd1341bb0c4e6f17d7b38845ab/dblib/ocpgsql.c#L44-L52
It should either store the message somewhere for later lookup or the error message should be get later again to set it into SQLERRM.
SQLERRM
The easiest way to reproduce: just specify a user that doesn't exist...
currently
OCDB_PGConnect
gets the error message - but only set it into the error log:https://github.com/opensourcecobol/Open-COBOL-ESQL/blob/eec3a231f12225cd1341bb0c4e6f17d7b38845ab/dblib/ocpgsql.c#L44-L52
It should either store the message somewhere for later lookup or the error message should be get later again to set it into
SQLERRM
.The easiest way to reproduce: just specify a user that doesn't exist...