Skip to content
Snippets Groups Projects
  1. Nov 26, 2007
    • Peter Eisentraut's avatar
      c534ba18
    • Tom Lane's avatar
      Fix select_common_type() so that it can select a domain type, if all inputs · 07daff63
      Tom Lane authored
      to a UNION, CASE, or related construct are of the same domain type.  The
      main part of this routine smashes domains to their base types, which seems
      necessary because the logic involves TypeCategory() and IsPreferredType(),
      neither of which work usefully on domains.  However, we can add a first
      pass that just detects whether all the inputs are exactly the same type,
      and if so accept that without question (so long as it's not UNKNOWN).
      Per recent gripe from Dean Rasheed.
      
      In passing, remove some tests for InvalidOid, which have clearly been dead
      code for quite some time now, because getBaseType() would fail on that input.
      
      Also, clarify the manual's not-very-precise description of the existing
      algorithm's behavior.
      07daff63
  2. Nov 23, 2007
  3. Nov 22, 2007
  4. Nov 21, 2007
  5. Nov 20, 2007
  6. Nov 19, 2007
  7. Nov 18, 2007
  8. Nov 17, 2007
  9. Nov 16, 2007
  10. Nov 15, 2007
  11. Nov 14, 2007
Loading