File: bad_fun.sql

package info (click to toggle)
plr 1%3A8.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,128 kB
  • sloc: ansic: 4,742; sql: 628; sh: 357; makefile: 77; perl: 20
file content (9 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
-- should error out but should not crash PG
CREATE OR REPLACE
FUNCTION r_bad_fun()
RETURNS int4 AS
$BODY$
  deadbeef <- function(,bad) {}
  42
$BODY$
LANGUAGE plr;