@@ -1994,36 +1994,36 @@ internal bool IgnoreEnvChange
1994
1994
internal void OnEnvChange ( SqlEnvChange rec )
1995
1995
{
1996
1996
Debug . Assert ( ! IgnoreEnvChange , "This function should not be called if IgnoreEnvChange is set!" ) ;
1997
- switch ( rec . type )
1997
+ switch ( rec . _type )
1998
1998
{
1999
1999
case TdsEnums . ENV_DATABASE :
2000
2000
// If connection is not open and recovery is not in progress, store the server value as the original.
2001
2001
if ( ! _fConnectionOpen && _recoverySessionData == null )
2002
2002
{
2003
- _originalDatabase = rec . newValue ;
2003
+ _originalDatabase = rec . _newValue ;
2004
2004
}
2005
2005
2006
- CurrentDatabase = rec . newValue ;
2006
+ CurrentDatabase = rec . _newValue ;
2007
2007
break ;
2008
2008
2009
2009
case TdsEnums . ENV_LANG :
2010
2010
// If connection is not open and recovery is not in progress, store the server value as the original.
2011
2011
if ( ! _fConnectionOpen && _recoverySessionData == null )
2012
2012
{
2013
- _originalLanguage = rec . newValue ;
2013
+ _originalLanguage = rec . _newValue ;
2014
2014
}
2015
2015
2016
- _currentLanguage = rec . newValue ;
2016
+ _currentLanguage = rec . _newValue ;
2017
2017
break ;
2018
2018
2019
2019
case TdsEnums . ENV_PACKETSIZE :
2020
- _currentPacketSize = int . Parse ( rec . newValue , CultureInfo . InvariantCulture ) ;
2020
+ _currentPacketSize = int . Parse ( rec . _newValue , CultureInfo . InvariantCulture ) ;
2021
2021
break ;
2022
2022
2023
2023
case TdsEnums . ENV_COLLATION :
2024
2024
if ( _currentSessionData != null )
2025
2025
{
2026
- _currentSessionData . _collation = rec . newCollation ;
2026
+ _currentSessionData . _collation = rec . _newCollation ;
2027
2027
}
2028
2028
break ;
2029
2029
@@ -2043,20 +2043,20 @@ internal void OnEnvChange(SqlEnvChange rec)
2043
2043
{
2044
2044
throw SQL . ROR_FailoverNotSupportedServer ( this ) ;
2045
2045
}
2046
- _currentFailoverPartner = rec . newValue ;
2046
+ _currentFailoverPartner = rec . _newValue ;
2047
2047
break ;
2048
2048
2049
2049
case TdsEnums . ENV_PROMOTETRANSACTION :
2050
- byte [ ] dtcToken = null ;
2051
- if ( rec . newBinRented )
2050
+ byte [ ] dtcToken ;
2051
+ if ( rec . _newBinRented )
2052
2052
{
2053
- dtcToken = new byte [ rec . newLength ] ;
2054
- Buffer . BlockCopy ( rec . newBinValue , 0 , dtcToken , 0 , dtcToken . Length ) ;
2053
+ dtcToken = new byte [ rec . _newLength ] ;
2054
+ Buffer . BlockCopy ( rec . _newBinValue , 0 , dtcToken , 0 , dtcToken . Length ) ;
2055
2055
}
2056
2056
else
2057
2057
{
2058
- dtcToken = rec . newBinValue ;
2059
- rec . newBinValue = null ;
2058
+ dtcToken = rec . _newBinValue ;
2059
+ rec . _newBinValue = null ;
2060
2060
}
2061
2061
PromotedDTCToken = dtcToken ;
2062
2062
break ;
@@ -2077,16 +2077,16 @@ internal void OnEnvChange(SqlEnvChange rec)
2077
2077
break ;
2078
2078
2079
2079
case TdsEnums . ENV_USERINSTANCE :
2080
- _instanceName = rec . newValue ;
2080
+ _instanceName = rec . _newValue ;
2081
2081
break ;
2082
2082
2083
2083
case TdsEnums . ENV_ROUTING :
2084
2084
SqlClientEventSource . Log . TryAdvancedTraceEvent ( "<sc.SqlInternalConnectionTds.OnEnvChange|ADV> {0}, Received routing info" , ObjectID ) ;
2085
- if ( string . IsNullOrEmpty ( rec . newRoutingInfo . ServerName ) || rec . newRoutingInfo . Protocol != 0 || rec . newRoutingInfo . Port == 0 )
2085
+ if ( string . IsNullOrEmpty ( rec . _newRoutingInfo . ServerName ) || rec . _newRoutingInfo . Protocol != 0 || rec . _newRoutingInfo . Port == 0 )
2086
2086
{
2087
2087
throw SQL . ROR_InvalidRoutingInfo ( this ) ;
2088
2088
}
2089
- RoutingInfo = rec . newRoutingInfo ;
2089
+ RoutingInfo = rec . _newRoutingInfo ;
2090
2090
break ;
2091
2091
2092
2092
default :
0 commit comments