From 5d4c2e22658fd83e18c463f12a4c74f91f6768b7 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 19 Oct 2024 01:37:07 +0200 Subject: [PATCH] Full URL param --- chsql/src/duck_flock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chsql/src/duck_flock.cpp b/chsql/src/duck_flock.cpp index 4a9903f..4fa9622 100644 --- a/chsql/src/duck_flock.cpp +++ b/chsql/src/duck_flock.cpp @@ -25,7 +25,7 @@ namespace duckdb { flock.push_back(duck.ToString()); auto conn = make_uniq(*context.db); conn->Query("SET autoload_known_extensions=1;SET autoinstall_known_extensions=1;"); - auto req = conn->Prepare("SELECT * FROM read_json($2 || '/?q=' || url_encode($1::VARCHAR))"); + auto req = conn->Prepare("SELECT * FROM read_json($2 || '/?default_format=JSONEachRow&query=' || url_encode($1::VARCHAR))"); if (req->HasError()) { throw std::runtime_error("duck_flock: error: " + req->GetError()); }