Skip to content

Commit

Permalink
CreateAppender requires EnsureConnectionOpen
Browse files Browse the repository at this point in the history
  • Loading branch information
arontsang committed Dec 21, 2022
1 parent dba806d commit 354e48d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DuckDB.NET.Data/DuckDBConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public new virtual DuckDbCommand CreateCommand()

public DuckDBAppender CreateAppender(string table)
{
EnsureConnectionOpen();
if (NativeMethods.Appender.DuckDBAppenderCreate(NativeConnection, null, table, out var nativeAppender) == DuckDBState.DuckDBError)
{
try
Expand Down Expand Up @@ -135,4 +136,4 @@ private void EnsureConnectionOpen([CallerMemberName]string operation = "")
}
}
}
}
}

0 comments on commit 354e48d

Please sign in to comment.