error with where #294
Unanswered
peterramsis
asked this question in
Q&A
Replies: 2 comments
-
Same error here: PermissionsGroup::with(['permissions' => fn($query) => $query->where('name->en', $guard)])->get() SQLSTATE[22032]: <>: 3141 Invalid JSON text in argument 1 to function json_extract: "Invalid value." at position 0. (SQL: select * from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I use where like this :
$user = User::where('name->en' , "admin")->get();
SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION gym.json_unquote does not exist (SQL: select * from
roles
where json_unquote(json_extract(name
, '$."en"')) = admin)or
SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION gym.JSON_EXTRACT does not exist (SQL: select * from
users
where JSON_EXTRACT(name, '$.en') = 'Peter Ramsis')How I Fix it ?
Beta Was this translation helpful? Give feedback.
All reactions