Skip to content

Commit 6b725d8

Browse files
committedJun 29, 2023
Fix
1 parent 1393ff5 commit 6b725d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/NHibernate/SqlCommand/SqlString.cs

+4
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,10 @@ public SqlString Trim()
702702
if (_firstPartIndex < 0) return this;
703703

704704
GetTrimmedIndexes(out var sqlStartIndex, out var length);
705+
706+
if (_sqlStartIndex == sqlStartIndex && _length == length)
707+
return this;
708+
705709
return length > 0
706710
? new SqlString(this, sqlStartIndex, length)
707711
: Empty;

0 commit comments

Comments
 (0)
Please sign in to comment.