Skip to content

Commit

Permalink
Fix ScanReplacement
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed May 22, 2024
1 parent 3929eaa commit 68bd2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ void DuckDBNodeRSLauncher(Napi::Env env, Napi::Function jsrs, std::nullptr_t *,
}

static duckdb::unique_ptr<duckdb::TableRef>
ScanReplacement(duckdb::ClientContext &context, const std::string &table_name, duckdb::ReplacementScanData *data) {
ScanReplacement(duckdb::ClientContext &context, duckdb::ReplacementScanInput& info, duckdb::optional_ptr<duckdb::ReplacementScanData> data) {
JSRSArgs jsargs;
jsargs.table = table_name;
jsargs.table = info.table_name;
((NodeReplacementScanData *)data)->rs.BlockingCall(&jsargs);
while (!jsargs.done) {
std::this_thread::yield();
Expand Down

0 comments on commit 68bd2e4

Please sign in to comment.