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

Special characters not working in where condition #114

Open
ravatsinh opened this issue Dec 16, 2022 · 3 comments
Open

Special characters not working in where condition #114

ravatsinh opened this issue Dec 16, 2022 · 3 comments

Comments

@ravatsinh
Copy link

ravatsinh commented Dec 16, 2022

$q->where('field_name', '=', "test'value")->get();

Getting error
{"error":{"code":"BadRequest","message":"There is an unterminated literal at position.........

@anderly
Copy link
Member

anderly commented Dec 16, 2022

Looks like you're missing a single quote after 'field_name

@ravatsinh
Copy link
Author

ravatsinh commented Dec 16, 2022

Looks like you're missing a single quote after 'field_name

Sorry updated now
But issue in test'value single quate

@anderly
Copy link
Member

anderly commented Sep 6, 2023

You may need to escape your single quote using \'.

Example: $q->where('field_name', '=', "test\'value")->get();

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

No branches or pull requests

2 participants