1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Set correctly the connection attribute ATTR_QUOTE_IDENTIFIER

This commit is contained in:
jackbravo 2007-08-09 19:23:44 +00:00
parent 9a4f9e2768
commit 0eb8a42d00

View File

@ -74,10 +74,10 @@ Delimited identifiers are known to generally work correctly under the following
* Sqlite * Sqlite
* Firebird * Firebird
When using the {{quote_identifiers}} option, all of the field identifiers will be automatically quoted in the resulting SQL statements: When using the {{ATTR_QUOTE_IDENTIFIER}} option, all of the field identifiers will be automatically quoted in the resulting SQL statements:
<code type="php"> <code type="php">
$conn->setAttribute('quote_identifiers', true); $conn->setAttribute(Doctrine::ATTR_QUOTE_IDENTIFIER, true);
</code> </code>
will result in a SQL statement that all the field names are quoted with the backtick '`' operator (in MySQL). will result in a SQL statement that all the field names are quoted with the backtick '`' operator (in MySQL).