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

Commit5862cda

Browse files
committed
Fix an ALTER TABLE test case so that it actually tests what the comment says it
is testing. Ah, the perils of making keywords optional ...
1 parent8374246 commit5862cda

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ alter table atacc3 inherit atacc2;
351351
ERROR: child table is missing column "test2"
352352
-- fail due to mismatched data type
353353
alter table atacc3 add test2 bool;
354-
alter table atacc3 add inherit atacc2;
354+
alter table atacc3 inherit atacc2;
355+
ERROR: child table "atacc3" has different type for column "test2"
355356
alter table atacc3 drop test2;
356357
-- succeed
357358
alter table atacc3 add test2 int;

‎src/test/regress/sql/alter_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ alter table atacc3 rename test2 to testx;
373373
altertable atacc3 inherit atacc2;
374374
-- fail due to mismatched data type
375375
altertable atacc3 add test2 bool;
376-
altertable atacc3addinherit atacc2;
376+
altertable atacc3 inherit atacc2;
377377
altertable atacc3 drop test2;
378378
-- succeed
379379
altertable atacc3 add test2int;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp