# ingres_autocommit_state

(PECL ingres >= 2.0.0)

ingres_autocommit_state — Test if the connection is using autocommit

### 说明

ingres_autocommit_state ( resource `$link` ) : bool

ingres_autocommit_state() is called to determine whether the current link has autocommit enabled or not.

### 参数

`link`

  The connection link identifier

### 返回值

Returns `TRUE` if autocommit is enabled or `FALSE` when autocommit is disabled

### 参见

- ingres_autocommit() - Switch autocommit on or off
- ingres_query() - Send an SQL query to Ingres