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

parse_clause.c

  • Tom Lane's avatar
    0c051c90
    Fix LATERAL references to target table of UPDATE/DELETE. · 0c051c90
    Tom Lane authored
    I failed to think much about UPDATE/DELETE when implementing LATERAL :-(.
    The implemented behavior ended up being that subqueries in the FROM or
    USING clause (respectively) could access the update/delete target table as
    though it were a lateral reference; which seems fine if they said LATERAL,
    but certainly ought to draw an error if they didn't.  Fix it so you get a
    suitable error when you omit LATERAL.  Per report from Emre Hasegeli.
    0c051c90
    History
    Fix LATERAL references to target table of UPDATE/DELETE.
    Tom Lane authored
    I failed to think much about UPDATE/DELETE when implementing LATERAL :-(.
    The implemented behavior ended up being that subqueries in the FROM or
    USING clause (respectively) could access the update/delete target table as
    though it were a lateral reference; which seems fine if they said LATERAL,
    but certainly ought to draw an error if they didn't.  Fix it so you get a
    suitable error when you omit LATERAL.  Per report from Emre Hasegeli.