预定义常量
下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
-
INGRES_ASSOC
(integer)
-
Columns are returned into the array having the fieldname as the array
index. Used with ingres_fetch_array().
-
INGRES_NUM
(integer)
-
Columns are returned into the array having a numerical index to the
fields. By default this index starts at 1, the first field in the result.
To change this value, see ingres.array_index_start.
Used with ingres_fetch_array().
-
INGRES_BOTH
(integer)
-
Columns are returned into the array having both a numerical index and
the fieldname as the array index. Used with
ingres_fetch_array().
-
INGRES_EXT_VERSION
(string)
-
Specifies the version of the Ingres Extension. Available since version 1.2.0 of the PECL extension.
-
INGRES_API_VERSION
(integer)
-
Specifies the version of Ingres OpenAPI that the extension was built against. Available since version 1.2.0 of the PECL extension.
-
INGRES_CURSOR_READONLY
(integer)
-
Specifies that Ingres cursors should be opened in "readonly" mode.
Available since version 1.2.0 of the PECL extension. Used with ingres.cursor_mode.
-
INGRES_CURSOR_UPDATE
(integer)
-
Specifies that Ingres cursors should be opened "for update."
Available since version 1.2.0 of the PECL extension. Used with ingres.cursor_mode.
-
INGRES_DATE_MULTINATIONAL
(integer)
-
Equivalent to the II_DATE_FORMAT setting of MULTINATIONAL. Available
since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_MULTINATIONAL4
(integer)
-
Equivalent to the II_DATE_FORMAT setting of MULTINATIONAL4. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_FINNISH
(integer)
-
Equivalent to the II_DATE_FORMAT setting of FINNISH. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_ISO
(integer)
-
Equivalent to the II_DATE_FORMAT setting of ISO. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_ISO4
(integer)
-
Equivalent to the II_DATE_FORMAT setting of ISO4. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_GERMAN
(integer)
-
Equivalent to the II_DATE_FORMAT setting of GERMAN. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_MDY
(integer)
-
Equivalent to the II_DATE_FORMAT setting of MDY. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_DMY
(integer)
-
Equivalent to the II_DATE_FORMAT setting of DMY. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_DATE_YMD
(integer)
-
Equivalent to the II_DATE_FORMAT setting of YMD. Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_MONEY_LEADING
(integer)
-
Specifies the currency character that should be placed at the start of a money
value. Equivalent to setting II_MONEY_FORMAT to "L:". Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_MONEY_TRAILING
(integer)
-
Specifies the currency character that should be placed at the end of a money
value. Equivalent to setting II_MONEY_FORMAT to "T:". Available since version 1.2.0 of the PECL extension.
Used with
ingres_connect(), ingres_pconnect()
and ingres_set_environment(). See options
in ingres_set_environment().
-
INGRES_STRUCTURE_BTREE
(integer)
-
Specifies the default table or index structure to BTREE when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_CBTREE
(integer)
-
Specifies the default table or index structure to COMPRESSED BTREE when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_HASH
(integer)
-
Specifies the default table or index structure to HASH when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_CHASH
(integer)
-
Specifies the default table or index structure to COMPRESSED HASH when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_HEAP
(integer)
-
Specifies the default table structure to HEAP when used in combination with the
options option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_CHEAP
(integer)
-
Specifies the default table structure to COMPRESSED HEAP when used in combination with the
options option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_ISAM
(integer)
-
Specifies the default table or index structure to ISAM when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().
-
INGRES_STRUCTURE_CISAM
(integer)
-
Specifies the default table or index structure to COMPRESSED ISAM when used in combination with the
options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
Used with ingres_connect() and
ingres_pconnect(). See options
in ingres_connect().