SYNOPSIS (OPTIONAL)

string db_error( int handle)

DESCRIPTION

Return a string describing the error which occured during the last database transaction. If the last database transaction was successful, this call returns 0.

The function is available only if the driver is compiled with mySQL support. In that case, __MYSQL__ is defined.

The efun triggers a privilege violation (“mysql”, “db_error”).

HISTORY

  • introduced (3.2.9)
  • changed (3.2.11) – added the privilege violation.