Hello,
I would like to know if there is a way to catch database error message and put it into one jmp variable.
Example for an Oracle DB, if I try to insert one value already existing on ID primary key :
/* JSL */
sql = "INSERT INTO MY.TABLE (ID, DATA) VALUES ('A',150)";
OpenDatabase (dsnDB, sql);
/* LOG display */
[Oracle][ODBC][Ora]ORA-00001: unique constraint (MY.TABLE) violated
ORA-06512: at line 1
I would like to have in a jsl variable this sting : "[Oracle][ODBC][Ora]ORA-00001: unique constraint (MY.TABLE) violated".
I didn't find any solutions for the moment.
Thanks.