Skip to content

Commit 5d4c2e2

Browse files
authored
Full URL param
1 parent 6a0dc99 commit 5d4c2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chsql/src/duck_flock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace duckdb {
2525
flock.push_back(duck.ToString());
2626
auto conn = make_uniq<Connection>(*context.db);
2727
conn->Query("SET autoload_known_extensions=1;SET autoinstall_known_extensions=1;");
28-
auto req = conn->Prepare("SELECT * FROM read_json($2 || '/?q=' || url_encode($1::VARCHAR))");
28+
auto req = conn->Prepare("SELECT * FROM read_json($2 || '/?default_format=JSONEachRow&query=' || url_encode($1::VARCHAR))");
2929
if (req->HasError()) {
3030
throw std::runtime_error("duck_flock: error: " + req->GetError());
3131
}

0 commit comments

Comments
 (0)