CASE construct

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема CASE construct
Дата
Msg-id 364A76B6.8A48C521@alumni.caltech.edu
обсуждение исходный текст
Список pgsql-hackers
I've gotten part-way toward implementing a CASE construct in Postgres:
 select   case when i = 1 then 10        when i = 2 then 20   end from t;

(the other parts of the case clause are supported also). But I'm running
into problems in the executor, in that although the query tree seems to
be well-formed, there is not a corresponding plan or plan tree (not sure
of the terminology). Any suggestions on where to start, or interest in
working on it? (hint, hint)

btw, I'm hoping to have a superset of the SQL92 definition; the standard
allows only constants in the "then" clauses afaik, but I'm shooting for
allowing full expressions...
                  - Tom


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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] CORBA interface in backend?
Следующее
От: Dmitry Samersoff
Дата:
Сообщение: Re: