Skip to content

Commit

Permalink
Make the prepared statement after the check succeed (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cricle committed Jun 18, 2024
1 parent 87187a2 commit e2e2e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDB.NET.Data/Internal/PreparedStatement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public static IEnumerable<DuckDBResult> PrepareMultiple(DuckDBNativeConnection c
{
var status = NativeMethods.ExtractStatements.DuckDBPrepareExtractedStatement(connection, extractedStatements, index, out var statement);

using var preparedStatement = new PreparedStatement(statement);
if (status.IsSuccess())
{
using var preparedStatement = new PreparedStatement(statement);
using var result = preparedStatement.Execute(parameters, useStreamingMode);
yield return result;
}
Expand Down

0 comments on commit e2e2e71

Please sign in to comment.