update CUBRID PHP APIs doc according to version 2008 R3.0

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303119 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Esen Sagynov 2010-09-07 02:24:05 +00:00
parent ef2bc28e42
commit 6ec7dfe8a7
63 changed files with 555 additions and 394 deletions

View file

@ -3,54 +3,9 @@
<section xml:id="cubrid.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.install;
<para>
From the CUBRID homepage (<link xlink:href="&url.cubrid;">CUBRID</link>), download the PHP module.
</para>
<section>
<title>Installing PHP for Windows</title>
<para>
Create a directory named CUBRID in the directory where PHP is installed, and then copy the <parameter>cubrid_err.msg</parameter> file. Also copy the .dll file of the cubrid_php you have just downloaded to the php extension directory (default C:\PHP\ext - see <parameter>extension_dir</parameter> from php.ini). If you download CUBRID PHP version 5.1.4, add required settings as shown in the example below by editing the php.ini file.
</para>
<programlisting>
<![CDATA[
extension_dir = C:\PHP\ext
extension=cubrid_php5.1.4.dll
[CUBRID]
cubrid.err_path=C:\PHP\CUBRID
]]>
</programlisting>
<para>
Once the configuration is complete, restart the web server. If you can see the CUBRID information as shown below when you check the PHP configuration using the phpinfo() function of PHP, it means that the installation was successful.
</para>
</section>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Installing PHP for Linux</title>
<para>
Unlike Windows, Linux provides its source code. Download the source code from the CUBRID homepage (<link xlink:href="&url.cubrid;">CUBRID</link>), and install it by following the INSTALL file of the compressed file. Also in the Linux version, edit and save the php.ini file, and then restart the web server.
</para>
<programlisting>
<![CDATA[
; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/lib/php5/lib/php/ext
extension=cubrid.so
;for Windows, extension=cubrid.dll
[CUBRID]
cubrid.err_path=/home/cubrid/CUBRID/msg
]]>
</programlisting>
<para>
Check the configuration using phpinfo() function.
</para>
<programlisting>
<![CDATA[
[root@localhost]#vi test.php
]]>
</programlisting>
<para>
As with the Windows version of PHP, if you can see the CUBRID information on the web browser, it means that the installation was successful.
</para>
</section>
<para>
Read "CUBRID 2008 R3.0 PHP Library Build Guide" to get more details.
</para>
</section>

View file

@ -292,6 +292,28 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>CUBRID_SCH_DIRECT_SUPER_CLASS</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>
Is a schema type used for <function>cubrid_schema</function> function.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>CUBRID_SCH_ATTR_PRIMARY_KEY</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>
Is a schema type used for <function>cubrid_schema</function> function.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>CUBRID_FACILITY_DBMS</constant>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_affected_rows</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><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).
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -36,7 +36,7 @@
Number of rows affected by the SQL sentence, when process is successful.
</para>
<para>
-1, when process is unsuccessful.
-1, when SQL sentence is not INSERT, DELETE or UPDATE.
</para>
</refsect1>

View file

@ -11,13 +11,16 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_bind</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>bind_index</parameter></methodparam>
<methodparam><type>string</type><parameter>bind_value</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>bind_value_type</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_bind</function> function is used to bind values in a <function>cubrid_prepare</function> variable, a various types in PHP and corresponding types in SQL.
The <function>cubrid_bind</function> function is used to bind values in a <function>cubrid_prepare</function> variable, a various types in PHP and corresponding types in SQL. If bind_value_type is not given, string will be the default.
</para>
<para>
Note: Collection type (set, multiset or sequence) value can't be bind now.
</para>
</refsect1>
@ -26,8 +29,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle as a result of <function>cubrid_prepare.</function></para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier as a result of <function>cubrid_prepare.</function></para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>bind_index</parameter></term>
@ -39,7 +42,7 @@
</varlistentry>
<varlistentry>
<term><parameter>bind_index</parameter></term>
<listitem><para>A type of the value to bind. (It is omitted by default. Thus, system internally converts and matches the corresponding types if it is omitted. However, you need to specify the exact type of the value as an argument when they are either NCHAR or BIT).</para></listitem>
<listitem><para>A type of the value to bind. (It is omitted by default. Thus, system internally use string by default. However, you need to specify the exact type of the value as an argument when they are either NCHAR or BIT).</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,10 +11,10 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_close_prepare</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_close_prepare</function> function closes the request handle given by the <parameter>req_handle</parameter> argument, and releases the memory region related to the handle.
The <function>cubrid_close_prepare</function> function closes the request handle given by the <parameter>req_identifier</parameter> argument, and releases the memory region related to the handle.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -97,4 +97,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->

View file

@ -11,10 +11,10 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_close_request</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_close_request</function> function closes the request handle given by the <parameter>req_handle</parameter> argument, and releases the memory region related to the handle.
The <function>cubrid_close_request</function> function closes the request handle given by the <parameter>req_identifier</parameter> argument, and releases the memory region related to the handle.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -97,4 +97,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->

View file

@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_col_get</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>array</type><methodname>cubrid_col_get</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_col_size</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -10,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_column_names</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<type>array</type><methodname>cubrid_column_names</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_column_names</function> function is used to get the column names of the query result by using <parameter>req_handle</parameter>.
The <function>cubrid_column_names</function> function is used to get the column names of the query result by using <parameter>req_identifier</parameter>.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -33,7 +33,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
array containing column names, when process is successful.
Array of string which containing column names, when process is successful.
</para>
<para>
&false;, when process is unsuccessful.

View file

@ -10,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_column_types</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<type>array</type><methodname>cubrid_column_types</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_column_types</function> function gets column types of query results by using <parameter>req_handle</parameter>.
The <function>cubrid_column_types</function> function gets column types of query results by using <parameter>req_identifier</parameter>.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -33,7 +33,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Array containing column types, when process is successful.
Array of string which containing column types, when process is successful.
</para>
<para>
&false;, when process is unsuccessful.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_commit</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam> </methodsynopsis>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam> </methodsynopsis>
<para>
The <function>cubrid_commit</function> function is used to execute commit on the transaction pointed by <parameter>conn_handle</parameter>, currently on progress. Connection to the server is closed after the <function>cubrid_commit</function> function is called; the connection handle is still valid, however.
</para>
@ -22,8 +22,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 301890 $ -->
<refentry xml:id="function.cubrid-connect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>cubrid_connect_with_url</refname>
<refpurpose>Is used to establish the environment for connecting to your server </refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>cubrid_connect_with_url</methodname>
<methodparam><type>string</type><parameter>conn_url</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>userid</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>passwd</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_connect_with_url</function> function is used to establish the environment for connecting to your server by using connection information passed with an url string argument. If the HA feature is enabled in CUBRID, you must specify the connection information of the standby server, which is used for failover when failure occurs, in the url string argument of this function. If the user name and password is not given, then the "PUBLIC" connection will be made by default.
</para>
<para>
&lt;url&gt; ::= cci:CUBRID:&lt;host&gt;:&lt;db_name&gt;:&lt;db_user&gt;:&lt;db_password&gt;:[?&lt;properties&gt;]
&lt;properties&gt; ::= &lt;property&gt; [&amp;&lt;propertygt;]
&lt;alternative_hosts&gt; ::= &lt;standby_broker1_host&gt;:&lt;port&gt; [,&lt;standby_broker2_host&gt;:&lt;port&gt;]
&lt;host&gt; := HOSTNAME | IP_ADDR
&lt;time&gt; := SECOND
</para>
<para>
<simplelist>
<member>host : A host name or IP address of the master database</member>
<member>db_name : A name of the database</member>
<member>db_user : A name of the database user</member>
<member>db_password : A database user password</member>
<member>alhosts: Specifies the broker information of the standby server, which is used for failover when it is impossible to connect to the active server. You can specify multiple brokers for failover, and the connection to the brokers is attempted in the order listed in alhosts</member>
<member>rctime : An interval between the attempts to connect to the active broker in which failure occurred. After a failure occurs, the system connects to the broker specified by althosts (failover), terminates the transaction, and then attempts to connect to the active broker of the master database at every rctime. The default value is 600 seconds.</member>
</simplelist>
</para>
<para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_url</parameter></term>
<listitem><para>A character string that contains server connection information.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>userid</parameter></term>
<listitem><para>User name for the database.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>passwd</parameter></term>
<listitem><para>User password.</para></listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Connection identifier, when process is successful.
</para>
<para>
&false;, when process is unsuccessful.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>cubrid_connect_with_url</function> url without properties example</title>
<programlisting role="php">
<![CDATA[
<?php
$conn_url = "cci:CUBRID:127.0.0.1:33088:demodb:dba:123456:"
$con = cubrid_connect_with_url ($conn_url);
if ($con) {
echo "connected successfully";
$req =cubrid_execute($con, "insert into person values(1,James)");
if ($req) {
cubrid_close_request ($req);
cubrid_commit ($con);
} else {
cubrid_rollback ($con);
}
cubrid_disconnect ($con);
}
?>
]]>
</programlisting>
</example>
<example>
<title><function>cubrid_connect_with_url</function> url with properties example</title>
<programlisting role="php">
<![CDATA[
<?php
$conn_url = "cci:CUBRID:127.0.0.1:33088:demodb:dba:123456:?althost=10.34.63.132:33088&rctime=100"
$con = cubrid_connect_with_url ($conn_url);
if ($con) {
echo "connected successfully";
$req =cubrid_execute($con, "insert into person values(1,James)");
if ($req) {
cubrid_close_request ($req);
cubrid_commit ($con);
} else {
cubrid_rollback ($con);
}
cubrid_disconnect ($con);
}
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>cubrid_connect</function></member>
<member><function>cubrid_disconnect</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_connect</methodname>
<type>resource</type><methodname>cubrid_connect</methodname>
<methodparam><type>string</type><parameter>host</parameter></methodparam>
<methodparam><type>int</type><parameter>port</parameter></methodparam>
<methodparam><type>string</type><parameter>dbname</parameter></methodparam>
@ -31,11 +31,11 @@
<variablelist>
<varlistentry>
<term><parameter>host</parameter></term>
<listitem><para>Host name of CAS server.</para></listitem>
<listitem><para>Host name or IP address of CAS server.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>port</parameter></term>
<listitem><para>Port number of CAS server.</para></listitem>
<listitem><para>Port number of CAS server (BROKER_PORT configured in $CUBRID/conf/cubrid_broker.conf).</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>dbname</parameter></term>
@ -56,7 +56,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Connection handle, when process is successful.
Connection identifier, when process is successful.
</para>
<para>
&false;, when process is unsuccessful.

View file

@ -10,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_current_oid</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<type>string</type><methodname>cubrid_current_oid</methodname>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_current_oid</function> function is used to get the oid of the current cursor location from the query result. To use <function>cubrid_current_oid</function>, the query executed must be a updatable query, and the CUBRID_ INCLUDE_OID option must be included during the query execution.
The <function>cubrid_current_oid</function> function is used to get the oid of the current cursor location from the query result. To use <function>cubrid_current_oid</function>, the query executed must be a updatable query, and the CUBRID_INCLUDE_OID option must be included during the query execution.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>cubrid_data_seek</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>row_number</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>row_number</parameter></term>
@ -38,10 +38,13 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&true; on success.
CUBRID_CURSOR_SUCCESS, on success.
</para>
<para>
&false; on failure.
<para>
CUBRID_NO_MORE_DATA, when it is not a valid cursor location.
</para>
<para>
&false; on CAS error, row count is 0, or invalid offset.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_disconnect</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_disconnect</function> function ends the transaction currently on process, closes the connection handle and disconnects from server. If there exists any request handle not closed yet at this point, it will be closed.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_drop</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -10,24 +10,24 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_execute</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>resource</type><methodname>cubrid_execute</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>SQL</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>int</type><methodname>cubrid_execute</methodname>
<methodparam><type>int</type><parameter>request_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>request_identifier</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_execute</function> function is used to execute the given SQL sentence. It executes the query by using <parameter>conn_handle</parameter> and SQL, and then returns the request handle created. It is used for simple execution of query, where the parameter binding is not needed. In addition, the <function>cubrid_execute</function> function is used to execute the prepared statement by means of <function>cubrid_prepare</function> and <function>cubrid_bind</function>. At this time, you need to specify arguments of <parameter>request_handle</parameter> and <parameter>option</parameter>.
The <function>cubrid_execute</function> function is used to execute the given SQL sentence. It executes the query by using <parameter>conn_identifier</parameter> and SQL, and then returns the request identifier created. It is used for simple execution of query, where the parameter binding is not needed. In addition, the <function>cubrid_execute</function> function is used to execute the prepared statement by means of <function>cubrid_prepare</function> and <function>cubrid_bind</function>. At this time, you need to specify arguments of <parameter>request_identifier</parameter> and <parameter>option</parameter>.
</para>
<para>
You can use the <parameter>option</parameter> argument to tell whether to receive oid of the row after the execution, and, whether to execute the query in asynchronous mode. You can use it by setting the CUBRID_INCLUDE_OID and CUBRID_ASYNC using bitwise or operator. If the both variables are not explicitly given, they are not selected by default.
</para>
<para>
If the first argument is <parameter>request_handle</parameter> to execute the <function>cubrid_prepare</function> function, you can specify an option, CUBRID_ASYNC only.
If the first argument is <parameter>request_identifier</parameter> to execute the <function>cubrid_prepare</function> function, you can specify an option, CUBRID_ASYNC only.
</para>
</refsect1>
@ -36,8 +36,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>SQL</parameter></term>
@ -48,8 +48,8 @@
<listitem><para>Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>request_handle</parameter></term>
<listitem><para><function>cubrid_prepare</function> handle.</para></listitem>
<term><parameter>request_identifier</parameter></term>
<listitem><para><function>cubrid_prepare</function> identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -58,7 +58,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Request handle, when process is successful.
Request identifier, when process is successful and first param is conn_identifier; &true;, when process is successful and first argument is request_identifier.
</para>
<para>
&false;, when process is unsuccessful.
@ -73,22 +73,35 @@
<![CDATA[
<?php
$con = cubrid_connect ("dbsvr.cubrid.com", 33000, "demodb");
if ($con) { echo "connected successfully";
$req = cubrid_execute ( $con, "select * from members", CUBRID_INCLUDE_OID | CUBRID_ASYNC); if ($req) {
while ( list ($id, $name) = cubrid_fetch ($req) ){ echo $id; echo $name;
if ($con) {
echo "connected successfully";
$req = cubrid_execute ($con, "select * from members", CUBRID_INCLUDE_OID | CUBRID_ASYNC);
if ($req) {
while (list ($id, $name) = cubrid_fetch ($req)) {
echo $id;
echo $name;
}
cubrid_close_request ($req);
}
cubrid_disconnect ($con);
}
$con = cubrid_connect ("dbsvr.cubrid.com", 33000, "demodb");
if ($con) {
echo "connected successfully";
$sql = "insert into tbl values (?, ?, ?)";
$req = cubrid_prepare($con, $sql, CUBRID_INCLUDE_OID);
$i = 0;
while ( $i < 2 ) {
$res = cubrid_bind($req, 1, "1", "NUMBER");
$res = cubrid_bind($req, 2, "2");
$res = cubrid_bind($req, 3, "04:22:34 PM 08/07/2007");
$res = cubrid_execute($req);
$i = $i + 1;
}
}
cubrid_close_request ($req); } cubrid_disconnect ($con);
} $con = cubrid_connect ("dbsvr.cubrid.com", 33000, "demodb");
if ($con) { echo "connected successfully";
$sql = "insert into tbl values ( ?,?,?)"; $req = cubrid_prepare( $con, $sql, CUBRID_INCLUDE_OID );
$i = 0;
while ( $i < 2 ) {
$res = cubrid_bind( $req, 1, "1", "NUMBER");
$res = cubrid_bind( $req, 2, "2");
$res = cubrid_bind( $req, 3, "04:22:34 PM 08/07/2007");
$res = cubrid_execute( $req );
$i = $i + 1;
}}
?>
]]>
</programlisting>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_assoc</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</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>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -36,7 +36,7 @@
Associative array, when process is successful.
</para>
<para>
&false; when the end is reached.
&false; when the end is reached, or error.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>object</type><methodname>cubrid_fetch_field</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</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>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>
@ -82,7 +82,7 @@
Object with certain properties of the specific column, when process is successful.
</para>
<para>
&false; or -1 on failure.
&false; on failure.
</para>
</refsect1>

View file

@ -11,10 +11,10 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_lengths</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns an array with the lengths of the values of each field from the current row of the result set or it returns FALSE on failure.
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.
</para>
</refsect1>
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -33,7 +33,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An array, when process is successful.
An numeric array, when process is successful.
</para>
<para>
&false; on failure.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>object</type><methodname>cubrid_fetch_object</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns an object with the column names of the result set as properties. The values of these properties are extracted from the current row of the result.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_fetch_row</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</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>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_fetch</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</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>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>
@ -40,8 +40,11 @@
<para>
A string with flags, when process is successful.
</para>
<para>
&false; on failure.
<para>
&false; when invalid field_offset value.
</para>
<para>
-1 if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_field_len</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</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>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</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>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</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>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier .</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>
@ -40,8 +40,11 @@
<para>
Name of the table of the specified field, on success.
</para>
<para>
&false; or -1 on failure.
<para>
&false; when invalid field_offset value.
</para>
<para>
-1 if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_field_type</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the requeset identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>field_offset</parameter></term>
@ -40,8 +40,11 @@
<para>
Type of the column, on success.
</para>
<para>
&false; on failure.
<para>
&false; when invalid field_offset value.
</para>
<para>
-1 if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>cubrid_free_result</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function frees the memory occupied by the result data. It returns TRUE on success or FALSE on failure.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_get_charset</methodname>
<methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns This function returns the current CUBRID connection charset.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_get_class_name</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>string</type><methodname>cubrid_get_class_name</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,10 +11,10 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_get_db_parameter</methodname>
<methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns the CUBRID database parameters or it returns FALSE on failure. It returns an array with the values for the following parameters:
This function returns the CUBRID database parameters or it returns FALSE on failure. It returns an associative array with the values for the following parameters:
</para>
<para>
<simplelist>
@ -31,8 +31,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
</varlistentry>
</variablelist>
</para>
@ -41,7 +41,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An array with CUBRID database parameters; on success.
An associative array with CUBRID database parameters; on success.
</para>
<para>
&false; on failure.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_get_server_info</methodname>
<methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns a string that represents the CUBRID server version.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_get</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>attr</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>
@ -43,9 +43,12 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>Content of the requested attribute, when process is successful;</para>
<para>&false; when process is unsuccessful (If error occurs to distinguish empty string from NULL, then it prints the warning message. You can check the error by using <function>cubrid_error_code</function>)</para>
<para>When <parameter>attr</parameter> is set with string data type, the result is returned as a string; when <parameter>attr</parameter> is set with array data type (0-based numerical array), then the result is returned in associative array. When <parameter>attr</parameter> is omitted, then all attributes are received in array form.</para>
<para>
Content of the requested attribute, when process is successful; When <parameter>attr</parameter> is set with string data type, the result is returned as a string; when <parameter>attr</parameter> is set with array data type (0-based numerical array), then the result is returned in associative array. When <parameter>attr</parameter> is omitted, then all attributes are received in array form.
</para>
<para>
&false; when process is unsuccessful or result is NULL (If error occurs to distinguish empty string from NULL, then it prints the warning message. You can check the error by using <function>cubrid_error_code</function>)
</para>
</refsect1>
<refsect1 role="examples">

View file

@ -12,7 +12,7 @@
<methodsynopsis>
<type>array</type><methodname>cubrid_insert_id</methodname>
<methodparam><type>string</type><parameter>class_name</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>connection_handle</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns an array with the IDs generated for the <constant>AUTO_INCREMENT</constant> columns that were updated by the previous INSERT query. It returns an array with all the <constant>AUTO_INCREMENT</constant> columns and their values. It returns 0 if the previous query does not generate new rows, or it returns FALSE on failure.
@ -28,8 +28,8 @@
<listitem><para>The name of the class (table) that was used in the last INSERT statement for which the auto increment values are retrieved.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>connection_handle</parameter></term>
<listitem><para>The connection handle previously obtained by a call to <function>cubrid_connect</function>.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>The connection identifier previously obtained by a call to <function>cubrid_connect</function>.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -38,7 +38,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An array with all the AUTO_INCREMENT columns and their values, on success.
An associative array with all the AUTO_INCREMENT columns and their values, on success.
</para>
<para>
0, if the previous query does not generate new rows.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_is_instance</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>cubrid_list_dbs</methodname>
<methodparam><type>int</type><parameter>link_identifier</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns an array with the list of all existing Cubrid databases.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed. </para></listitem>
</varlistentry>
</variablelist>
</para>
@ -33,7 +33,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An array with all existing Cubrid databases; on success.
An numeric array with all existing Cubrid databases; on success.
</para>
<para>
&false; on failure.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_load_from_glo</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>file_name</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_lock_read</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_lock_write</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,12 +11,12 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_move_cursor</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>origin</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_move_cursor</function> function is used to move the current cursor location of <parameter>req_handle</parameter> by the value set in the <parameter>offset</parameter> argument, to the direction set in the <parameter>origin</parameter> argument. To set the <parameter>origin</parameter> argument, you can use CUBRID_CURSOR_FIRST for the first part of the result, CUBRID_CURSOR_CURRENT for the current location of the result, or CUBRID_CURSOR_LAST for the last part of the result. If <parameter>origin</parameter> argument is not explicitly designated, then the function uses CUBRID_CURSOR_CURRENT as its default value.
The <function>cubrid_move_cursor</function> function is used to move the current cursor location of <parameter>req_identifier</parameter> by the value set in the <parameter>offset</parameter> argument, to the direction set in the <parameter>origin</parameter> argument. To set the <parameter>origin</parameter> argument, you can use CUBRID_CURSOR_FIRST for the first part of the result, CUBRID_CURSOR_CURRENT for the current location of the result, or CUBRID_CURSOR_LAST for the last part of the result. If <parameter>origin</parameter> argument is not explicitly designated, then the function uses CUBRID_CURSOR_CURRENT as its default value.
</para>
<para>
If the value of cursor movement range goes over the valid limit, then the cursor moves to the next location after the valid range for the cursor. For example, if you move 20 units in the result with the size of 10, then the cursor will move to 11th place and return CUBRID_NO_MORE_DATA.
@ -28,8 +28,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>offset</parameter></term>

View file

@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_new_glo</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>string</type><methodname>cubrid_new_glo</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>class_name</parameter></methodparam>
<methodparam><type>string</type><parameter>file_name</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>class_name</parameter></term>
@ -59,7 +59,8 @@
<?php
$oid = cubrid_new_glo ($con, "glo", "input.jpg");
if ($oid){
$req = cubrid_execute ($con, "insert into person(image) values ($oid)");
// the type of column "image" is "object"
$req = cubrid_execute ($con, "insert into person(image) values($oid)");
if ($req) {
echo "image inserted successfully";
cubrid_close_request ($req);

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_num_cols</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_num_cols</function> function is used to get the number of columns from the query result. It can only be used when the query executed is a select sentence.
@ -23,8 +23,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -36,7 +36,7 @@
Number of columns, when process is successful.
</para>
<para>
-1, in case of error.
-1, if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_num_fields</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</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>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -36,7 +36,7 @@
Number of columns, on success.
</para>
<para>
&false; on failure.
-1 if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -11,10 +11,13 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_num_rows</methodname>
<methodparam><type>int</type><parameter>req_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_num_rows</function> function is used to get the number of rows from the query result. You can use it only when the query executed is a select sentence. When you want to know such value for INSERT, UPDATE, or DELETE query, you have to use the <function>cubrid_affected_rows</function> function. The <function>cubrid_num_rows</function> function can only be used for synchronous query; it returns 0 when it is used for asynchronous query.
The <function>cubrid_num_rows</function> function is used to get the number of rows from the query result. You can use it only when the query executed is a select sentence. When you want to know such value for INSERT, UPDATE, or DELETE query, you have to use the <function>cubrid_affected_rows</function> function.
</para>
Note: The <function>cubrid_num_rows</function> function can only be used for synchronous query; it returns 0 when it is used for asynchronous query.
<para>
</para>
</refsect1>
@ -23,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>req_handle</parameter></term>
<listitem><para>Request handle.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>Request identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -39,7 +42,7 @@
0 when the query was done in async mode.
</para>
<para>
-1, in case of error.
-1, if SQL sentence is not SELECT.
</para>
</refsect1>

View file

@ -10,13 +10,16 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_prepare</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>resource</type><methodname>cubrid_prepare</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>prepare_stmt</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_prepare</function> function is a sort of API which represents SQL statements compiled previously to a given connection handle. This pre-compiled SQL statement will be included in the <function>cubrid_prepare</function>. Accccordingly, you can use this statement effectively to execute several times repeatedly or to process long data. Only a single statement can be used and a parameter may put a question mark (?) to appropriate area in the SQL statement. Add a parameter when you bind a value in the VALUES cluse of INSERT statement or in the WHERE clause. Note that it is allowed to bind a value to a MARK(?) by the <function>cubrid_bind</function> only.
The <function>cubrid_prepare</function> function is a sort of API which represents SQL statements compiled previously to a given connection handle. This pre-compiled SQL statement will be included in the <function>cubrid_prepare</function>.
</para>
<para>
Accccordingly, you can use this statement effectively to execute several times repeatedly or to process long data. Only a single statement can be used and a parameter may put a question mark (?) to appropriate area in the SQL statement. Add a parameter when you bind a value in the VALUES cluse of INSERT statement or in the WHERE clause. Note that it is allowed to bind a value to a MARK(?) by the <function>cubrid_bind</function> only.
</para>
</refsect1>
@ -25,8 +28,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>prepare_stmt</parameter></term>
@ -43,7 +46,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Request handle, if process is successful;
Request identifier, if process is successful;
</para>
<para>
&false;, if process is unsuccessful.

View file

@ -11,13 +11,16 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_put</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>attr</parameter></methodparam>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
The <function>cubrid_put</function> function is used to update an attribute of the instance of the given <parameter>oid</parameter>. You can update single attribute by using string data type to set <parameter>attr</parameter>. In such case, you can use integer, float-point, or string type data for the <parameter>value</parameter> argument. To update multiple number of attributes, you can disregard the <parameter>attr</parameter> argument, and set <parameter>value</parameter> argument with associative array data type. However, you cannot use the method for attribute of collection type. You have to use APIs related to collection type (<function>cubrid_set_add</function>, <function>cubrid_set_drop</function>, etc) when you want to use <function>cubrid_put</function> on collection typed attribute.
The <function>cubrid_put</function> function is used to update an attribute of the instance of the given <parameter>oid</parameter>.
</para>
<para>
You can update single attribute by using string data type to set <parameter>attr</parameter>. In such case, you can use integer, float-point, or string type data for the <parameter>value</parameter> argument. To update multiple number of attributes, you can disregard the <parameter>attr</parameter> argument, and set <parameter>value</parameter> argument with associative array data type. However, you cannot use the method for attribute of collection type. You have to use APIs related to collection type (<function>cubrid_set_add</function>, <function>cubrid_set_drop</function>, etc) when you want to use <function>cubrid_put</function> on collection typed attribute.
</para>
</refsect1>
@ -26,8 +29,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -12,10 +12,10 @@
<methodsynopsis>
<type>string</type><methodname>cubrid_real_escape_string</methodname>
<methodparam><type>string</type><parameter>unescaped_string</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function returns the escaped string version of the given string. It pre-appends backslashes to the following characters: <constant>\x00</constant>, <constant>\n</constant>, <constant>\r</constant>, <constant>\</constant>, <constant>'</constant>, <constant>"</constant>. This function must always (with few exceptions) be used to make data safe before sending a query to CUBRID.
This function returns the escaped string version of the given string. It pre-appends backslashes to the following characters: <constant>'</constant>. This function must always (with few exceptions) be used to make data safe before sending a query to CUBRID.
</para>
</refsect1>
@ -28,8 +28,8 @@
<listitem><para>The string that is to be escaped.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_result</methodname>
<methodparam><type>int</type><parameter>result</parameter></methodparam>
<methodparam><type>resource</type><parameter>req_identifier</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>result</parameter></term>
<listitem><para>This is the result handle that is evaluated. This result is obtained by a call to <function>cubrid_execute</function>.</para></listitem>
<term><parameter>req_identifier</parameter></term>
<listitem><para>This is the request identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>row</parameter></term>
@ -43,7 +43,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Value of a specific field, on success.
Value of a specific field, on success (NULL if value if null).
</para>
<para>
&false; on failure.

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_rollback</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<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.
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
</variablelist>
</para>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_save_to_glo</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>file_name</parameter></methodparam>
</methodsynopsis>
@ -25,8 +25,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -10,8 +10,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>cubrid_schema</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<type>array</type><methodname>cubrid_schema</methodname>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>int</type><parameter>schema_type</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>attr_name</parameter></methodparam>
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>schema_type</parameter></term>
@ -48,7 +48,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
array containing the schema information, when process is successful;
Array containing the schema information, when process is successful;
</para>
<para>
-1, when process is unsuccessful

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_send_glo</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
</methodsynopsis>
<para>
@ -24,8 +24,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_seq_drop</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
<methodparam><type>int</type><parameter>index</parameter></methodparam>
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_seq_insert</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
<methodparam><type>int</type><parameter>index</parameter></methodparam>
@ -27,8 +27,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_seq_put</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
<methodparam><type>int</type><parameter>index</parameter></methodparam>
@ -27,8 +27,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_set_add</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
<methodparam><type>string</type><parameter>set_element</parameter></methodparam>
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>cubrid_set_drop</methodname>
<methodparam><type>int</type><parameter>conn_handle</parameter></methodparam>
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
<methodparam><type>string</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>attr_name</parameter></methodparam>
<methodparam><type>string</type><parameter>set_element</parameter></methodparam>
@ -26,8 +26,8 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>conn_handle</parameter></term>
<listitem><para>Connection handle.</para></listitem>
<term><parameter>conn_identifier</parameter></term>
<listitem><para>Connection identifier.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>oid</parameter></term>

View file

@ -12,7 +12,7 @@
<methodsynopsis>
<type>resource</type><methodname>cubrid_unbuffered_query</methodname>
<methodparam><type>string</type><parameter>query</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>link_identifier</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>conn_identifier</parameter></methodparam>
</methodsynopsis>
<para>
This function performs a query without fetching the results into memory.
@ -31,8 +31,8 @@
<listitem><para>A SQL query.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>link_identifier</parameter></term>
<listitem><para>The CUBRID connection. If the link 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. If the connection identifier is not specified, the last link opened by <function>cubrid_connect</function> is assumed.</para></listitem>
</varlistentry>
</variablelist>
</para>
@ -41,7 +41,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
For SELECT, SHOW, DESCRIBE or EXPLAIN statements returns a resource on success.
For SELECT, SHOW, DESCRIBE or EXPLAIN statements returns a connection identifier resource on success.
</para>
<para>
For other type of SQL statements, UPDATE, DELETE, DROP, etc, returns &true; on success.

View file

@ -6,8 +6,8 @@
<section xml:id="cubrid.requirements" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.required;
<para>
In order to have these functions available, you must install PHP API for CUBRID (<link xlink:href="&url.cubrid.php.api;">CUBRID PHP API</link>).
<para>
In order to have these functions available, you must install CUBRID, and compile CUBRID PHP Library with CUBRID support.
</para>
</section>
@ -16,41 +16,27 @@
<section xml:id="cubrid.configuration">
&reftitle.runtime;
<para>
Edit the php.ini file and add following text:
</para>
<para>
<programlisting>
[CUBRID]
cubrid.err_path = C:\PHP\CUBRID
;for Linux, cubrid.err_path = /home/cubrid/CUBRID/msg
</programlisting>
</para>
<para>
Here's a short explanation:
</para>
<para>
<variablelist>
<varlistentry>
<term>
<parameter>cubrid.err_path</parameter>
<type />
</term>
<listitem>
<para>
The path to the folder where <parameter>cubrid_err.msg</parameter> file can be found. This file contains the error messages that CUBRID uses in case of some errors.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
There is no runtime configuration now.
</para>
</section>
<section xml:id="cubrid.resources">
&reftitle.resources;
<para>
There are two resource types used in the CUBRID. The first one is the link identifier for a database connection, the second a resource which holds the result of a query.
There are two resource types used in the CUBRID. The first one is the link identifier for a database connection, the second a resource which holds the result of a query.
</para>
<section xml:id="cubrid.resources.connection_identifier">
<title>connection identifier</title>
<para>
A connection identifier returned by <function>cubrid_connect</function> and <function>cubrid_connect_with_url</function>.
</para>
</section>
<section xml:id="cubrid.resources.request_identifier">
<title>request identifier</title>
<para>
A request identifier returned by <function>cubrid_prepare</function> and <function>cubrid_execute</function>.
</para>
</section>
</section>
</chapter>

View file

@ -8,70 +8,71 @@
considered irrelevant so is not listed here.
-->
<versions>
<function name='cubrid' from='PHP 4, PHP 5'/>
<function name='cubrid_affected_rows' from='PHP 4, PHP 5'/>
<function name='cubrid_bind' from='PHP 4, PHP 5'/>
<function name='cubrid_close_prepare' from='PHP 4, PHP 5'/>
<function name='cubrid_close_request' from='PHP 4, PHP 5'/>
<function name='cubrid_col_get' from='PHP 4, PHP 5'/>
<function name='cubrid_col_size' from='PHP 4, PHP 5'/>
<function name='cubrid_column_names' from='PHP 4, PHP 5'/>
<function name='cubrid_column_types' from='PHP 4, PHP 5'/>
<function name='cubrid_commit' from='PHP 4, PHP 5'/>
<function name='cubrid_connect' from='PHP 4, PHP 5'/>
<function name='cubrid_current_oid' from='PHP 4, PHP 5'/>
<function name='cubrid_data_seek' from='PHP 4, PHP 5'/>
<function name='cubrid_disconnect' from='PHP 4, PHP 5'/>
<function name='cubrid_drop' from='PHP 4, PHP 5'/>
<function name='cubrid_error_code_facility' from='PHP 4, PHP 5'/>
<function name='cubrid_error_code' from='PHP 4, PHP 5'/>
<function name='cubrid_error_msg' from='PHP 4, PHP 5'/>
<function name='cubrid_execute' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch_assoc' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch_field' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch_lengths' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch_object' from='PHP 4, PHP 5'/>
<function name='cubrid_fetch_row' from='PHP 4, PHP 5'/>
<function name='cubrid_field_flags' from='PHP 4, PHP 5'/>
<function name='cubrid_field_len' from='PHP 4, PHP 5'/>
<function name='cubrid_field_name' from='PHP 4, PHP 5'/>
<function name='cubrid_field_seek' from='PHP 4, PHP 5'/>
<function name='cubrid_field_table' from='PHP 4, PHP 5'/>
<function name='cubrid_field_type' from='PHP 4, PHP 5'/>
<function name='cubrid_free_result' from='PHP 4, PHP 5'/>
<function name='cubrid_get' from='PHP 4, PHP 5'/>
<function name='cubrid_get_charset' from='PHP 4, PHP 5'/>
<function name='cubrid_get_class_name' from='PHP 4, PHP 5'/>
<function name='cubrid_get_client_info' from='PHP 4, PHP 5'/>
<function name='cubrid_get_db_parameter' from='PHP 4, PHP 5'/>
<function name='cubrid_get_server_info' from='PHP 4, PHP 5'/>
<function name='cubrid_insert_id' from='PHP 4, PHP 5'/>
<function name='cubrid_is_instance' from='PHP 4, PHP 5'/>
<function name='cubrid_list_dbs' from='PHP 4, PHP 5'/>
<function name='cubrid_load_from_glo' from='PHP 4, PHP 5'/>
<function name='cubrid_lock_read' from='PHP 4, PHP 5'/>
<function name='cubrid_lock_write' from='PHP 4, PHP 5'/>
<function name='cubrid_move_cursor' from='PHP 4, PHP 5'/>
<function name='cubrid_new_glo' from='PHP 4, PHP 5'/>
<function name='cubrid_num_cols' from='PHP 4, PHP 5'/>
<function name='cubrid_num_fields' from='PHP 4, PHP 5'/>
<function name='cubrid_num_rows' from='PHP 4, PHP 5'/>
<function name='cubrid_prepare' from='PHP 4, PHP 5'/>
<function name='cubrid_put' from='PHP 4, PHP 5'/>
<function name='cubrid_real_escape_string' from='PHP 4, PHP 5'/>
<function name='cubrid_result' from='PHP 4, PHP 5'/>
<function name='cubrid_rollback' from='PHP 4, PHP 5'/>
<function name='cubrid_save_to_glo' from='PHP 4, PHP 5'/>
<function name='cubrid_schema' from='PHP 4, PHP 5'/>
<function name='cubrid_send_glo' from='PHP 4, PHP 5'/>
<function name='cubrid_seq_drop' from='PHP 4, PHP 5'/>
<function name='cubrid_seq_insert' from='PHP 4, PHP 5'/>
<function name='cubrid_seq_put' from='PHP 4, PHP 5'/>
<function name='cubrid_set_add' from='PHP 4, PHP 5'/>
<function name='cubrid_set_drop' from='PHP 4, PHP 5'/>
<function name='cubrid_unbuffered_query' from='PHP 4, PHP 5'/>
<function name='cubrid_version' from='PHP 4, PHP 5'/>
<function name='cubrid' from='PHP 5'/>
<function name='cubrid_affected_rows' from='PHP 5'/>
<function name='cubrid_bind' from='PHP 5'/>
<function name='cubrid_close_prepare' from='PHP 5'/>
<function name='cubrid_close_request' from='PHP 5'/>
<function name='cubrid_col_get' from='PHP 5'/>
<function name='cubrid_col_size' from='PHP 5'/>
<function name='cubrid_column_names' from='PHP 5'/>
<function name='cubrid_column_types' from='PHP 5'/>
<function name='cubrid_commit' from='PHP 5'/>
<function name='cubrid_connect' from='PHP 5'/>
<function name='cubrid_connect-with-url' from='PHP 5'/>
<function name='cubrid_current_oid' from='PHP 5'/>
<function name='cubrid_data_seek' from='PHP 5'/>
<function name='cubrid_disconnect' from='PHP 5'/>
<function name='cubrid_drop' from='PHP 5'/>
<function name='cubrid_error_code_facility' from='PHP 5'/>
<function name='cubrid_error_code' from='PHP 5'/>
<function name='cubrid_error_msg' from='PHP 5'/>
<function name='cubrid_execute' from='PHP 5'/>
<function name='cubrid_fetch' from='PHP 5'/>
<function name='cubrid_fetch_assoc' from='PHP 5'/>
<function name='cubrid_fetch_field' from='PHP 5'/>
<function name='cubrid_fetch_lengths' from='PHP 5'/>
<function name='cubrid_fetch_object' from='PHP 5'/>
<function name='cubrid_fetch_row' from='PHP 5'/>
<function name='cubrid_field_flags' from='PHP 5'/>
<function name='cubrid_field_len' from='PHP 5'/>
<function name='cubrid_field_name' from='PHP 5'/>
<function name='cubrid_field_seek' from='PHP 5'/>
<function name='cubrid_field_table' from='PHP 5'/>
<function name='cubrid_field_type' from='PHP 5'/>
<function name='cubrid_free_result' from='PHP 5'/>
<function name='cubrid_get' from='PHP 5'/>
<function name='cubrid_get_charset' from='PHP 5'/>
<function name='cubrid_get_class_name' from='PHP 5'/>
<function name='cubrid_get_client_info' from='PHP 5'/>
<function name='cubrid_get_db_parameter' from='PHP 5'/>
<function name='cubrid_get_server_info' from='PHP 5'/>
<function name='cubrid_insert_id' from='PHP 5'/>
<function name='cubrid_is_instance' from='PHP 5'/>
<function name='cubrid_list_dbs' from='PHP 5'/>
<function name='cubrid_load_from_glo' from='PHP 5'/>
<function name='cubrid_lock_read' from='PHP 5'/>
<function name='cubrid_lock_write' from='PHP 5'/>
<function name='cubrid_move_cursor' from='PHP 5'/>
<function name='cubrid_new_glo' from='PHP 5'/>
<function name='cubrid_num_cols' from='PHP 5'/>
<function name='cubrid_num_fields' from='PHP 5'/>
<function name='cubrid_num_rows' from='PHP 5'/>
<function name='cubrid_prepare' from='PHP 5'/>
<function name='cubrid_put' from='PHP 5'/>
<function name='cubrid_real_escape_string' from='PHP 5'/>
<function name='cubrid_result' from='PHP 5'/>
<function name='cubrid_rollback' from='PHP 5'/>
<function name='cubrid_save_to_glo' from='PHP 5'/>
<function name='cubrid_schema' from='PHP 5'/>
<function name='cubrid_send_glo' from='PHP 5'/>
<function name='cubrid_seq_drop' from='PHP 5'/>
<function name='cubrid_seq_insert' from='PHP 5'/>
<function name='cubrid_seq_put' from='PHP 5'/>
<function name='cubrid_set_add' from='PHP 5'/>
<function name='cubrid_set_drop' from='PHP 5'/>
<function name='cubrid_unbuffered_query' from='PHP 5'/>
<function name='cubrid_version' from='PHP 5'/>
</versions>
<!-- Keep this comment at the end of the file
@ -93,4 +94,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->