Skip to content

Commit 46ba3f8

Browse files
committed
Suppress timespan and datetime ops from being brought in via pg_dump
from previous release.
1 parent 5cdfaea commit 46ba3f8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/backend/parser/gram.y

+10-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.150 2000/02/24 01:59:17 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.151 2000/02/24 16:34:21 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -2332,13 +2332,16 @@ opt_type: ':' Typename { $$ = $2; }
23322332
*/
23332333
opt_class: class {
23342334
/*
2335-
* Release 7.0 removed network_ops, so we supress it from being passed
2336-
* to the backend so the default *_ops is used. This can be removed
2337-
* in some later release. bjm 2000/02/07
2335+
* Release 7.0 removed network_ops, timespan_ops, and datetime_ops,
2336+
* so we suppress it from being passed to the backend so the default
2337+
* *_ops is used. This can be removed in some later release.
2338+
* bjm 2000/02/07
23382339
*/
2339-
if (strcmp($1, "network_ops") != 0)
2340-
$$ = $1;
2341-
else $$ = NULL; }
2340+
if (strcmp($1, "network_ops") != 0 &&
2341+
strcmp($1, "timespan_ops") != 0 &&
2342+
strcmp($1, "datetime_ops") != 0)
2343+
$$ = $1;
2344+
else $$ = NULL; }
23422345
| USING class { $$ = $2; }
23432346
| /*EMPTY*/ { $$ = NULL; }
23442347
;

0 commit comments

Comments
 (0)