Content-Length: 286479 | pFad | http://github.com/postgrespro/postgres/commit/bbe4deac1b98594206a024c9e91d664b3c3410d9
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Fetched URL: http://github.com/postgrespro/postgres/commit/bbe4deac1b98594206a024c9e91d664b3c3410d9
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments