File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2795,6 +2795,12 @@ def to_sql(
2795
2795
Databases supported by SQLAlchemy [1]_ are supported. Tables can be
2796
2796
newly created, appended to, or overwritten.
2797
2797
2798
+ .. warning::
2799
+ The pandas library does not attempt to sanitize inputs provided via a to_sql call.
2800
+ Please refer to the documentation for the underlying database driver to see if it
2801
+ will properly prevent injection, or alternatively be advised of a security risk when
2802
+ executing arbitrary commands in a to_sql call.
2803
+
2798
2804
Parameters
2799
2805
----------
2800
2806
name : str
Original file line number Diff line number Diff line change @@ -750,6 +750,12 @@ def to_sql(
750
750
"""
751
751
Write records stored in a DataFrame to a SQL database.
752
752
753
+ .. warning::
754
+ The pandas library does not attempt to sanitize inputs provided via a to_sql call.
755
+ Please refer to the documentation for the underlying database driver to see if it
756
+ will properly prevent injection, or alternatively be advised of a security risk when
757
+ executing arbitrary commands in a to_sql call.
758
+
753
759
Parameters
754
760
----------
755
761
frame : DataFrame, Series
You can’t perform that action at this time.
0 commit comments