Programming Guide


Contains an engine-specific error message


@dmengerrmsg is set to "" before executing a DBMS command. If the database engine returns an error message after attempting to execute the command, Panther writes the message to this variable. In cases where the database engine generates multiple error messages for one command, @dmengerrmsg is an array, and each error message is written to a different occurrence.

If @dmengerrcode is 0, this variable contains no message. It will also be 0 if the engine does not supply error messages. Refer to the Database Drivers for more information about the availability of this variable.


proc dbi_errhandle (stmt, engine, flag)
if @dmengerrcode == 0
msg emsg @dmretmsg
msg emsg @dmretmsg "%N" @dmengerrmsg
return 1