Skip to content

Commit

Permalink
Full URL param
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Oct 18, 2024
1 parent 6a0dc99 commit 5d4c2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chsql/src/duck_flock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace duckdb {
flock.push_back(duck.ToString());
auto conn = make_uniq<Connection>(*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());
}
Expand Down

0 comments on commit 5d4c2e2

Please sign in to comment.