Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8066e9b

Browse files
author
Nikita Glukhov
committed
Fix test alter_generic for KNN-btree
1 parent1b66532 commit8066e9b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎src/test/regress/expected/alter_generic.out

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,12 @@ DROP OPERATOR FAMILY alt_opf8 USING btree;
396396
CREATE OPERATOR FAMILY alt_opf9 USING gist;
397397
ALTER OPERATOR FAMILY alt_opf9 USING gist ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
398398
DROP OPERATOR FAMILY alt_opf9 USING gist;
399-
-- Should fail. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
399+
-- Should work. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
400+
BEGIN TRANSACTION;
400401
CREATE OPERATOR FAMILY alt_opf10 USING btree;
401402
ALTER OPERATOR FAMILY alt_opf10 USING btree ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
402403
DROP OPERATOR FAMILY alt_opf10 USING btree;
404+
ROLLBACK;
403405
-- Should work. Textbook case of ALTER OPERATOR FAMILY ... ADD OPERATOR with FOR ORDER BY
404406
CREATE OPERATOR FAMILY alt_opf11 USING gist;
405407
ALTER OPERATOR FAMILY alt_opf11 USING gist ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;

‎src/test/regress/sql/alter_generic.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,12 @@ CREATE OPERATOR FAMILY alt_opf9 USING gist;
340340
ALTEROPERATOR FAMILY alt_opf9 USING gist ADD OPERATOR1< (int4, int4) FORORDER BY float_ops;
341341
DROPOPERATOR FAMILY alt_opf9 USING gist;
342342

343-
-- Should fail. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
343+
-- Should work. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
344+
BEGIN TRANSACTION;
344345
CREATEOPERATORFAMILY alt_opf10 USING btree;
345346
ALTEROPERATOR FAMILY alt_opf10 USING btree ADD OPERATOR1< (int4, int4) FORORDER BY float_ops;
346347
DROPOPERATOR FAMILY alt_opf10 USING btree;
348+
ROLLBACK;
347349

348350
-- Should work. Textbook case of ALTER OPERATOR FAMILY ... ADD OPERATOR with FOR ORDER BY
349351
CREATEOPERATORFAMILY alt_opf11 USING gist;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp