Php/docs/function.cubrid-set-autocommit

提供:Dev Guides
< Php
2020年12月14日 (月) 11:42時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

cubrid_set_autocommit

(PECL CUBRID >= 8.4.0)

cubrid_set_autocommitSet autocommit mode of the connection


説明

cubrid_set_autocommit ( resource $conn_identifier , bool $mode ) : bool

The cubrid_set_autocommit() function is used to set the CUBRID database auto-commit mode of the current database connection.

In CUBRID PHP, auto-commit mode is disabled by default for transaction management. When auto-commit mode is truned from off to on, any pending work is automatically committed.


パラメータ

conn_identifier
Connection identifier.
mode
Auto-commit mode. The following constants can be used:
  • CUBRID_AUTOCOMMIT_FALSE
  • CUBRID_AUTOCOMMIT_TRUE


返り値

true, when process is successful.

false, when process is unsuccessful.


参考