svn: /phpdoc/en/trunk/reference/pdo_4d/ dsn.xml examples.xml sql4d.xml
| From: | Damien Seguy | Date: | Wed, 16 Dec 2009 13:28:05 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pdo_4d/ dsn.xml examples.xml sql4d.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5670@lists.php.net to get a copy of this message | ||
dams Wed, 16 Dec 2009 13:28:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292207
Log:
remove example and quick fix
Changed paths:
U phpdoc/en/trunk/reference/pdo_4d/dsn.xml
U phpdoc/en/trunk/reference/pdo_4d/examples.xml
U phpdoc/en/trunk/reference/pdo_4d/sql4d.xml
Modified: phpdoc/en/trunk/reference/pdo_4d/dsn.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_4d/dsn.xml 2009-12-16 13:24:11 UTC (rev 292206)
+++ phpdoc/en/trunk/reference/pdo_4d/dsn.xml 2009-12-16 13:28:05 UTC (rev 292207)
@@ -62,7 +62,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><constant>charsset</constant></term>
+ <term><constant>charset</constant></term>
<listitem>
<para>
The 4D character set.
Modified: phpdoc/en/trunk/reference/pdo_4d/examples.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_4d/examples.xml 2009-12-16 13:24:11 UTC (rev 292206)
+++ phpdoc/en/trunk/reference/pdo_4d/examples.xml 2009-12-16 13:28:05 UTC (rev 292207)
@@ -140,64 +140,6 @@
<refsect1 role="description">
<para>
<example>
- <title>Executing a LEFT JOIN in 4D</title>
- <para>
- This example shows how to execute a LEFT JOIN SQL query, with 4D.
- </para>
- <programlisting role="php">
-<![CDATA[
-<?php
-$dsn = '4D:host=localhost;charset=UTF-8';
-$user = 'test';
-$pass = 'test';
-
-// Connection to the 4D SQL server
-$db = new PDO_4D($dsn, $user, $pass);
-
-/* The SQL query is the equivalent of the following LEFT JOIN
-SELECT
- classtypes.name,
- test.id AS id,
- test.val AS val
-FROM
- test
-LEFT JOIN
- classtypes
-ON
- test.classtype=classtypes.id
-*/
-
-// Using SQL-89 Notation
-$query = <<<SQL
-SELECT
- classtypes.name,
- test.id AS id,
- test.val AS val
-FROM
- test,
- classtypes
-WHERE
- test.classtype=classtypes.id
- OR test.classtype IS NULL
-SQL;
-
-$stmt = $db->prepare($query);
-$stmt->execute();
-
-print_r($stmt->fetchAll());
-
-$stmt = null;
-$db = null;
-?>
-]]>
- </programlisting>
- </example>
- </para>
- </refsect1>
-
- <refsect1 role="description">
- <para>
- <example>
<title>Escaping 4D table names</title>
<para>
This examples illustrates how to escape characters in a
Modified: phpdoc/en/trunk/reference/pdo_4d/sql4d.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_4d/sql4d.xml 2009-12-16 13:24:11 UTC (rev 292206)
+++ phpdoc/en/trunk/reference/pdo_4d/sql4d.xml 2009-12-16 13:28:05 UTC (rev 292207)
@@ -23,8 +23,7 @@
<tgroup cols="3">
<thead>
<row>
- <entry>Ch
- aracteristics</entry>
+ <entry>Characteristics</entry>
<entry>Alternative</entry>
<entry>Note</entry>
</row>
@@ -42,7 +41,7 @@
</row>
<row>
<entry>LEFT JOIN</entry>
- <entry>Use the SQL 89 notation (see example #3 PDO_4D)</entry>
+ <entry>Use the SQL 89 notation</entry>
<entry></entry>
</row>
<row>
@@ -61,8 +60,9 @@
<entry>Unsupported</entry>
</row>
<row>
- <entry><function>PDO::execute($row)</function> only works if all the
table's column are of type <literal>TEXT</literal></entry>
- <entry>Use the prepared statements, and use the right types.</entry>
+ <entry><function>PDO::execute($row)</function></entry>
+ <entry>Use the prepared statements, and use the right types. It will also
+ only works if all the table's column are of type
<literal>TEXT</literal>.</entry>
<entry>The PDO extension cast all values through execute() as string, and expect the
SQL database to parse the values.</entry>
</row>
<row>