File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/MySqlConnector/MySql.Data.MySqlClient Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Data ;
4
4
using System . Data . Common ;
5
- using System . Linq ;
6
5
using System . Net . Sockets ;
7
6
using System . Threading ;
8
7
using System . Threading . Tasks ;
@@ -178,7 +177,7 @@ public override string ConnectionString
178
177
set
179
178
{
180
179
if ( m_hasBeenOpened )
181
- throw new MySqlException ( "Cannot change connection string on a connection that has already been opened." ) ;
180
+ throw new InvalidOperationException ( "Cannot change connection string on a connection that has already been opened." ) ;
182
181
m_connectionStringBuilder = new MySqlConnectionStringBuilder ( value ) ;
183
182
m_connectionSettings = new ConnectionSettings ( m_connectionStringBuilder ) ;
184
183
}
You can’t perform that action at this time.
0 commit comments