4 CREATE FUNCTION widget_in(cstring)
6 AS '@libdir@/regress@DLSUFFIX@'
8 NOTICE: type "widget" is not yet defined
9 DETAIL: Creating a shell type definition.
10 CREATE FUNCTION widget_out(widget)
12 AS '@libdir@/regress@DLSUFFIX@'
14 NOTICE: argument type widget is only a shell
15 CREATE FUNCTION int44in(cstring)
17 AS '@libdir@/regress@DLSUFFIX@'
19 NOTICE: type "city_budget" is not yet defined
20 DETAIL: Creating a shell type definition.
21 CREATE FUNCTION int44out(city_budget)
23 AS '@libdir@/regress@DLSUFFIX@'
25 NOTICE: argument type city_budget is only a shell
26 CREATE FUNCTION check_primary_key ()
28 AS '@libdir@/refint@DLSUFFIX@'
30 CREATE FUNCTION check_foreign_key ()
32 AS '@libdir@/refint@DLSUFFIX@'
34 CREATE FUNCTION autoinc ()
36 AS '@libdir@/autoinc@DLSUFFIX@'
38 CREATE FUNCTION funny_dup17 ()
40 AS '@libdir@/regress@DLSUFFIX@'
42 CREATE FUNCTION ttdummy ()
44 AS '@libdir@/regress@DLSUFFIX@'
46 CREATE FUNCTION set_ttdummy (int4)
48 AS '@libdir@/regress@DLSUFFIX@'
50 -- Things that shouldn't work:
51 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
52 AS 'SELECT ''not an integer'';';
53 ERROR: return type mismatch in function declared to return integer
54 DETAIL: Actual return type is unknown.
55 CONTEXT: SQL function "test1"
56 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
58 ERROR: syntax error at or near "not"
59 LINE 2: AS 'not even SQL';
61 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
63 ERROR: return type mismatch in function declared to return integer
64 DETAIL: Final statement must return exactly one column.
65 CONTEXT: SQL function "test1"
66 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
68 ERROR: there is no parameter $2
69 LINE 2: AS 'SELECT $2;';
71 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE SQL
73 ERROR: only one AS item needed for language "sql"
74 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
76 ERROR: could not access file "nosuchfile": No such file or directory
77 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
78 AS '@libdir@/regress@DLSUFFIX@', 'nosuchsymbol';
79 ERROR: could not find function "nosuchsymbol" in file "@libdir@/regress@DLSUFFIX@"
80 CREATE FUNCTION test1 (int) RETURNS int LANGUAGE internal
82 ERROR: there is no built-in function named "nosuch"