From 3c08ec64aebb60e9d3163aa56711ccac9d2d0f05 Mon Sep 17 00:00:00 2001 From: Esen Sagynov Date: Wed, 2 Mar 2011 07:07:40 +0000 Subject: [PATCH] fix found bugs and rewrite almost all examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308842 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../cubrid/functions/cubrid-affected-rows.xml | 38 ++-- reference/cubrid/functions/cubrid-bind.xml | 61 +++++-- .../cubrid/functions/cubrid-close-request.xml | 43 +++-- reference/cubrid/functions/cubrid-col-get.xml | 56 ++++-- .../cubrid/functions/cubrid-col-size.xml | 45 ++++- .../cubrid/functions/cubrid-column-names.xml | 39 ++-- .../cubrid/functions/cubrid-column-types.xml | 45 +++-- reference/cubrid/functions/cubrid-commit.xml | 84 ++++++++- reference/cubrid/functions/cubrid-connect.xml | 68 +++++-- .../cubrid/functions/cubrid-current-oid.xml | 42 +++-- .../cubrid/functions/cubrid-data-seek.xml | 63 ++++--- .../cubrid/functions/cubrid-disconnect.xml | 69 +++++-- reference/cubrid/functions/cubrid-drop.xml | 103 ++++++++++- .../functions/cubrid-error-code-facility.xml | 32 +++- .../cubrid/functions/cubrid-error-code.xml | 32 +++- .../cubrid/functions/cubrid-error-msg.xml | 31 +++- reference/cubrid/functions/cubrid-execute.xml | 82 +++++---- .../cubrid/functions/cubrid-fetch-array.xml | 39 ++-- .../cubrid/functions/cubrid-fetch-assoc.xml | 46 ++--- .../cubrid/functions/cubrid-fetch-field.xml | 97 +++++----- .../cubrid/functions/cubrid-fetch-lengths.xml | 56 +++--- .../cubrid/functions/cubrid-fetch-object.xml | 76 +++++--- .../cubrid/functions/cubrid-fetch-row.xml | 42 +++-- reference/cubrid/functions/cubrid-fetch.xml | 42 +++-- .../cubrid/functions/cubrid-field-flags.xml | 54 ++++-- .../cubrid/functions/cubrid-field-len.xml | 37 ++-- .../cubrid/functions/cubrid-field-name.xml | 51 +++--- .../cubrid/functions/cubrid-field-seek.xml | 98 +++++----- .../cubrid/functions/cubrid-field-table.xml | 44 ++--- .../cubrid/functions/cubrid-field-type.xml | 50 ++--- .../cubrid/functions/cubrid-free-result.xml | 45 +++-- .../cubrid/functions/cubrid-get-charset.xml | 59 ++++-- .../functions/cubrid-get-class-name.xml | 37 ++-- .../functions/cubrid-get-client-info.xml | 48 ++++- .../functions/cubrid-get-db-parameter.xml | 172 ++++++++++++++++-- .../functions/cubrid-get-server-info.xml | 52 +++++- reference/cubrid/functions/cubrid-get.xml | 76 +++++++- .../cubrid/functions/cubrid-insert-id.xml | 58 +++--- .../cubrid/functions/cubrid-is-instance.xml | 37 +++- .../cubrid/functions/cubrid-list-dbs.xml | 25 +-- .../cubrid/functions/cubrid-lock-read.xml | 69 ++++++- .../cubrid/functions/cubrid-lock-write.xml | 54 +++++- .../cubrid/functions/cubrid-move-cursor.xml | 66 +++++-- .../cubrid/functions/cubrid-num-cols.xml | 33 ++-- .../cubrid/functions/cubrid-num-fields.xml | 33 ++-- .../cubrid/functions/cubrid-num-rows.xml | 36 ++-- reference/cubrid/functions/cubrid-prepare.xml | 51 ++++-- reference/cubrid/functions/cubrid-put.xml | 78 ++++++-- .../functions/cubrid-real-escape-string.xml | 62 +++++-- reference/cubrid/functions/cubrid-result.xml | 44 +++-- .../cubrid/functions/cubrid-rollback.xml | 80 ++++++-- reference/cubrid/functions/cubrid-schema.xml | 145 ++++++++++++++- .../cubrid/functions/cubrid-seq-drop.xml | 61 +++++-- .../cubrid/functions/cubrid-seq-insert.xml | 59 +++++- reference/cubrid/functions/cubrid-seq-put.xml | 57 +++++- reference/cubrid/functions/cubrid-set-add.xml | 56 +++++- .../cubrid/functions/cubrid-set-drop.xml | 50 ++++- reference/cubrid/functions/cubrid-version.xml | 58 +++++- 58 files changed, 2516 insertions(+), 850 deletions(-) diff --git a/reference/cubrid/functions/cubrid-affected-rows.xml b/reference/cubrid/functions/cubrid-affected-rows.xml index f314f6a057..3a7dbe0b3f 100644 --- a/reference/cubrid/functions/cubrid-affected-rows.xml +++ b/reference/cubrid/functions/cubrid-affected-rows.xml @@ -4,7 +4,7 @@ cubrid_affected_rows - Get number of affected rows in previous Cubrid operation + Returns the number of rows affected by the last SQL statement @@ -14,7 +14,8 @@ resourcereq_identifier - The cubrid_affected_rows function is used to get the number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE). + The cubrid_affected_rows function is used to get the + number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE). @@ -22,10 +23,10 @@ &reftitle.parameters; - - req_identifier - Request identifier. If the request identifier is not - specified, the last request is assumed. + + req_identifier + Request identifier. If the request identifier is not + specified, the last request is assumed. @@ -52,15 +53,30 @@ ]]> + &example.outputs; + + + diff --git a/reference/cubrid/functions/cubrid-bind.xml b/reference/cubrid/functions/cubrid-bind.xml index 082e88a803..3ec74365b2 100644 --- a/reference/cubrid/functions/cubrid-bind.xml +++ b/reference/cubrid/functions/cubrid-bind.xml @@ -4,7 +4,7 @@ cubrid_bind - Is used to bind values + Binds variables to a prepared statement as parameters @@ -25,7 +25,7 @@ Known issue: If column data type is CLOB, binding parameter will fail. - This bug will fixed later, better use BLOB now. + This bug will fixed later. @@ -198,23 +198,52 @@ ]]> +&example.outputs; + + + @@ -222,7 +251,7 @@ if ($con) { resourcereq_identifier - The cubrid_close_request function closes the request handle given by the req_identifier argument, and releases the memory region related to the handle. + The cubrid_close_request function closes the request + handle given by the req_identifier argument, and + releases the memory region related to the handle. @@ -47,22 +49,37 @@ + ]]> + &example.outputs; + + + diff --git a/reference/cubrid/functions/cubrid-col-get.xml b/reference/cubrid/functions/cubrid-col-get.xml index be44ef52dd..4cb93944bb 100644 --- a/reference/cubrid/functions/cubrid-col-get.xml +++ b/reference/cubrid/functions/cubrid-col-get.xml @@ -4,7 +4,7 @@ cubrid_col_get - Is used to get contents of the elements + Get contents of collection type column using OID @@ -16,7 +16,9 @@ stringattr_name - The cubrid_col_get function is used to get contents of the elements of the collection type (set, multiset, sequence) attribute you requested as an array. + The cubrid_col_get function is used to get contents + of the elements of the collection type (set, multiset, sequence) attribute + you requested as an array. @@ -30,7 +32,7 @@ oid - Oid of the instance that you want to read. + OID of the instance that you want to read. attr_name @@ -39,15 +41,18 @@ - &reftitle.returnvalues; - Array (0-based numerical array) containing the elements you requested, when process is successful; + Array (0-based numerical array) containing the elements you requested, + when process is successful; - &false; (to distinguish the error from the situation of attribute having empty collection or NULL, in case of error, a warning message is shown; in such case you can check the error by using cubrid_error_code), when process is unsuccessful. + &false; (to distinguish the error from the situation of attribute having + empty collection or NULL, in case of error, a warning message is shown; in + such case you can check the error by using + cubrid_error_code), when process is unsuccessful. @@ -58,17 +63,44 @@ ]]> + &example.outputs; + + + string(1) "1" + [1]=> + string(1) "2" + [2]=> + string(1) "3" +} +int(3) +]]> + - -