Re: request for sql3 compliance for the update command

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: request for sql3 compliance for the update command
Дата
Msg-id Pine.LNX.4.44.0302191634380.1714-100000@peter.localdomain
обсуждение исходный текст
Ответ на request for sql3 compliance for the update command  (Dave Cramer <dave@fastcrypt.com>)
Ответы Re: request for sql3 compliance for the update command  (Dave Cramer <dave@fastcrypt.com>)
Re: request for sql3 compliance for the update command  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Dave Cramer writes:

> update table set (col...) = ( val...)

> It would appear that this is SQL3 compliant
>
> <set clause> ::=
>  <update target> <equals operator> <row value designator>
>
> <update target> ::=
>  <object column>
>  | <left paren> <object column list> <right paren>

That's not what my copy says.
        <set clause list> ::=             <set clause> [ { <comma> <set clause> }... ]
        <set clause> ::=               <update target> <equals operator> <update source>             | <mutated set
clause><equals operator> <update source>
 
        <update target> ::=               <object column>             | ROW             | <object column>
 <left bracket or trigraph> <simple value specification> <right bracket or trigraph>
 
        <object column> ::= <column name>

        <mutated set clause> ::=             <mutated target> <period> <method name>
        <mutated target> ::=               <object column>             | <mutated set clause>
        <update source> ::=               <value expression>             | <contextually typed value specification>

(And I'm pretty sure I have the right version of the standard.)

-- 
Peter Eisentraut   peter_e@gmx.net



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: translation stats
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql and readline