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 - You have an error in your SQL syntax - Operators #438

Closed
MichalisDBA opened this issue Apr 5, 2024 · 7 comments
Closed

MySQL - You have an error in your SQL syntax - Operators #438

MichalisDBA opened this issue Apr 5, 2024 · 7 comments
Assignees
Labels
bug Something isn't working RSQL issues involving RSQL operators or handling
Milestone

Comments

@MichalisDBA
Copy link

MichalisDBA commented Apr 5, 2024

Hello.

Same error as Oracle #437

The operators below do not work and produce a You have an error in your SQL syntax; check the manual that corresponds to your... error

<
=lt=
<=
=le=
=in=
=out=
=startWith=
=endWith=
@thadguidry thadguidry added bug Something isn't working RSQL issues involving RSQL operators or handling labels Apr 6, 2024
@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 6, 2024

Fixed greater than

/film?filter=rental_duration>6

/film?filter=rental_duration=gt=4

@kdhrubo kdhrubo self-assigned this Apr 6, 2024
@kdhrubo kdhrubo added this to the April2024 milestone Apr 6, 2024
@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 6, 2024

Fixed greater than equal to

/film?filter=rental_duration>=6

film?filter=rental_duration=ge=6

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 6, 2024

Fixed less than

/film?filter=rental_duration=lt=4

/film?filter=rental_duration<4

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 6, 2024

Fixed less than equal to

/film?filter=rental_duration=le=3

/film?filter=rental_duration<=3

kdhrubo pushed a commit that referenced this issue Apr 6, 2024
kdhrubo pushed a commit that referenced this issue Apr 7, 2024
@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 7, 2024

Fixed IN

/film?filter=film_id=in=(1,2,3)

/film?filter=rating=in=(PG,G,NC-17)

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 7, 2024

Fixed OUT

/film?filter=film_id=out=(1,2,3)

/film?filter=rating=out=(PG,G,NC-17)

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 7, 2024

FIXED START WITH n END WITH

/film?filter=title=endWith=EASY

/film?filter=title=startWith=BASIC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RSQL issues involving RSQL operators or handling
Projects
None yet
Development

No branches or pull requests

3 participants