You are not logged in.
Pages: 1
My browser if giving an 'invalid number' parsing error. It's being caused by a rawUTF8 field containing a single minus sign. I guess this is being treated as an integer so the quotes are missing. Can this be changed?
Offline
It is not easy to understand what is wrong here.
Could you post some code here in order to reproduce the problem?
RawUTF8 fields are always transmitted as JSON strings (with quotes).
So you are perhaps mixing types, in an unexpected way.
Offline
I might have got my code in a tangle.
As soon as I've time I'll put together an example.
Thanks
Offline
Looking at it again the function
function IsJSONString(P: PUTF8Char): boolean;
in SynCommons.pas is returning false if '-' or '+' is passed.
can plus or minus on it's own be regarded as a string?
Offline
BTW my code which caused the problem was:
Table := TSQLTableDB.Create(db,RecordClassesToClasses([TSQLRec, TSQLFTSRec]),SQLQuery,true);
aParams.Resp := Table.GetJSONValues(true);
Offline
You were perfectly right.
There was several issues in the string recognition pattern.
The IsJSONString() implementation and use was incorrect in some cases.
It should be fixed by now (and corresponding regression tests have been added).
See http://synopse.info/fossil/info/7444f84ec1
Thanks for the feedback.
Offline
Pages: 1