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

MySQL queries - forward slashes in bindings #14855

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

mike12345567
Copy link
Collaborator

Description

Had a look at this one - for queries there is a coercion of strings if they are dates - we have test cases covering this in generic-sql.ts, without the coercion dates cannot be worked with.

Ideally we would allow specification of the type the binding should assume, as right now it is always a string - but for now making the coercion a bit less over-arching.

Previously it didn't specify any formats, therefore anything that faintly looked like a date would get parsed, now there's only a set of a few formats which we support (also checks validity of the days/months/years).

Addresses:

  1. Select from MySql data source where clause with a forward slash in handlebar variable does not work #14751
  2. https://linear.app/budibase/issue/BUDI-8716/select-from-mysql-data-source-where-clause-with-a-forward-slash-in

…empting to make this less all catching. Likely an area of concern, but there is currently no way to search for dates without this.
@mike12345567 mike12345567 requested a review from a team as a code owner October 23, 2024 15:51
@mike12345567 mike12345567 requested review from samwho and removed request for a team October 23, 2024 15:51
Copy link

qa-wolf bot commented Oct 23, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Oct 23, 2024
@mike12345567 mike12345567 merged commit 5f56d8b into master Oct 23, 2024
11 of 12 checks passed
@mike12345567 mike12345567 deleted the fix/mysql-forward-slashes branch October 23, 2024 16:44
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants