jmoiron / sqlx

general purpose extensions to golang's database/sql
http://jmoiron.github.io/sqlx/
MIT License
16.3k stars 1.09k forks source link

Add azuresql driver bind #927

Closed ninjadq closed 5 months ago

ninjadq commented 5 months ago

When accessing azure managed sql server via Azure AD for authentication we need to use azuresql driver

So the behavior of azuresql is the same of sqlserver. But in our default bind doesn't include that driver name

This PR added it to default bind with AT

ninjadq commented 5 months ago

Hi, When I use azuresql as driver. The sql will executed with error like mssql: Incorrect syntax near '?' This PR can fix it.

Could someone help to review and merge it?

yuphing-ong commented 5 months ago

This would also fix my issue #928, thanks