Skip to content

Commit aa3942c

Browse files
Copilotsaurabh500
andcommitted
Remove invalid database check in _bulkcopy
Co-authored-by: saurabh500 <1623701+saurabh500@users.noreply.github.com>
1 parent fbb3a3a commit aa3942c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mssql_python/cursor.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,12 +2627,6 @@ def _bulkcopy(
26272627
if not params.get("server"):
26282628
raise ValueError("SERVER parameter is required in connection string")
26292629

2630-
if not params.get("database"):
2631-
raise ValueError(
2632-
"DATABASE parameter is required in connection string for bulk copy. "
2633-
"Specify the target database explicitly to avoid accidentally writing to system databases."
2634-
)
2635-
26362630
# Translate parsed connection string into the dict py-core expects.
26372631
pycore_context = connstr_to_pycore_params(params)
26382632

0 commit comments

Comments
 (0)