Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

jsonb.c

Blame
    • Andrew Dunstan's avatar
      94c745eb
      Fix two-argument jsonb_object when called with empty arrays · 94c745eb
      Andrew Dunstan authored
      Some over-eager copy-and-pasting on my part resulted in a nonsense
      result being returned in this case. I have adopted the same pattern for
      handling this case as is used in the one argument form of the function,
      i.e. we just skip over the code that adds values to the object.
      
      Diagnosis and patch from Michael Paquier, although not quite his
      solution.
      
      Fixes bug #13936.
      
      Backpatch to 9.5 where jsonb_object was introduced.
      94c745eb
      History
      Fix two-argument jsonb_object when called with empty arrays
      Andrew Dunstan authored
      Some over-eager copy-and-pasting on my part resulted in a nonsense
      result being returned in this case. I have adopted the same pattern for
      handling this case as is used in the one argument form of the function,
      i.e. we just skip over the code that adds values to the object.
      
      Diagnosis and patch from Michael Paquier, although not quite his
      solution.
      
      Fixes bug #13936.
      
      Backpatch to 9.5 where jsonb_object was introduced.