Skip to content

Commit 2fbfb1f

Browse files
committed
* Mostantól lesz hiba dobva ha már nyitott kapcsolatra akar valaki még1-et nyitni.
1 parent 8de0291 commit 2fbfb1f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

System.Data.SQLite/Client/SQLiteConnection.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,11 @@ protected override DbCommand CreateDbCommand()
389389
public override void Open()
390390
{
391391
if(conn_str == null)
392-
{
393392
throw new InvalidOperationException("No database specified");
394-
}
395393

396394
if(state != ConnectionState.Closed)
397-
{
398-
return;
399-
}
395+
throw new InvalidOperationException("Connection state is not closed.");
396+
400397
if(Version == 3)
401398
{
402399
sqlite_handle = (IntPtr)1;

0 commit comments

Comments
 (0)