Skip to content

Commit c6094dc

Browse files
committed
Simplify preprocessor test.
1 parent 2732781 commit c6094dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async Task PrepareAsync(IMySqlCommand command, IOBehavior ioBehavior, Can
161161
}
162162

163163
var parameterCount = cachedProcedure.Parameters.Count;
164-
#if NETCOREAPP2_1 || NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
164+
#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1
165165
commandToPrepare = string.Create(commandText.Length + 7 + parameterCount * 2 + (parameterCount == 0 ? 1 : 0), (commandText, parameterCount), static (buffer, state) =>
166166
{
167167
buffer[0] = 'C';

0 commit comments

Comments
 (0)