Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mysql raw query action #11994

Closed
wants to merge 7 commits into from
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, we need to adapt the this.sql prop to the format that this.mysql.executeQuery expects:

const args = this.mysql.executeQueryAdapter(this.sql);
return this.mysql.executeQuery(args);

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ export default {
name: "Execute Raw Query",
description: "Find row(s) via a custom raw query. [See the documentation](https://dev.mysql.com/doc/refman/8.0/en/select.html)",
type: "action",
version: "1.0.3",
version: "1.0.4",
props: {
mysql,
sql: {
type: "string",
type: "sql",
auth: {
app: "mysql",
},
label: "Query",
description: "The SQL query to execute",
},
Expand Down