You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, problem is that data->>'code' is not column, it is column data and JSON operator ->> and string 'code'. And NDB is not ready for it. Support for JSON could certainly be added…
I have similar problem. When filtering with fields->>'myNote' LIKE (?) it wraps myNote with quotes "fields"->>'"myNote"' LIKE (?). So I need to go with SqlLiteral for now. Support for these specialities would be nice.
Activity
dg commentedon Feb 13, 2020
Because keys are always quoted, I think the best way is to use Nette\Database\SqlLiteral
badmansan commentedon Feb 13, 2020
Maybe you're right. I just don't like how the resulting code looks in case of complex queries.
instead of
dg commentedon Feb 14, 2020
Yes, problem is that
data->>'code'is not column, it is columndataand JSON operator->>and string'code'. And NDB is not ready for it. Support for JSON could certainly be added…otuhacek commentedon Mar 16, 2021
I have similar problem. When filtering with
fields->>'myNote' LIKE (?)it wraps myNote with quotes"fields"->>'"myNote"' LIKE (?). So I need to go with SqlLiteral for now. Support for these specialities would be nice.