![]() | Programming Guide | ![]() |
Contains an engine-specific error message
@dmengerrmsgis set to""before executing aDBMScommand. 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,@dmengerrmsgis an array, and each error message is written to a different occurrence.If
@dmengerrcodeis0, this variable contains no message. It will also be0if 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
![]()
![]()
![]()
![]()