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

Commitfe6e10c

Browse files
committed
fix regression tests for copied foreign keys
1 parenta9101d1 commitfe6e10c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎expected/pg_pathman.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ NOTICE: sequence "test_fkey_seq" does not exist, skipping
17241724

17251725
INSERT INTO test_fkey VALUES(1, 'wrong');
17261726
ERROR: insert or update on table "test_fkey_1" violates foreign key constraint "test_fkey_1_comment_fkey"
1727+
INSERT INTO test_fkey VALUES(1, 'test');
17271728
SELECT drop_partitions('test_fkey');
17281729
NOTICE: function public.test_fkey_upd_trig_func() does not exist, skipping
17291730
NOTICE: 100 rows copied from test_fkey_10
@@ -1735,7 +1736,7 @@ NOTICE: 100 rows copied from test_fkey_5
17351736
NOTICE: 100 rows copied from test_fkey_4
17361737
NOTICE: 100 rows copied from test_fkey_3
17371738
NOTICE: 100 rows copied from test_fkey_2
1738-
NOTICE:100 rows copied from test_fkey_1
1739+
NOTICE:101 rows copied from test_fkey_1
17391740
drop_partitions
17401741
-----------------
17411742
10
@@ -1749,6 +1750,7 @@ SELECT create_hash_partitions('test_fkey', 'id', 10);
17491750

17501751
INSERT INTO test_fkey VALUES(1, 'wrong');
17511752
ERROR: insert or update on table "test_fkey_0" violates foreign key constraint "test_fkey_0_comment_fkey"
1753+
INSERT INTO test_fkey VALUES(1, 'test');
17521754
SELECT drop_partitions('test_fkey');
17531755
NOTICE: function public.test_fkey_upd_trig_func() does not exist, skipping
17541756
NOTICE: 94 rows copied from test_fkey_9
@@ -1760,7 +1762,7 @@ NOTICE: 101 rows copied from test_fkey_4
17601762
NOTICE: 116 rows copied from test_fkey_3
17611763
NOTICE: 90 rows copied from test_fkey_2
17621764
NOTICE: 90 rows copied from test_fkey_1
1763-
NOTICE:98 rows copied from test_fkey_0
1765+
NOTICE:100 rows copied from test_fkey_0
17641766
drop_partitions
17651767
-----------------
17661768
10

‎sql/pg_pathman.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,5 +662,6 @@ INSERT INTO test_fkey VALUES(1, 'test');
662662
SELECT drop_partitions('test_fkey');
663663

664664
SELECT create_hash_partitions('test_fkey','id',10);
665+
INSERT INTO test_fkeyVALUES(1,'wrong');
665666
INSERT INTO test_fkeyVALUES(1,'test');
666667
SELECT drop_partitions('test_fkey');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp