Set correctly the connection attribute ATTR_QUOTE_IDENTIFIER
This commit is contained in:
parent
9a4f9e2768
commit
0eb8a42d00
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user