| От | Rod Taylor |
|---|---|
| Тема | UPDATE ... SET |
| Дата | |
| Msg-id | 1055245361.56597.25.camel@jester обсуждение исходный текст |
| Ответы |
Re: UPDATE ... SET Re: UPDATE ... SET |
| Список | pgsql-patches |
Modify rewriteTargetList() to deal with a SetToDefault node InsertDefault renamed. Teach updateTargetListEntry() to use the columns type rather than calling exprType for it, since SetToDefault does not have a type but is stored in (TargetEntry *)->expr Remove special case in insert code. Let the default request flow through the same as the update case. On Thu, 2003-06-05 at 16:45, Tom Lane wrote: > Rod Taylor <rbt@rbt.ca> writes: > > It would seem a new primnode (change InsertDef into SetDefault or > > similar) will be required with some executor logic. > > It is not the executor's business to know about defaults. The rewriter > is the place where defaults get inserted - see rewriteTargetList(). > > Note that default NULL will have to be treated a little differently from > what we do for INSERT, since the, um, default behavior of UPDATE is to > preserve columns rather than replace 'em with nulls. > > regards, tom lane -- Rod Taylor <rbt@rbt.ca> PGP Key: http://www.rbt.ca/rbtpub.asc
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера