File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1473,7 +1473,13 @@ private byte[] CreateConnectionAttributes(string? programName)
1473
1473
attributesWriter . WriteLengthEncodedString ( "_client_name" ) ;
1474
1474
attributesWriter . WriteLengthEncodedString ( "MySqlConnector" ) ;
1475
1475
attributesWriter . WriteLengthEncodedString ( "_client_version" ) ;
1476
- attributesWriter . WriteLengthEncodedString ( typeof ( ServerSession ) . GetTypeInfo ( ) . Assembly . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ! . InformationalVersion ) ;
1476
+
1477
+ var version = typeof ( ServerSession ) . GetTypeInfo ( ) . Assembly . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ! . InformationalVersion ;
1478
+ var plusIndex = version . IndexOf ( '+' ) ;
1479
+ if ( plusIndex != - 1 )
1480
+ version = version . Substring ( 0 , plusIndex ) ;
1481
+ attributesWriter . WriteLengthEncodedString ( version ) ;
1482
+
1477
1483
try
1478
1484
{
1479
1485
Utility . GetOSDetails ( out var os , out var osDescription , out var architecture ) ;
You can’t perform that action at this time.
0 commit comments