We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8de0291 commit 2fbfb1fCopy full SHA for 2fbfb1f
1 file changed
System.Data.SQLite/Client/SQLiteConnection.cs
@@ -389,14 +389,11 @@ protected override DbCommand CreateDbCommand()
389
public override void Open()
390
{
391
if(conn_str == null)
392
- {
393
throw new InvalidOperationException("No database specified");
394
- }
395
396
if(state != ConnectionState.Closed)
397
398
- return;
399
+ throw new InvalidOperationException("Connection state is not closed.");
+
400
if(Version == 3)
401
402
sqlite_handle = (IntPtr)1;
0 commit comments