Octonica / ClickHouseClient

ClickHouse .NET Core driver
Apache License 2.0
138 stars 23 forks source link

[Compat] Don't generate error for non-data ExecuteReader queries #75

Open MaceWindu opened 1 year ago

MaceWindu commented 1 year ago

Currently it generates There is no table in the server's response. error (e.g. for DML query like CREATE TABLE), which doesn't match behavior of other ADO.NET providers where they return empty data reader.

Real world example:

This behavior is not compatible with LINQPad raw SQL functionality as it use ExecuteReader API internally for all raw SQL queries:

MaceWindu commented 1 year ago

BTW, this should useful for compat testing https://github.com/dotnet/runtime/issues/17004#issuecomment-346109151