Programming Guide |
Contains an engine-specific error message
@dmengerrmsg
is set to""
before executing aDBMS
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
is0
, this variable contains no message. It will also be0
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
else
msg emsg @dmretmsg "%N" @dmengerrmsg
return 1