From: Bruce Momjian Date: Mon, 7 Feb 2000 21:24:15 +0000 (+0000) Subject: Mask removal of network_ops in 7.0. X-Git-Tag: REL7_0~679 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4842ef86247a323de9ec25e799d756c320222fe0;p=postgresql Mask removal of network_ops in 7.0. --- diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index b56224c7be..24175c5305 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.140 2000/02/07 18:12:49 wieck Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.141 2000/02/07 21:24:15 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -2184,7 +2184,15 @@ opt_type: ':' Typename { $$ = $2; } * - thomas 1997-10-12 * | WITH class { $$ = $2; } */ -opt_class: class { $$ = $1; } +opt_class: class { + /* + * Release 7.0 removed network_ops, so we supress it from being passed + * to the backend so the default *_ops is used. This can be removed + * in some later release. bjm 2000/02/07 + */ + if (strcmp($1, "network_ops") != 0) + $$ = $1; + else $$ = NULL; } | USING class { $$ = $2; } | /*EMPTY*/ { $$ = NULL; } ;