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
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 257 100 156 100 101 420k 272k --:--:-- --:--:-- --:--:-- 250k
curl: (22) The requested URL returned error: 400
{
"reqIdx": -1,
"error": "in parsing body: json: cannot unmarshal array into Go struct field requestItem.transaction.values of type map[string]json.RawMessage"
}
A workaround for this is to change from empty array [] to empty object/dictionary {}.
I'll see if I can help with this in another PR.
Thanks!
EDIT: this is expected. ws4sqlite differs from sqliterg in this regard 😅.
The text was updated successfully, but these errors were encountered:
If the query needs to be parametrized, named parameters can be defined in the statement using SQLite (e.g. :id or @id), and the proper values for them must be specified here. You can specify values that do not match a parameter; they'll be ignored.
Hi!
On testing #38, I found a subtle bug where ws4sqlite would not be able to process if an empty array is passed. In more details:
Where
/tmp/data
's content is:The response is:
A workaround for this is to change from empty array
[]
to empty object/dictionary{}
.I'll see if I can help with this in another PR.
Thanks!
EDIT: this is expected.
ws4sqlite
differs fromsqliterg
in this regard 😅.The text was updated successfully, but these errors were encountered: