We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb779168 commit02d5ab6Copy full SHA for 02d5ab6
src/bin/psql/command.c
@@ -2974,7 +2974,10 @@ lookup_function_oid(const char *desc, Oid *foid)
2974
appendPQExpBuffer(query,"::pg_catalog.%s::pg_catalog.oid",
2975
strchr(desc,'(') ?"regprocedure" :"regproc");
2976
if (!lookup_function_echo_hidden(query->data))
2977
+{
2978
+destroyPQExpBuffer(query);
2979
return false;
2980
+}
2981
res=PQexec(pset.db,query->data);
2982
if (PQresultStatus(res)==PGRES_TUPLES_OK&&PQntuples(res)==1)
2983
*foid=atooid(PQgetvalue(res,0,0));
@@ -3005,7 +3008,10 @@ get_create_function_cmd(Oid oid, PQExpBuffer buf)
3005
3008
printfPQExpBuffer(query,"SELECT pg_catalog.pg_get_functiondef(%u)",oid);
3006
3009
3007
3010
3011
3012
3013
3014
3015
3016
3017
{