~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-security

« back to all changes in this revision

Viewing changes to src/test/regress/sql/create_operator.sql

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--
 
2
-- CREATE_OPERATOR
 
3
--
 
4
 
 
5
CREATE OPERATOR ## ( 
 
6
   leftarg = path,
 
7
   rightarg = path,
 
8
   procedure = path_inter,
 
9
   commutator = ## 
 
10
);
 
11
 
 
12
CREATE OPERATOR <% (
 
13
   leftarg = point,
 
14
   rightarg = widget,
 
15
   procedure = pt_in_widget,
 
16
   commutator = >% ,
 
17
   negator = >=% 
 
18
);
 
19
 
 
20
CREATE OPERATOR @#@ (
 
21
   rightarg = int8,             -- left unary 
 
22
   procedure = numeric_fac 
 
23
);
 
24
 
 
25
CREATE OPERATOR #@# (
 
26
   leftarg = int8,              -- right unary
 
27
   procedure = numeric_fac
 
28
);
 
29
 
 
30
CREATE OPERATOR #%# ( 
 
31
   leftarg = int8,              -- right unary 
 
32
   procedure = numeric_fac 
 
33
);
 
34
 
 
35
-- Test comments
 
36
COMMENT ON OPERATOR ###### (int4, NONE) IS 'bad right unary';
 
37
 
 
38