use CUBRID as database name, not Cubrid; use result in funtions that fetching result, not request identifier; bug fix

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307530 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Esen Sagynov 2011-01-17 09:56:25 +00:00
parent d4a5d793eb
commit 098c69bbf2
29 changed files with 82 additions and 70 deletions

View file

@ -2,8 +2,8 @@
<!-- $Revision$ -->
<book xml:id="book.cubrid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Cubrid</title>
<titleabbrev>Cubrid</titleabbrev>
<title>CUBRID</title>
<titleabbrev>CUBRID</titleabbrev>
<preface xml:id="intro.cubrid">
&reftitle.intro;

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_affected_rows</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_affected_rows</function> function is used to get the number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE).
@ -24,7 +24,8 @@
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
<listitem><para>Request identifier. If the request identifier is not
specified, the last request is assumed.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -38,6 +39,10 @@
<para>
-1, when SQL sentence is not INSERT, DELETE or UPDATE.
</para>
<para>
&false;, when the request identifier is not specified, and there is no last
request.
</para>
</refsect1>
<refsect1 role="examples">
@ -47,7 +52,7 @@
<programlisting role="php">
<![CDATA[
<?php
$req = cubrid_execute ($con, "delete from person where name like j% ");
$req = cubrid_execute ($con, "delete from person where name like 'j%'");
if ($req) {
$row_count = cubrid_affected_rows ($req);
echo $row_count;
@ -59,7 +64,7 @@ if ($req) {
</example>
</refsect1>
<refsect1 role="seealso">
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>

View file

@ -14,7 +14,7 @@
<methodparam choice="opt"><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns This function returns the current CUBRID connection charset.
This function returns the current CUBRID connection charset.
</para>
</refsect1>
@ -47,13 +47,13 @@
<programlisting role="php">
<![CDATA[
<?php
$link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
if (!$link)
$con = cubrid_connect("localhost", 33000, "demodb");
if (!$con)
{
die('Could not connect.');
}
printf("CUBRID current charset: %s\n", cubrid_client_encoding($link));
printf("CUBRID current charset: %s\n", cubrid_client_encoding($con));
?>
]]>
</programlisting>
@ -67,6 +67,15 @@ CUBRID current charset: iso8859-1
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>cubrid_get_charset</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file

View file

@ -20,9 +20,6 @@
<para>
The <function>cubrid_connect</function> function is used to establish the environment for connecting to your server by using your server address, port number, database name, user name, and password. If the user name and password is not given, then the "PUBLIC" connection will be made by default.
</para>
<para>
Calling the <function>cubrid_connect</function> function does not necessarily make the connection to your server. The actual connection will be made when an operation is requested by using the connection handle.
</para>
</refsect1>
<refsect1 role="parameters">

View file

@ -4,7 +4,7 @@
<refentry xml:id="function.cubrid-db-name" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>cubrid_db_name</refname>
<refpurpose>Get result data</refpurpose>
<refpurpose>Get db name from results of cubrid_list_dbs</refpurpose>
</refnamediv>
<refsect1 role="description">

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_disconnect</methodname>
<type>bool</type><methodname>cubrid_disconnect</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_drop</methodname>
<type>bool</type><methodname>cubrid_drop</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>

View file

@ -26,7 +26,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Error code of the error that occurred.
Error code of the error that occurred, or <literal>0</literal> (zero) if no
error occurred.
</para>
<para />
</refsect1>

View file

@ -16,7 +16,7 @@
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>int</type><methodname>cubrid_execute</methodname>
<type>bool</type><methodname>cubrid_execute</methodname>
<methodparam><type>resource</type><parameter>request_identifier</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
</methodsynopsis>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_array</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>type = CUBRID_BOTH</parameter></methodparam>
</methodsynopsis>
<para>
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>type</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_assoc</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
This function returns the associative array, that corresponds to the fetched row and, then, moves the internal data pointer ahead, or it returns FALSE when the end is reached.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>object</type><methodname>cubrid_fetch_field</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>field_offset = 0</parameter></methodparam>
</methodsynopsis>
<para>
@ -65,8 +65,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_lengths</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
This function returns an numeric array with the lengths of the values of each field from the current row of the result set or it returns FALSE on failure.
@ -29,8 +29,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>object</type><methodname>cubrid_fetch_object</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>params</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>class_name</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_row</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
This function returns a numerical array with the values of the current row from the result set, starting from 0.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_fetch</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>type</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_field_flags</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_field_len</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_field_name</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>cubrid_field_seek</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_field_table</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier .</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Array type of the fetched result CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_field_type</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the requeset identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Array type of the fetched result CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>

View file

@ -24,7 +24,7 @@
<variablelist>
<varlistentry>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
<listitem><para>The CUBRID connection.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>The CUBRID connection.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_lock_read</methodname>
<type>bool</type><methodname>cubrid_lock_read</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_lock_write</methodname>
<type>bool</type><methodname>cubrid_lock_write</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_num_fields</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
</methodsynopsis>
<para>
This function returns the number of columns in the result set, on success, or it returns FALSE on failure.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_result</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>field = 0</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
<term><parameter>result</parameter></term>
<listitem><para>Result comes from a call to <function>cubrid_execute</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>row</parameter></term>

View file

@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_rollback</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<type>bool</type><methodname>cubrid_rollback</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_rollback</function> function executes rollback on the transaction pointed by <parameter>conn_handle</parameter>, currently in progress.