mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
spelling corrections; parameter corrections
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67969 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bb7f96a4d6
commit
b44b427b6a
1 changed files with 24 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.63 $ -->
|
||||
<!-- $Revision: 1.64 $ -->
|
||||
<reference id="ref.pgsql">
|
||||
<title>PostgreSQL functions</title>
|
||||
<titleabbrev>PostgreSQL</titleabbrev>
|
||||
|
@ -38,7 +38,7 @@
|
|||
PostgreSQL database is Open Source product and available without
|
||||
cost. To use PostgreSQL support, you need PostgreSQL 6.5 or
|
||||
later. PostgreSQL 7.0 or later to enable all PostgreSQL module
|
||||
feature. PostgreSQL supports many charactor encoding including
|
||||
feature. PostgreSQL supports many character encoding including
|
||||
multibyte character encoding. The current version and more
|
||||
information about PostgreSQL is available at <ulink
|
||||
url="&url.pgsql;">www.postgresql.org</ulink>.
|
||||
|
@ -54,7 +54,7 @@
|
|||
</para>
|
||||
<para>
|
||||
Not all functions are supported by all builds. It depends on your
|
||||
libpq (The PostgreSQL C Client interface) versoin and how libpq is
|
||||
libpq (The PostgreSQL C Client interface) version and how libpq is
|
||||
compiled. If there is missing function, libpq does not support
|
||||
the feature required for the function.
|
||||
</para>
|
||||
|
@ -65,7 +65,7 @@
|
|||
</para>
|
||||
<para>
|
||||
Since version 6.3 (03/02/1998) PostgreSQL uses unix domain sockets
|
||||
by default. TCP port will not be openned by default. A table is
|
||||
by default. TCP port will not be opened by default. A table is
|
||||
shown below describing these new connection possibilities. This
|
||||
socket will be found in <filename>/tmp/.s.PGSQL.5432</filename>.
|
||||
This option can be enabled with the '-i' flag to
|
||||
|
@ -135,7 +135,7 @@
|
|||
</para>
|
||||
<para>
|
||||
From PostgreSQL 7.1.0, text data type has 1GB as its max
|
||||
size. Older PostgreSQL's text data type is limitted by block
|
||||
size. Older PostgreSQL's text data type is limited by block
|
||||
size. (Default 8KB. Max 32KB defined at compile time)
|
||||
</para>
|
||||
<para>
|
||||
|
@ -298,7 +298,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
new connection will be established, but instead, the connection
|
||||
resource of the already opened connection will be returned. You
|
||||
can have multiple connections to the same database if you use
|
||||
different connection patameters. (i.e. Use different username)
|
||||
different connection parameters. (i.e. Use different username)
|
||||
</para>
|
||||
<para>
|
||||
Syntax supports multiple parameters:
|
||||
|
@ -331,7 +331,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<para>
|
||||
<function>pg_dbname</function> returns the name of the database
|
||||
that the given PostgreSQL <parameter>connection</parameter>
|
||||
resource. It retuns &false;, if <parameter>connection</parameter>
|
||||
resource. It returns &false;, if <parameter>connection</parameter>
|
||||
is not a valid PostgreSQL connection resource.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -486,11 +486,11 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
</para>
|
||||
<para>
|
||||
<parameter>row</parameter> is row (record) number to be
|
||||
retrived. First row is 0.
|
||||
retrieved. First row is 0.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>result_type</parameter> is optional parameter controls
|
||||
how return value is initilized.
|
||||
how return value is initialized.
|
||||
<parameter>result_type</parameter> is a constant and can take the
|
||||
following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH.
|
||||
<function>pg_fetch_array</function> returns associative array
|
||||
|
@ -575,7 +575,7 @@ echo $arr["author"] . " <- array\n";
|
|||
</para>
|
||||
<para>
|
||||
<parameter>result_type</parameter> is optional parameter controls
|
||||
how return value is initilized.
|
||||
how return value is initialized.
|
||||
<parameter>result_type</parameter> is a constant and can take the
|
||||
following values: PGSQL_ASSOC, PGSQL_NUM, and PGSQL_BOTH.
|
||||
<function>pg_fetch_array</function> returns associative array
|
||||
|
@ -741,7 +741,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
<function>pg_fieldisnull</function> test if a field is &null; or
|
||||
not. It returns 1 if the field in the given row is &null;. It
|
||||
returns 0 if the field in the given row is NOT &null;. Field can
|
||||
be specified as colum index (number) or fieldname (string). Row
|
||||
be specified as column index (number) or fieldname (string). Row
|
||||
numbering starts at 0.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -768,7 +768,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
numbering starts from 0.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>pg_filednum</function>.
|
||||
See also <function>pg_fieldnum</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1065,7 +1065,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
object is created always with both read and write
|
||||
access. INV_ARCHIVE has been removed from PostgreSQL itself
|
||||
(version 6.3 and above). It returns large object oid
|
||||
otherwise. It retuns &false;, if an error occurred,
|
||||
otherwise. It returns &false;, if an error occurred,
|
||||
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1238,7 +1238,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
it straight through to the browser after sending all pending
|
||||
headers. Mainly intended for sending binary data like images or
|
||||
sound. It returns number of bytes read. It returns &false;, if an
|
||||
error occured.
|
||||
error occurred.
|
||||
</para>
|
||||
<para>
|
||||
To use the large object (lo) interface, it is necessary to
|
||||
|
@ -1266,7 +1266,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
</funcsynopsis>
|
||||
<para>
|
||||
<function>pg_lounlink</function> deletes a large object with the
|
||||
<parameter>oid</parameter>. It rreturn &true; on success,
|
||||
<parameter>oid</parameter>. It returns &true; on success,
|
||||
otherwise returns &false;.
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1355,7 +1355,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
<para>
|
||||
<function>pg_numrows</function> will return the number of rows in
|
||||
a PostgreSQL <parameter>result</parameter> resource.
|
||||
<parameter>result</parameter> is a qeury result resource returned
|
||||
<parameter>result</parameter> is a query result resource returned
|
||||
by <function>pg_exec</function>. This function will return -1 on
|
||||
error.
|
||||
</para>
|
||||
|
@ -1443,7 +1443,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
the same arguments, no new connection will be established, but
|
||||
instead, the connection resource of the already opened connection
|
||||
will be returned. You can have multiple connections to the same
|
||||
database if you use different connection patameters. (i.e. Use
|
||||
database if you use different connection parameters. (i.e. Use
|
||||
different username)
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1518,7 +1518,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
to the PostgreSQL backend server. This is useful for example for
|
||||
very high-speed inserting of data into a table, initiated by
|
||||
starting a PostgreSQL copy-operation. That final NULL-character
|
||||
is added automatically. It returns &true; if successfull, &false;
|
||||
is added automatically. It returns &true; if successful, &false;
|
||||
otherwise.
|
||||
</para>
|
||||
<note>
|
||||
|
@ -1571,7 +1571,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<function>pg_exec</function>. <parameter>row_number</parameter>
|
||||
is integer. <parameter>field</parameter> is field name(string)
|
||||
or field index (integer). The <parameter>row_number</parameter>
|
||||
and <parameter>field</parameter> sepcify what cell in the table
|
||||
and <parameter>field</parameter> specify what cell in the table
|
||||
of results to return. Row numbering starts from 0. Instead of
|
||||
naming the field, you may use the field index as an unquoted
|
||||
number. Field indices start from 0.
|
||||
|
@ -1627,7 +1627,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<para>
|
||||
This function requires PHP-4.0.3 or higher and PostgreSQL-7.0 or
|
||||
higher. Supported encoding depends on PostgreSQL version. Refer
|
||||
to PostgreSQL manaul for details.
|
||||
to PostgreSQL manual for details.
|
||||
</para>
|
||||
<para>
|
||||
The function used to be called
|
||||
|
@ -1670,7 +1670,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
higher. If libpq is compiled without multibyte encoding support,
|
||||
<function>pg_set_client_encoding</function> always return
|
||||
"SQL_ASCII". Supported encoding depends on PostgreSQL
|
||||
version. Refer to PostgreSQL manaul for details to enable
|
||||
version. Refer to PostgreSQL manual for details to enable
|
||||
multibyte support and encoding supported.
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1863,11 +1863,11 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<funcprototype>
|
||||
<funcdef>bool <function>pg_send_query</function></funcdef>
|
||||
<paramdef>resource <parameter>connection</parameter></paramdef>
|
||||
<paramdef>string <parameter>qeury</parameter></paramdef>
|
||||
<paramdef>string <parameter>query</parameter></paramdef>
|
||||
</funcprototype>
|
||||
<funcprototype>
|
||||
<funcdef>bool <function>pg_send_query</function></funcdef>
|
||||
<paramdef>string <parameter>qeury</parameter></paramdef>
|
||||
<paramdef>string <parameter>query</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
|
@ -1957,7 +1957,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>pg_connection_status</function></funcdef>
|
||||
<paramdef>resource <parameter>connnection</parameter></paramdef>
|
||||
<paramdef>resource <parameter>connection</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue