Commit c14f2ba7 authored by Tom Lane's avatar Tom Lane

Use just NULL not NULL::TEXT --- the latter coding is unnecessary and

not schema-safe.  Per report from Jochem van Dieten.
parent 657c098e
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* by PostgreSQL * by PostgreSQL
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.408 2005/04/30 08:08:51 neilc Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.409 2005/06/07 14:04:48 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -5189,8 +5189,8 @@ dumpFunc(Archive *fout, FuncInfo *finfo) ...@@ -5189,8 +5189,8 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
{ {
appendPQExpBuffer(query, appendPQExpBuffer(query,
"SELECT proretset, prosrc, probin, " "SELECT proretset, prosrc, probin, "
"null::text as proallargtypes, " "null as proallargtypes, "
"null::text as proargmodes, " "null as proargmodes, "
"proargnames, " "proargnames, "
"provolatile, proisstrict, prosecdef, " "provolatile, proisstrict, prosecdef, "
"(SELECT lanname FROM pg_catalog.pg_language WHERE oid = prolang) as lanname " "(SELECT lanname FROM pg_catalog.pg_language WHERE oid = prolang) as lanname "
...@@ -5202,9 +5202,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo) ...@@ -5202,9 +5202,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
{ {
appendPQExpBuffer(query, appendPQExpBuffer(query,
"SELECT proretset, prosrc, probin, " "SELECT proretset, prosrc, probin, "
"null::text as proallargtypes, " "null as proallargtypes, "
"null::text as proargmodes, " "null as proargmodes, "
"null::text as proargnames, " "null as proargnames, "
"provolatile, proisstrict, prosecdef, " "provolatile, proisstrict, prosecdef, "
"(SELECT lanname FROM pg_catalog.pg_language WHERE oid = prolang) as lanname " "(SELECT lanname FROM pg_catalog.pg_language WHERE oid = prolang) as lanname "
"FROM pg_catalog.pg_proc " "FROM pg_catalog.pg_proc "
...@@ -5215,9 +5215,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo) ...@@ -5215,9 +5215,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
{ {
appendPQExpBuffer(query, appendPQExpBuffer(query,
"SELECT proretset, prosrc, probin, " "SELECT proretset, prosrc, probin, "
"null::text as proallargtypes, " "null as proallargtypes, "
"null::text as proargmodes, " "null as proargmodes, "
"null::text as proargnames, " "null as proargnames, "
"case when proiscachable then 'i' else 'v' end as provolatile, " "case when proiscachable then 'i' else 'v' end as provolatile, "
"proisstrict, " "proisstrict, "
"'f'::boolean as prosecdef, " "'f'::boolean as prosecdef, "
...@@ -5230,9 +5230,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo) ...@@ -5230,9 +5230,9 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
{ {
appendPQExpBuffer(query, appendPQExpBuffer(query,
"SELECT proretset, prosrc, probin, " "SELECT proretset, prosrc, probin, "
"null::text as proallargtypes, " "null as proallargtypes, "
"null::text as proargmodes, " "null as proargmodes, "
"null::text as proargnames, " "null as proargnames, "
"case when proiscachable then 'i' else 'v' end as provolatile, " "case when proiscachable then 'i' else 'v' end as provolatile, "
"'f'::boolean as proisstrict, " "'f'::boolean as proisstrict, "
"'f'::boolean as prosecdef, " "'f'::boolean as prosecdef, "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment