File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2424using Microsoft . Data . SqlClient . Diagnostics ;
2525using Microsoft . SqlServer . Server ;
2626#if NETFRAMEWORK
27+ using System . Runtime . CompilerServices ;
2728using System . Security . Permissions ;
2829using System . Security . Principal ;
2930#endif
3031
3132#if NETFRAMEWORK
32- [ assembly: System . Runtime . CompilerServices . InternalsVisibleTo ( "System.Data.DataSetExtensions, PublicKey=" + Microsoft . Data . SqlClient . AssemblyRef . EcmaPublicKeyFull ) ] // DevDiv Bugs 92166
33+ [ assembly: InternalsVisibleTo ( "System.Data.DataSetExtensions, PublicKey=" + Microsoft . Data . SqlClient . AssemblyRef . EcmaPublicKeyFull ) ] // DevDiv Bugs 92166
3334// NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available.
3435// New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future.
3536#endif
@@ -930,7 +931,7 @@ public int ServerProcessId
930931 {
931932 get
932933 {
933- if ( ( State & ( ConnectionState . Open | ConnectionState . Executing | ConnectionState . Fetching ) ) > 0 )
934+ if ( ( State & ( ConnectionState . Open | ConnectionState . Executing | ConnectionState . Fetching ) ) != 0 )
934935 {
935936 return GetOpenTdsConnection ( ) . ServerProcessId ;
936937 }
You can’t perform that action at this time.
0 commit comments