DapperLib / DapperAOT

Build time tools in the flavor of Dapper
Other
349 stars 19 forks source link

[DAP025] False positive: SELECT INTO #79

Closed dotTrench closed 8 months ago

dotTrench commented 8 months ago

Describe the bug When using SqlConnection and selecting data from one table into another using ExecuteAsync a false DAP025 warning is triggered.

Dapper.Advisor: 1.0.10

To Reproduce

// DAP025: The command has a query that will be ignored
public static async Task SelectInto(SqlConnection connection) =>
    await connection.ExecuteAsync("SELECT [Test] INTO #MyTemporaryTable FROM MyTable");
mgravell commented 8 months ago

Huh, I thought we were handling that one. Great catch, should be a one line fix, probably tomorrow morning.

mgravell commented 8 months ago

https://github.com/DapperLib/DapperAOT/releases/tag/1.0.16