Skip to content

Commit 77dc01c

Browse files
committed
docs: add warning in 'to_sql'
1 parent c00298a commit 77dc01c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/io/sql.py

+5
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,11 @@ def to_sql(
750750
"""
751751
Write records stored in a DataFrame to a SQL database.
752752
753+
.. warning::
754+
755+
This method can run arbitrary code which can make you vulnerable to code
756+
injection if you pass user input to the `name` argument.
757+
753758
Parameters
754759
----------
755760
frame : DataFrame, Series

0 commit comments

Comments
 (0)