cubrid_set_autocommit
Set autocommit mode of the connection
説明
bool cubrid_set_autocommit(resource $conn_identifier
, bool $mode
)
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
を、失敗した場合に false
を返します。
参考
- cubrid_get_autocommit
- cubrid_commit