@@ -21,6 +21,7 @@ public ConnectionSettings(MySqlConnectionStringBuilder csb)
21
21
throw new MySqlException ( "Cannot find Unix Socket at " + csb . Server ) ;
22
22
ConnectionProtocol = MySqlConnectionProtocol . UnixSocket ;
23
23
UnixSocket = Path . GetFullPath ( csb . Server ) ;
24
+ PipeName = "" ;
24
25
}
25
26
else if ( csb . ConnectionProtocol == MySqlConnectionProtocol . NamedPipe )
26
27
{
@@ -40,6 +41,7 @@ public ConnectionSettings(MySqlConnectionStringBuilder csb)
40
41
HostNames = csb . Server . Split ( ',' ) ;
41
42
LoadBalance = csb . LoadBalance ;
42
43
Port = ( int ) csb . Port ;
44
+ PipeName = "" ;
43
45
}
44
46
45
47
UserID = csb . UserID ;
@@ -56,7 +58,7 @@ public ConnectionSettings(MySqlConnectionStringBuilder csb)
56
58
CertificateStoreLocation = csb . CertificateStoreLocation ;
57
59
CertificateThumbprint = csb . CertificateThumbprint ;
58
60
59
- if ( csb . TlsVersion is null )
61
+ if ( csb . TlsVersion . Length == 0 )
60
62
{
61
63
TlsVersions = Utility . GetDefaultSslProtocols ( ) ;
62
64
}
@@ -155,21 +157,21 @@ private static MySqlGuidFormat GetEffectiveGuidFormat(MySqlGuidFormat guidFormat
155
157
public IReadOnlyList < string > ? HostNames { get ; }
156
158
public MySqlLoadBalance LoadBalance { get ; }
157
159
public int Port { get ; }
158
- public string ? PipeName { get ; }
160
+ public string PipeName { get ; }
159
161
public string ? UnixSocket { get ; }
160
162
public string UserID { get ; }
161
163
public string Password { get ; }
162
164
public string Database { get ; }
163
165
164
166
// SSL/TLS Options
165
167
public MySqlSslMode SslMode { get ; }
166
- public string ? CertificateFile { get ; }
167
- public string ? CertificatePassword { get ; }
168
- public string ? CACertificateFile { get ; }
169
- public string ? SslCertificateFile { get ; }
170
- public string ? SslKeyFile { get ; }
168
+ public string CertificateFile { get ; }
169
+ public string CertificatePassword { get ; }
170
+ public string CACertificateFile { get ; }
171
+ public string SslCertificateFile { get ; }
172
+ public string SslKeyFile { get ; }
171
173
public MySqlCertificateStoreLocation CertificateStoreLocation { get ; }
172
- public string ? CertificateThumbprint { get ; }
174
+ public string CertificateThumbprint { get ; }
173
175
public SslProtocols TlsVersions { get ; }
174
176
175
177
// Connection Pooling Options
@@ -186,7 +188,7 @@ private static MySqlGuidFormat GetEffectiveGuidFormat(MySqlGuidFormat guidFormat
186
188
public bool AllowPublicKeyRetrieval { get ; }
187
189
public bool AllowUserVariables { get ; }
188
190
public bool AllowZeroDateTime { get ; }
189
- public string ? ApplicationName { get ; }
191
+ public string ApplicationName { get ; }
190
192
public bool AutoEnlist { get ; }
191
193
public int ConnectionTimeout { get ; }
192
194
public bool ConvertZeroDateTime { get ; }
@@ -200,8 +202,8 @@ private static MySqlGuidFormat GetEffectiveGuidFormat(MySqlGuidFormat guidFormat
200
202
public uint Keepalive { get ; }
201
203
public bool NoBackslashEscapes { get ; }
202
204
public bool PersistSecurityInfo { get ; }
203
- public string ? ServerRsaPublicKeyFile { get ; }
204
- public string ? ServerSPN { get ; }
205
+ public string ServerRsaPublicKeyFile { get ; }
206
+ public string ServerSPN { get ; }
205
207
public bool TreatTinyAsBoolean { get ; }
206
208
public bool UseAffectedRows { get ; }
207
209
public bool UseCompression { get ; }
0 commit comments