⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create_function_1.source

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 SOURCE
字号:
---- CREATE_FUNCTION_1--CREATE FUNCTION widget_in(cstring)   RETURNS widget   AS '@abs_builddir@/regress@DLSUFFIX@'   LANGUAGE 'C' STRICT;NOTICE:  type "widget" is not yet definedDETAIL:  Creating a shell type definition.CREATE FUNCTION widget_out(widget)   RETURNS cstring   AS '@abs_builddir@/regress@DLSUFFIX@'   LANGUAGE 'C' STRICT;NOTICE:  argument type widget is only a shellCREATE FUNCTION int44in(cstring)   RETURNS city_budget   AS '@abs_builddir@/regress@DLSUFFIX@'   LANGUAGE 'C' STRICT;NOTICE:  type "city_budget" is not yet definedDETAIL:  Creating a shell type definition.CREATE FUNCTION int44out(city_budget)   RETURNS cstring   AS '@abs_builddir@/regress@DLSUFFIX@'   LANGUAGE 'C' STRICT;NOTICE:  argument type city_budget is only a shellCREATE FUNCTION check_primary_key ()	RETURNS trigger	AS '@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@'	LANGUAGE 'C';CREATE FUNCTION check_foreign_key ()	RETURNS trigger	AS '@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@'	LANGUAGE 'C';CREATE FUNCTION autoinc ()	RETURNS trigger	AS '@abs_builddir@/../../../contrib/spi/autoinc@DLSUFFIX@'	LANGUAGE 'C';CREATE FUNCTION funny_dup17 ()        RETURNS trigger        AS '@abs_builddir@/regress@DLSUFFIX@'        LANGUAGE 'C';CREATE FUNCTION ttdummy ()        RETURNS trigger        AS '@abs_builddir@/regress@DLSUFFIX@'        LANGUAGE 'C';CREATE FUNCTION set_ttdummy (int4)        RETURNS int4        AS '@abs_builddir@/regress@DLSUFFIX@'        LANGUAGE 'C' STRICT;CREATE FUNCTION do_sleep (int4)        RETURNS void        AS '@abs_builddir@/regress@DLSUFFIX@'        LANGUAGE 'C' STRICT;-- Things that shouldn't work:CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql    AS 'SELECT ''not an integer'';';ERROR:  return type mismatch in function declared to return integerDETAIL:  Actual return type is "unknown".CONTEXT:  SQL function "test1"CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql    AS 'not even SQL';ERROR:  syntax error at or near "not" at character 62LINE 2:     AS 'not even SQL';                ^CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql    AS 'SELECT 1, 2, 3;';ERROR:  return type mismatch in function declared to return integerDETAIL:  Final SELECT must return exactly one column.CONTEXT:  SQL function "test1"CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql    AS 'SELECT $2;';ERROR:  there is no parameter $2CONTEXT:  SQL function "test1"CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql    AS 'a', 'b';ERROR:  only one AS item needed for language "sql"CREATE FUNCTION test1 (int) RETURNS int LANGUAGE c    AS 'nosuchfile';ERROR:  could not access file "nosuchfile": No such file or directoryCREATE FUNCTION test1 (int) RETURNS int LANGUAGE c    AS '@abs_builddir@/regress@DLSUFFIX@', 'nosuchsymbol';ERROR:  could not find function "nosuchsymbol" in file "@abs_builddir@/regress@DLSUFFIX@"CREATE FUNCTION test1 (int) RETURNS int LANGUAGE internal    AS 'nosuch';ERROR:  there is no built-in function named "nosuch"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -