mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
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.
This commit is contained in:
parent
24ad7d4628
commit
591abe1b72
@ -4,7 +4,7 @@
|
|||||||
-- darcy@druid.net
|
-- darcy@druid.net
|
||||||
-- http://www.druid.net/darcy/
|
-- http://www.druid.net/darcy/
|
||||||
--
|
--
|
||||||
-- $PostgreSQL: pgsql/contrib/chkpass/chkpass.sql.in,v 1.6 2005/01/29 22:35:01 tgl Exp $
|
-- $PostgreSQL: pgsql/contrib/chkpass/chkpass.sql.in,v 1.7 2007/09/29 23:32:42 tgl Exp $
|
||||||
--
|
--
|
||||||
-- best viewed with tabs set to 4
|
-- best viewed with tabs set to 4
|
||||||
--
|
--
|
||||||
@ -53,17 +53,13 @@ CREATE FUNCTION ne(chkpass, text)
|
|||||||
LANGUAGE C STRICT;
|
LANGUAGE C STRICT;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Now the operators. Note how some of the parameters to some
|
-- Now the operators.
|
||||||
-- of the 'create operator' commands are commented out. This
|
|
||||||
-- is because they reference as yet undefined operators, and
|
|
||||||
-- will be implicitly defined when those are, further down.
|
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE OPERATOR = (
|
CREATE OPERATOR = (
|
||||||
leftarg = chkpass,
|
leftarg = chkpass,
|
||||||
rightarg = text,
|
rightarg = text,
|
||||||
commutator = =,
|
negator = <>,
|
||||||
-- negator = <>,
|
|
||||||
procedure = eq
|
procedure = eq
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@ DROP OPERATOR <>(chkpass, text);
|
|||||||
|
|
||||||
DROP OPERATOR =(chkpass, text);
|
DROP OPERATOR =(chkpass, text);
|
||||||
|
|
||||||
DROP OPERATOR =(text, chkpass);
|
|
||||||
|
|
||||||
DROP FUNCTION ne(chkpass, text);
|
DROP FUNCTION ne(chkpass, text);
|
||||||
|
|
||||||
DROP FUNCTION eq(chkpass, text);
|
DROP FUNCTION eq(chkpass, text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user