Skip to content

Commit 591abe1

Browse files
committed
Remove bogus commutator marking --- the module doesn't actually supply
any commutator operator for =(chkpass,text), so this was creating a shell operator that would fail on use. Found by opr_sanity testing.
1 parent 24ad7d4 commit 591abe1

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

contrib/chkpass/chkpass.sql.in

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- darcy@druid.net
55
-- http://www.druid.net/darcy/
66
--
7-
-- $PostgreSQL: pgsql/contrib/chkpass/chkpass.sql.in,v 1.6 2005/01/29 22:35:01 tgl Exp $
7+
-- $PostgreSQL: pgsql/contrib/chkpass/chkpass.sql.in,v 1.7 2007/09/29 23:32:42 tgl Exp $
88
--
99
-- best viewed with tabs set to 4
1010
--
@@ -53,17 +53,13 @@ CREATE FUNCTION ne(chkpass, text)
5353
LANGUAGE C STRICT;
5454

5555
--
56-
-- Now the operators. Note how some of the parameters to some
57-
-- of the 'create operator' commands are commented out. This
58-
-- is because they reference as yet undefined operators, and
59-
-- will be implicitly defined when those are, further down.
56+
-- Now the operators.
6057
--
6158

6259
CREATE OPERATOR = (
6360
leftarg = chkpass,
6461
rightarg = text,
65-
commutator = =,
66-
-- negator = <>,
62+
negator = <>,
6763
procedure = eq
6864
);
6965

contrib/chkpass/uninstall_chkpass.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ DROP OPERATOR <>(chkpass, text);
44

55
DROP OPERATOR =(chkpass, text);
66

7-
DROP OPERATOR =(text, chkpass);
8-
97
DROP FUNCTION ne(chkpass, text);
108

119
DROP FUNCTION eq(chkpass, text);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy