Skip to content

Commit 0568b7b

Browse files
Copilotjefim
andcommitted
Bump version to 2.0.0 and update CHANGELOG.md
Co-authored-by: jefim <1387820+jefim@users.noreply.github.com>
1 parent 4f62ec1 commit 0568b7b

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Frends.PostgreSQL.ExecuteQuery/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [2.0.0] - 2025-12-02
4+
### Added
5+
- Added `ExecuteType` parameter to Input class with options: Auto (default), ExecuteReader, and NonQuery.
6+
- Added support for INSERT/UPDATE/DELETE statements with RETURNING clause to return actual column values instead of just AffectedRows.
7+
- Added `ExecuteTypes` enum to provide explicit control over query execution behavior.
8+
9+
### Changed
10+
- Modified query execution logic to use ExecuteType parameter instead of simple string parsing.
11+
- Auto mode now checks reader.FieldCount to determine if data is returned, providing more reliable detection than keyword matching.
12+
- Transaction handling now only applies to write operations (Auto and NonQuery modes), not read-only queries (ExecuteReader mode).
13+
14+
### Fixed
15+
- Fixed issue where INSERT/UPDATE/DELETE with RETURNING clause only returned AffectedRows instead of the actual returned column values.
16+
317
## [1.1.0] - 2024-08-23
418
### Changed
519
- Updated the Newtonsoft.Json package to version 13.0.3 and the Npgsql package to version 8.0.3.

Frends.PostgreSQL.ExecuteQuery/Frends.PostgreSQL.ExecuteQuery/Frends.PostgreSQL.ExecuteQuery.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<IncludeSource>true</IncludeSource>
88
<AssemblyName>Frends.PostgreSQL.ExecuteQuery</AssemblyName>
99
<RootNamespace>Frends.PostgreSQL.ExecuteQuery</RootNamespace>
10-
<Version>1.1.0</Version>
10+
<Version>2.0.0</Version>
1111
<Authors>Frends</Authors>
1212
<Copyright>Frends</Copyright>
1313
<Company>Frends</Company>

0 commit comments

Comments
 (0)