I am using odbc to retrieve data.
Code looks like :
OdbcConnection odbcConnection; str sql; int res; ... Statement statement; try { sql = 'bla bla'; new SqlStatementExecutePermission(sql).assert(); //Prepare the sql statement. statement = odbcConnection.createStatement(); res = statement.executeUpdate(sql); } catch { info(CLRInterop::getLastException()); res = -1; } ...
I have wrong sql, but AX through an exception, without reaching the catch clause.
How can I catch wrong sql in odbc?
Thanks :)
*This post is locked for comments