Skip to content
Browse files

Empty PostgreSQL arrays will now be created for empty JSON arrays.

  • Loading branch information...
1 parent bbe0b27 commit e6a48206d82be6709253d74dc64e2ed1b176473c @shartte shartte committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/json_accessors.c
View
4 src/json_accessors.c
@@ -310,6 +310,10 @@ Datum json_array_to_array_generic_impl(cJSON *jsonArray, int json_type, Oid elem
pfree(items);
}
+ else
+ {
+ array = construct_empty_array(elem_oid);
+ }
if (!array)
ereport(ERROR,

0 comments on commit e6a4820

Please sign in to comment.
Something went wrong with that request. Please try again.