sqlkata / querybuilder

SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
https://sqlkata.com
MIT License
3.06k stars 499 forks source link

Query is generated twice #675

Closed superrnovae closed 1 year ago

superrnovae commented 1 year ago

Hello !

When I create a Query with
var query = factory.Query("MyTable")

the resulting query, when executed, logs the following command

SELECT * FROM [MyTable]
SELECT * FROM [MyTable]

that will throw an exception due to provider not supporting multiple result sets.

It was working fine for a week, and suddenly it started failing.

Package version is 3.0.0-beta

UPD: I can't reproduce it in a new console project. This is weird.