From 098e0438496e558902e3b4407090032d6b2d9221 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 Apr 1999 22:35:43 +0000 Subject: Fix CREATE OPERATOR ... LANGUAGE 'internal', which I broke while making prosrc instead of proname be the link to the actual internal function. --- src/backend/commands/define.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/define.c') diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 11e17283a1..04bd1e8963 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.27 1999/02/13 23:15:06 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.28 1999/04/09 22:35:41 tgl Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -186,14 +186,15 @@ interpret_AS_clause(const char *languageName, const char *as, char **prosrc_str_p, char **probin_str_p) { - if (strcmp(languageName, "C") == 0 || - strcmp(languageName, "internal") == 0) + if (strcmp(languageName, "C") == 0) { + /* For "C" language, store the given string in probin */ *prosrc_str_p = "-"; *probin_str_p = (char *) as; } else { + /* Everything else wants the given string in prosrc */ *prosrc_str_p = (char *) as; *probin_str_p = "-"; } -- cgit v1.2.1