Skip to content

Commit

Permalink
Use "#{type}_#{use_case}_ops" naming rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 15, 2015
1 parent e9b7201 commit 4151c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgroonga.sql
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ INSERT INTO pg_catalog.pg_am VALUES(
'pgroonga.options' -- amoptions
);

CREATE OPERATOR CLASS pgroonga.full_text_search_text_ops DEFAULT FOR TYPE text
CREATE OPERATOR CLASS pgroonga.text_full_text_search_ops DEFAULT FOR TYPE text
USING pgroonga AS
OPERATOR 6 pg_catalog.~~,
OPERATOR 7 %%,
OPERATOR 8 @@,
FUNCTION 1 pgroonga.get_text(internal, internal, text),
FUNCTION 2 pgroonga.get_text(internal, internal, text);

CREATE OPERATOR CLASS pgroonga.full_text_search_text_array_ops
CREATE OPERATOR CLASS pgroonga.text_array_full_text_search_ops
DEFAULT
FOR TYPE text[]
USING pgroonga AS
Expand All @@ -265,7 +265,7 @@ CREATE OPERATOR CLASS pgroonga.full_text_search_text_array_ops
FUNCTION 1 pgroonga.get_text_array(internal, internal, text[]),
FUNCTION 2 pgroonga.get_text(internal, internal, text);

CREATE OPERATOR CLASS pgroonga.full_text_search_varchar_ops FOR TYPE varchar
CREATE OPERATOR CLASS pgroonga.varchar_full_text_search_ops FOR TYPE varchar
USING pgroonga AS
OPERATOR 7 %%,
OPERATOR 8 @@,
Expand Down

0 comments on commit 4151c38

Please sign in to comment.