Oracle 5.0 Reference Manual page 2167

Table of Contents

Advertisement

Return Values
None.
Errors
None.
20.6.6.6.
mysql_commit()
my_bool mysql_commit(MYSQL *mysql)
Description
Commits the current transaction.
As of MySQL 5.0.3, the action of this function is subject to the value of the
system variable. In particular, if the value of
release after terminating a transaction and closes the client connection. The client program should call
mysql_close()
Return Values
Zero if successful. Nonzero if an error occurred.
Errors
None.
20.6.6.7.
mysql_connect()
MYSQL *mysql_connect(MYSQL *mysql, const char *host, const char *user, const
char *passwd)
Description
This function is deprecated. Use
mysql_connect()
host.
mysql_connect()
functions, with the exception of mysql_get_client_info().
The meanings of the parameters are the same as for the corresponding parameters for
mysql_real_connect()
case, the C API allocates memory for the connection structure automatically and frees it when you call
mysql_close(). The disadvantage of this approach is that you can't retrieve an error message if
the connection fails. (To get error information from
provide a valid
Return Values
Same as for mysql_real_connect().
Errors
Same as for mysql_real_connect().
20.6.6.8.
mysql_create_db()
int mysql_create_db(MYSQL *mysql, const char *db)
C API Function Descriptions
to close the connection from the client side.
mysql_real_connect()
attempts to establish a connection to a MySQL database engine running on
must complete successfully before you can execute any of the other API
with the difference that the connection parameter may be NULL. In this
pointer.)
MYSQL
[444]
completion_type
instead.
mysql_errno()
2147
completion_type
is 2, the server performs a
or mysql_error(), you must
[444]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents