MySQL_ErrorString

4D - Documentation   Français   English   German   4D For MySQL, Command Theme List   4D For MySQL, Command Alphabetical List   Back   Previous   Next

version 2004


MySQL_ErrorString (connID) String

ParameterTypeDescription
connIDLongintConnection ID returned by MySQL_Connect
Function resultStringError message string

Description

The MySQL_ErrorString command returns the MySQL error string for the last call to MySQL_Select/MySQL_Execute. It returns an empty string if the call executed successfully.

connID is a Longint returned from MySQL_Connect.

Example

   MySQL_Execute(connID;"UPDATE clients SET good_one='Yes' WHERE zip_code='90210'")
   $err:=MySQL_ErrorCode(connID)
   If($err#0)
       $errStr:=MySQL_ErrorString(connID)
      ALERT("Error: "+$errStr)
   End if

4D - Documentation   Français   English   German   4D For MySQL, Command Theme List   4D For MySQL, Command Alphabetical List   Back   Previous   Next