You are here : Cmysql/mysql.hmysql_commit

mysql_commit() - mysql/mysql.h

 Commits the current transaction.The action of this function is subject to the value of the
        completion_type system
        variable. In particular, if the value of
        completion_type is
        RELEASE (or 2), the server performs a release
        after terminating a transaction and closes the client
        connection. Call mysql_close()
        from the client program to close the connection from the client
        side.completion_typecompletion_typecompletion_typecompletion_typeRELEASEmysql_close()mysql_close()


Syntax

my_bool mysql_commit(MYSQL *mysql)


Example

 


Output / Return Value

 Zero for success. Nonzero if an error occurred.


Limitations


Alternatives / See Also


Reference