aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-04-26 15:19:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-04-26 15:19:05 +0000
commitcb1ad8799b09531294e05658e4a7b2f4b209ee58 (patch)
treefccc5a910692f9139e2f6824767f940e7ee31722
parent66e0ea47a002183901d2053ed980a78f464dea36 (diff)
downloadpostgresql-cb1ad8799b09531294e05658e4a7b2f4b209ee58.tar.gz
postgresql-cb1ad8799b09531294e05658e4a7b2f4b209ee58.zip
Correct oversight in createlang: test for pre-existing handler function
was broken by opaque->language_handler change. I see this is already fixed in CVS tip, but must back-patch for 7.3.3.
-rw-r--r--src/bin/scripts/createlang.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/createlang.sh b/src/bin/scripts/createlang.sh
index ff94874413f..d6c51083b68 100644
--- a/src/bin/scripts/createlang.sh
+++ b/src/bin/scripts/createlang.sh
@@ -7,7 +7,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.42 2002/10/18 22:05:36 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.42.2.1 2003/04/26 15:19:05 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -256,7 +256,7 @@ fi
# ----------
# Check whether the call handler exists
# ----------
-sqlcmd="SELECT oid FROM pg_proc WHERE proname = '$handler' AND prorettype = 0 AND pronargs = 0;"
+sqlcmd="SELECT oid FROM pg_proc WHERE proname = '$handler' AND prorettype = (SELECT oid FROM pg_type WHERE typname = 'language_handler') AND pronargs = 0;"
if [ "$showsql" = yes ]; then
echo "$sqlcmd"
fi