cvs: peardoc /en/package/database/mdb2 intro-quote.xml
[email protected] ("Lorenzo Alberton")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <cvsquipo1191667519@cvsserver> |
quipo Sat Oct 6 10:45:19 2007 UTC
Modified files:
/peardoc/en/package/database/mdb2 intro-quote.xml
Log:
add warning about quoteIdentifier() and table names with periods (bug #11906).
http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-quote.xml?r1=1.7&r2=1.8&diff_format=u
Index: peardoc/en/package/database/mdb2/intro-quote.xml
diff -u peardoc/en/package/database/mdb2/intro-quote.xml:1.7 peardoc/en/package/database/mdb2/intro-quote.xml:1.8
--- peardoc/en/package/database/mdb2/intro-quote.xml:1.7 Tue Sep 25 16:35:17 2007
+++ peardoc/en/package/database/mdb2/intro-quote.xml Sat Oct 6 10:45:19 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="package.database.mdb2.intro-quote">
<refnamediv>
@@ -87,6 +87,9 @@
it doesn't mean you SHOULD use them. In general, they end up causing way more
problems than they solve. Anyway, it may be necessary when you have a reserved
word as a field name (in this case, we suggest you to change it, if you can).
+ Also, don't use <function>quoteIdentifier</function> if you have a period in
+ the table name itself (which, BTW, is a really bad idea), since it will consider
+ it as a schema.table pair.
</para>
<para>
Some of the internal MDB2 methods generate queries. Enabling the <parameter>quote_identifier</parameter>