closure_action.sql 247 B

1234567891011121314
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. define action $action($b,$c) as
  4. $d = $b + $c;
  5. select $b;
  6. select $c;
  7. select $d;
  8. end define;
  9. define action $closure_action($a) as
  10. do $a(3,4);
  11. end define;
  12. do $closure_action($action);