Menu

#48 Adding error position to Oracle error text.

open
nobody
None
2022-11-16
2022-11-16
Mark Ford
No

It would be useful if the Oracle error message contained the "Position: ##" text the way that the PostgreSQL driver does. The code to get this info is:

    FPlainDriver.OCIAttrGet(FStmtHandle, OCI_HTYPE_STMT, @ErrorPos,
      nil, OCI_ATTR_PARSE_ERROR_OFFSET, FOCIError);

I think this would require a change in the arguments for TZOracleConnection.HandleErrorOrWarning to pass in the statement handle (I'm not sure if "Sender" could be used for that somehow.)

Discussion


Log in to post a comment.