DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(mysql.info.gz) mysql_stmt_error

Info Catalog (mysql.info.gz) mysql_stmt_errno (mysql.info.gz) C API Prepared statement functions (mysql.info.gz) mysql_stmt_execute
 
 22.2.7.9 `mysql_stmt_error()'
 .............................
 
 `const char *mysql_stmt_error(MYSQL_STMT *stmt)'
 
 Description
 ...........
 
 For the statement specified by `stmt', `mysql_stmt_error()' returns a
 null-terminated string containing the error message for the most
 recently invoked statement API function that can succeed or fail. An
 empty string (`""') is returned if no error occurred. This means the
 following two tests are equivalent:
 
 
      if (mysql_stmt_errno(stmt))
      {
        // an error occurred
      }
 
      if (mysql_stmt_error(stmt)[0])
      {
        // an error occurred
      }
 
 The language of the client error messages may be changed by recompiling
 the MySQL client library. Currently you can choose error messages in
 several different languages.
 
 This function was added in MySQL 4.1.0.
 
 Return Values
 .............
 
 A character string that describes the error. An empty string if no error
 occurred.
 
 Errors
 ......
 
 None.
 
Info Catalog (mysql.info.gz) mysql_stmt_errno (mysql.info.gz) C API Prepared statement functions (mysql.info.gz) mysql_stmt_execute
automatically generated byinfo2html