Skip to content

Commit f5b925f

Browse files
committed
Fix SqlValue passthrough and bump version to 1.9.26
1 parent 459afd8 commit f5b925f

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<Authors>vkuttyp</Authors>
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<RepositoryUrl>https://github.com/vkuttyp/CosmoSQLClient-Dotnet</RepositoryUrl>
10-
<Version>1.9.25</Version>
10+
<Version>1.9.26</Version>
1111
</PropertyGroup>
1212
</Project>

src/CosmoSQLClient.Core/SqlValue.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public sealed record DateTimeOffsetV(DateTimeOffset Value) : SqlValue;
4444

4545
private static SqlValue FromBoxed(object v) => v switch
4646
{
47+
SqlValue sv => sv,
4748
bool b => From(b),
4849
byte b => From((int)b),
4950
sbyte b => From((int)b),

src/CosmoSQLClient.MsSql/MsSqlConnection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ private static string BuildParamDeclarations(IReadOnlyList<SqlParameter> paramet
581581
SqlValue.DateTimeOffsetV _ => "DATETIMEOFFSET",
582582
SqlValue.Uuid _ => "UNIQUEIDENTIFIER",
583583
SqlValue.Bytes _ => "VARBINARY(MAX)",
584+
SqlValue.CompressedText _ => "VARBINARY(MAX)",
584585
_ => "NVARCHAR(MAX)"
585586
};
586587

0 commit comments

Comments
 (0)