odata-client-php
odata-client-php copied to clipboard
Special characters not working in where condition
$q->where('field_name', '=', "test'value")->get();
Getting error
{"error":{"code":"BadRequest","message":"There is an unterminated literal at position.........
Looks like you're missing a single quote after 'field_name
Looks like you're missing a single quote after
'field_name
Sorry updated now But issue in test'value single quate
You may need to escape your single quote using \'.
Example: $q->where('field_name', '=', "test\'value")->get();