You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think the database/sql model has any guarantee that subsequent calls to ExecContext or similar methods would reuse the same physical connection.
I think you need to use db.Conn(context.Background()) to get a reusable physical connection.
Describe the bug
use
USE mydb
can not switchmydb
,but use sqlcmd can switch
To Reproduce
Include a complete code listing that we can run to reproduce the issue.
but get dbname not is mydb,
i set
Expected behavior
A clear and concise description of what you expected to happen.
Further technical details
SQL Server version: SQL Server 2019
Operating system: Docker container
Table schema
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: