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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(oracle): discard nested tokens when checking table #11307

Merged
merged 1 commit into from Jul 20, 2023

Conversation

paulozulato
Copy link
Contributor

@paulozulato paulozulato commented Jul 19, 2023

Targeting release-51

Fixes https://emqx.atlassian.net/browse/EMQX-10597

Summary

馃 Generated by Copilot at 00e760b

Updated the version number of emqx_oracle and fixed a bug with nested tokens in the SQL statement. The bug caused the bridge probe to fail when checking if the table exists.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • [ ] If there should be document changes, a PR to emqx-docs.git is sent, or a jira ticket is created to follow up
  • [ ] Schema changes are backward compatible

Checklist for CI (.github/workflows) changes

  • [ ] If changed package build workflow, pass this action (manual trigger)
  • [ ] Change log has been added to changes/ dir for user-facing artifacts update

@paulozulato paulozulato changed the title fix(oracle): discards nested tokens on table check fix(oracle): discard nested tokens when checking table Jul 19, 2023
thalesmg
thalesmg previously approved these changes Jul 19, 2023
Copy link
Contributor

@thalesmg thalesmg left a comment

Choose a reason for hiding this comment

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

Do we have a screenshot of how the error looks like after the fix?

changes/ee/fix-11307.en.md Outdated Show resolved Hide resolved
@paulozulato
Copy link
Contributor Author

After the fix:

  • using nested tokens to an existing table returns the Connection Successful message:
    image

  • using nested tokens to a nonexistent table returns the unhealthy target message:
    image

@paulozulato paulozulato marked this pull request as ready for review July 19, 2023 21:04
@paulozulato paulozulato requested a review from a team as a code owner July 19, 2023 21:04
@paulozulato paulozulato merged commit 0827a45 into emqx:release-51 Jul 20, 2023
122 checks passed
@paulozulato paulozulato deleted the fix-oracle-table-check branch July 20, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants