We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86029b3 commit bbe4deaCopy full SHA for bbe4dea
contrib/hstore/hstore_io.c
@@ -1240,11 +1240,7 @@ hstore_to_json_loose(PG_FUNCTION_ARGS)
1240
dst;
1241
1242
if (count == 0)
1243
- {
1244
- out = palloc(1);
1245
- *out = '\0';
1246
- PG_RETURN_TEXT_P(cstring_to_text(out));
1247
- }
+ PG_RETURN_TEXT_P(cstring_to_text_with_len("{}",2));
1248
1249
buflen = 3;
1250
@@ -1369,11 +1365,7 @@ hstore_to_json(PG_FUNCTION_ARGS)
1369
1365
1370
1366
1371
1367
1372
1373
1374
1375
1376
1368
1377
1378
1379
0 commit comments