return quoted value for TEXT column with a numeric value
return quoted value for TEXT column with a numeric value
@@ -599,10 +599,18 @@ unsigned long nRows = 0, nCols = 0;
Value value;
if (!d.Parse(str).HasParseError())
+ {
+ if (d.IsNumber())
+ {
+ // Set string
+ value = Value(str, allocator);
+ }
+ else
{
// JSON parsing ok, use the document
value = Value(d, allocator);
}
+ }
else
{
// Use (char *) value
