Skip to content

Commit 3715895

Browse files
committed
Fix incorrect doc statement about SQL keyword usage
The note states that reserved keywords cannot be used. This is not true, since 1) not all keywords are implemented by all vendors. For example, "user" is not a keyword in MySQL 2) keywords can be used when they are escaped with backticks
1 parent 77da851 commit 3715895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ start:
173173
174174
.. caution::
175175

176-
``user`` is a reserved keyword in SQL so you cannot use it as table name.
176+
``user`` is a reserved keyword in the SQL standard. If you need to use reserved words, surround them with backticks, *e.g.* ``@ORM\Table(name="`user`")``
177177

178178
b) MongoDB User class
179179
.....................

0 commit comments

Comments
 (0)