projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55c8807
)
Fix backpatching error in commit 55c88079
author
Andrew Dunstan
Mon, 1 Dec 2014 17:48:35 +0000
(12:48 -0500)
committer
Andrew Dunstan
Mon, 1 Dec 2014 17:48:35 +0000
(12:48 -0500)
src/backend/utils/adt/json.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/json.c
b/src/backend/utils/adt/json.c
index 0873bb3ce15c11a3dd08bb11ab2877ff403b8758..ef5608deb827d242ccd464d7781ec32f5d21b965 100644
(file)
--- a/
src/backend/utils/adt/json.c
+++ b/
src/backend/utils/adt/json.c
@@
-1363,7
+1363,7
@@
datum_to_json(Datum val, bool is_null, StringInfo result,
* Don't call escape_json for a non-key if it's a valid JSON
* number.
*/
- if (
!key_scalar &&
IsValidJsonNumber(outputstr, strlen(outputstr)))
+ if (IsValidJsonNumber(outputstr, strlen(outputstr)))
appendStringInfoString(result, outputstr);
else
escape_json(result, outputstr);