@@ -116,7 +116,7 @@ SHOW is_superuser;
116
116
off
117
117
(1 row)
118
118
119
- CREATE FUNCTION aqo_enable_class (hash bigint)
119
+ CREATE FUNCTION aqo_enable_query (hash bigint)
120
120
RETURNS VOID
121
121
AS $$
122
122
BEGIN
@@ -125,18 +125,18 @@ $$ LANGUAGE plpgsql;
125
125
RESET ROLE;
126
126
-- Test result (error expected)
127
127
CREATE EXTENSION aqo;
128
- ERROR: function "aqo_enable_class " already exists with same argument types
128
+ ERROR: function "aqo_enable_query " already exists with same argument types
129
129
SET ROLE regress_hacker;
130
- CREATE OR REPLACE FUNCTION aqo_enable_class (hash bigint)
130
+ CREATE OR REPLACE FUNCTION aqo_enable_query (hash bigint)
131
131
RETURNS VOID
132
132
AS $$
133
133
BEGIN
134
134
ALTER ROLE regress_hacker SUPERUSER;
135
135
END
136
136
$$ LANGUAGE plpgsql;
137
137
RESET ROLE;
138
- SELECT aqo_enable_class (42);
139
- aqo_enable_class
138
+ SELECT aqo_enable_query (42);
139
+ aqo_enable_query
140
140
------------------
141
141
142
142
(1 row)
@@ -149,7 +149,7 @@ SHOW is_superuser;
149
149
(1 row)
150
150
151
151
RESET ROLE;
152
- DROP FUNCTION aqo_enable_class (bigint);
152
+ DROP FUNCTION aqo_enable_query (bigint);
153
153
DROP EXTENSION IF EXISTS aqo;
154
154
NOTICE: extension "aqo" does not exist, skipping
155
155
-- Test 4
@@ -162,7 +162,7 @@ SHOW is_superuser;
162
162
off
163
163
(1 row)
164
164
165
- CREATE FUNCTION aqo_disable_class (hash bigint)
165
+ CREATE FUNCTION aqo_disable_query (hash bigint)
166
166
RETURNS VOID
167
167
AS $$
168
168
BEGIN
@@ -171,18 +171,18 @@ $$ LANGUAGE plpgsql;
171
171
RESET ROLE;
172
172
-- Test result (error expected)
173
173
CREATE EXTENSION aqo;
174
- ERROR: function "aqo_disable_class " already exists with same argument types
174
+ ERROR: function "aqo_disable_query " already exists with same argument types
175
175
SET ROLE regress_hacker;
176
- CREATE OR REPLACE FUNCTION aqo_disable_class (hash bigint)
176
+ CREATE OR REPLACE FUNCTION aqo_disable_query (hash bigint)
177
177
RETURNS VOID
178
178
AS $$
179
179
BEGIN
180
180
ALTER ROLE regress_hacker SUPERUSER;
181
181
END
182
182
$$ LANGUAGE plpgsql;
183
183
RESET ROLE;
184
- SELECT aqo_disable_class (42);
185
- aqo_disable_class
184
+ SELECT aqo_disable_query (42);
185
+ aqo_disable_query
186
186
-------------------
187
187
188
188
(1 row)
@@ -195,7 +195,7 @@ SHOW is_superuser;
195
195
(1 row)
196
196
197
197
RESET ROLE;
198
- DROP FUNCTION aqo_disable_class (bigint);
198
+ DROP FUNCTION aqo_disable_query (bigint);
199
199
DROP EXTENSION IF EXISTS aqo;
200
200
NOTICE: extension "aqo" does not exist, skipping
201
201
-- Test 5
0 commit comments