mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-11 19:29:52 -04:00
Mention that extract.field is used as sql string
Change-Id: Ieb32e298e8a1df3a31bf3a6e26b1aca381ef7a4f
This commit is contained in:
@@ -1159,6 +1159,9 @@ def extract(field: str, expr: _ColumnExpressionArgument[Any]) -> Extract:
|
||||
|
||||
:param field: The field to extract.
|
||||
|
||||
.. warning:: This field is used as a literal SQL string.
|
||||
**DO NOT PASS UNTRUSTED INPUT TO THIS STRING**.
|
||||
|
||||
:param expr: A column or Python scalar expression serving as the
|
||||
right side of the ``EXTRACT`` expression.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user