Skip to content

Update generates wrong SQL when running parallel #298

@MitarNikolic

Description

@MitarNikolic

Hello everyone,

I created a XUnit test which uses DapperExtensions to update two different tables in the database.
This works perfectly fine as long as you execute the two updates one after another.
As soon as you try running them parallel, tho it generates the following exception:

System.Data.SqlClient.SqlException
Must declare the scalar variable "@u_2".

Looking at the SQL in the server profiler of "Microsoft SQL-Server management studio" you can see that wrong SQL gets generated.

Kind regards
Mitar

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions