Programming Guide



@dmengerrmsg

Contains an engine-specific error message

Description

@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. If a database engine can generate 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.

Example

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