Re: [HACKERS] extension for sql update

Поиск
Список
Период
Сортировка
Искать

Re: [HACKERS] extension for sql update

От:
Bruce Momjian <bruce@momjian.us>
Дата:
bruce wrote:
> I have merged your patch into current CVS and applied it; attached. 
> There was quite a bit of code drift.  One drift area was the new
> RETURNING clause;  that was easy to fix.  A more complex case is the
> code no longer has values as ResTargets --- it is a simple a_expr list,
> so I changed the critical assignment in gram.y from:
> 
>         res_col->val = (Node *)copyObject(res_val->val);
> 
> to:
> 
> 	res_col->val = (Node *)copyObject(res_val);
> 
> Hope that is OK.  Without that fix, it crashed.  I also merged your SGML
> syntax and grammer addition into the exiting UPDATE main entry.

The copyObject() is not required.  Removed.

-- 
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
FAQ