Skip to content

Commit

Permalink
api: update database parameter name
Browse files Browse the repository at this point in the history
Previously, we were calling the database parameter
in `SqlExecutionRequest` as `database_name`, instead
of the correct `database`.
This commit updates the parameter name to the
correct one.

Release note (bug fix): Use proper parameter name for database
on SQL api

Release justification: bug fix
  • Loading branch information
maryliag committed Aug 15, 2022
1 parent 33b343d commit 2d4f937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ui/workspaces/cluster-ui/src/api/sqlApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type SqlExecutionRequest = {
execute?: boolean;
timeout?: string; // Default 5s
application_name?: string; // Defaults to '$ api-v2-sql'
database_name?: string; // Defaults to defaultDb
database?: string; // Defaults to defaultDb
max_result_size?: number; // Default 10kib
};

Expand Down

0 comments on commit 2d4f937

Please sign in to comment.