f2s_last_error¶

Applies to: Oracle, MS SQL, MySql/MariaDB, PostgreSQL Drivers

Syntax

**There is no set_attribute.  This attribute is read only.**
get_attribute f2s_last_error of {DriverID} to {variable}

Parameter

Description

DriverID

The ID of the driver for which this applies. In most cases, you should use _f2s_ActiveDriverID.

variable

String variable to hold the error.

Description

This read only attribute is used to get the last error message used by the specified server when making DataFlex calls. This can be useful once a transaction has already been completed and any error messages need to be retrieved.

Example

get_attribute

Get_Attribute f2s_last_error of _f2s_ActiveDriverId to sLastError

ESQL Equivalents

f2s_esql_last_error

Replaces: Command SQL_ERROR_MESSAGE2