Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mssql_python/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2499,7 +2499,7 @@ def nextset(self) -> Union[bool, None]:
return True

# ── Mapping from ODBC connection-string keywords (lowercase, as _parse returns)
def _bulkcopy(
def bulkcopy(
self,
table_name: str,
data: Iterable[Union[Tuple, List]],
Expand Down Expand Up @@ -2579,8 +2579,8 @@ def _bulkcopy(
import mssql_py_core
except ImportError as exc:
raise ImportError(
"Bulk copy requires the mssql_py_core library which is not installed. "
"To install, run: pip install mssql_py_core "
"Bulk copy requires the mssql_py_core library which is not available. "
"This is an unexpected error. "
) from exc

# Validate inputs
Expand Down
2 changes: 1 addition & 1 deletion tests/test_019_bulkcopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_bulkcopy_basic(cursor):

# Perform bulkcopy with auto-mapping (no column_mappings specified)
# Using explicit timeout parameter instead of kwargs
result = cursor._bulkcopy(table_name, data, timeout=60)
result = cursor.bulkcopy(table_name, data, timeout=60)

# Verify result
assert result is not None
Expand Down
Loading