cvs: phpdoc /en/reference/pdo_4d sql4d.xml
| From: | Damien Seguy | Date: | Mon, 04 May 2009 10:34:23 +0000 |
| Subject: | cvs: phpdoc /en/reference/pdo_4d sql4d.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3952@lists.php.net to get a copy of this message | ||
dams Mon May 4 10:34:23 2009 UTC
Modified files:
/phpdoc/en/reference/pdo_4d sql4d.xml
Log:
new info
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo_4d/sql4d.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/pdo_4d/sql4d.xml
diff -u phpdoc/en/reference/pdo_4d/sql4d.xml:1.4 phpdoc/en/reference/pdo_4d/sql4d.xml:1.5
--- phpdoc/en/reference/pdo_4d/sql4d.xml:1.4 Wed Apr 29 15:32:38 2009
+++ phpdoc/en/reference/pdo_4d/sql4d.xml Mon May 4 10:34:23 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry xml:id="ref.pdo-4d.sql4d" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
@@ -65,6 +65,26 @@
<entry>Use the prepared statements, and use the right types.</entry>
<entry>The PDO extension cast all values through execute() as string, and expect the
SQL database to parse the values.</entry>
</row>
+ <row>
+ <entry>SELECT NULL FROM TABLE</entry>
+ <entry>It is not allowed to use the NULL constante in the select list</entry>
+ <entry>Do not use NULL constants. Extract them from the table</entry>
+ </row>
+ <row>
+ <entry>SELECT * FROM TABLE WHERE 1</entry>
+ <entry>A constant can't be used in a WHERE clause.</entry>
+ <entry>Use <literal>1 = 1</literal></entry>
+ </row>
+ <row>
+ <entry>SHOW TABLES</entry>
+ <entry>The list of tables, schemas, index, etc. are in 7 4D tables</entry>
+ <entry>
+ Use <literal>_USER_TABLES</literal>,
<literal>_USER_COLUMNS</literal>,
+ <literal>_USER_INDEXES</literal>,
<literal>_USER_CONSTRAINTS</literal>,
+ <literal>_USER_IND_COLUMNS</literal>,
<literal>_USER_CONS_COLUMNS</literal>,
+ and <literal>_USER_SCHEMAS</literal>.
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>