denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
MIT License
192 stars 53 forks source link

Bulk copy fails if destination column is a SQL keyword #87

Closed LHCGreg closed 6 years ago

LHCGreg commented 6 years ago

If a destination column in a bulk copy using copy_to is a SQL keyword such as User, the operation fails because the INSERT BULK statement becomes invalid.

I'll create a PR with a fix in a minute.