From c97dd01b044c7637f063f5b8ce83f1b7f31452d3 Mon Sep 17 00:00:00 2001 From: Grant Croker Date: Fri, 7 Oct 2005 16:32:06 +0000 Subject: [PATCH] New functions + ini entries git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@197883 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../ingres-ii/functions/ingres-cursor.xml | 72 +++++++++++++++++ .../ingres-ii/functions/ingres-errno.xml | 78 ++++++++++++++++++ .../ingres-ii/functions/ingres-error.xml | 78 ++++++++++++++++++ .../functions/ingres-errsqlstate.xml | 79 +++++++++++++++++++ reference/ingres-ii/ini.xml | 22 +++++- 5 files changed, 327 insertions(+), 2 deletions(-) create mode 100644 reference/ingres-ii/functions/ingres-cursor.xml create mode 100644 reference/ingres-ii/functions/ingres-errno.xml create mode 100644 reference/ingres-ii/functions/ingres-error.xml create mode 100644 reference/ingres-ii/functions/ingres-errsqlstate.xml diff --git a/reference/ingres-ii/functions/ingres-cursor.xml b/reference/ingres-ii/functions/ingres-cursor.xml new file mode 100644 index 0000000000..0b33ad96aa --- /dev/null +++ b/reference/ingres-ii/functions/ingres-cursor.xml @@ -0,0 +1,72 @@ + + + + + + ingres_cursor + Gets a cursor name for a given link resource + + + Description + + stringingres_cursor + resourcelink + + + Returns an string containing the active cursor name. If no cursor is + active then NULL is returned. + + + If a link resource is passed to + ingres_cursor it returns the cursor name recorded + for the link. If no link is passed then + ingres_cursor returns the cursor name asssociated + with the default link. + + + + <function>ingres_cursor</function> example + + +]]> + + + + + See also + ingres_prepare and + ingres_execute. + + + + + diff --git a/reference/ingres-ii/functions/ingres-errno.xml b/reference/ingres-ii/functions/ingres-errno.xml new file mode 100644 index 0000000000..967913a28d --- /dev/null +++ b/reference/ingres-ii/functions/ingres-errno.xml @@ -0,0 +1,78 @@ + + + + + + ingres_errno + Gets the last ingres error number generated + + + Description + + intingres_errno + resourcelink + + + Returns an integer containing the last error number. If no error was + reported 0 is returned. + + + If a link resource is passed to + ingres_errno it returns the last error recorded for + the link. If no link is passed then ingres_errno + returns the last error reported using the default link. + + + The function, ingres_errno, should always be called + after executing a database query. Calling another function before + ingres_errno is called, will reset or change any + error code from the last Ingres function call. + + + + <function>ingres_error</function> example + + +]]> + + + + + See also + ingres_error and + ingres_errsqlstate. + + + + + diff --git a/reference/ingres-ii/functions/ingres-error.xml b/reference/ingres-ii/functions/ingres-error.xml new file mode 100644 index 0000000000..3f6a09b660 --- /dev/null +++ b/reference/ingres-ii/functions/ingres-error.xml @@ -0,0 +1,78 @@ + + + + + + ingres_error + Gets a meaningful error message for the last error generated + + + Description + + stringingres_error + resourcelink + + + Returns a string containing the last error, or NULL if no error has + occurred. + + + If a link resource is passed to + ingres_error it returns the last error recorded for + the link. If no link is passed then ingres_error + returns the last error reported using the default link. + + + The function, ingres_error, should always be called + after executing any database query. Calling another function before + ingres_error is called will reset or change any + error message from the last Ingres function call. + + + + <function>ingres_error</function> example + + +]]> + + + + + See also + ingres_errno and + ingres_errsqlstate. + + + + + diff --git a/reference/ingres-ii/functions/ingres-errsqlstate.xml b/reference/ingres-ii/functions/ingres-errsqlstate.xml new file mode 100644 index 0000000000..32a9ace0a2 --- /dev/null +++ b/reference/ingres-ii/functions/ingres-errsqlstate.xml @@ -0,0 +1,79 @@ + + + + + + ingres_errsqlstate + Gets the last SQLSTATE error code generated + + + Description + + stringingres_errsqlstate + resourcelink + + + Returns a string containing the last SQLSTATE, or NULL if no error has + occurred. + + + If a link resource is passed to + ingres_errsqlstate it returns the last error + recorded for the link. If no link is passed then + ingres_errsqlstate returns the last error reported + using the default link. + + + The function, ingres_errsqlstate, should always be + called after executing any database query. Calling another function + before ingres_errsqlstate is called will reset or + change any error message from the last Ingres function call. + + + + <function>ingres_errsqlstate</function> example + + +]]> + + + + + See also + ingres_errno and + ingres_errsqlstate. + + + + + diff --git a/reference/ingres-ii/ini.xml b/reference/ingres-ii/ini.xml index ddf7fe353f..747071b78e 100644 --- a/reference/ingres-ii/ini.xml +++ b/reference/ingres-ii/ini.xml @@ -1,11 +1,11 @@ - +
&reftitle.runtime; &extension.runtime; - Ingres II configuration options + Ingres configuration options @@ -52,6 +52,24 @@ PHP_INI_ALL Available since PHP 4.0.2. + + ingres.report_db_warnings + "1" + PHP_INI_ALL + Available since version 1.1.0 of the PECL extension. + + + ingres.cursor_mode + "0" + PHP_INI_ALL + Available since version 1.1.0 of the PECL extension. + + + ingres.blob_segment_length + "4096" + PHP_INI_ALL + Available since version 1.2.0 of the PECL extension. +