diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-08-04 04:28:10 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-08-04 04:28:10 +0000 |
commit | fecc04f95a136bbfbded44c476d597eed6ac6258 (patch) | |
tree | 54db4baacdd7ed61681c0105c9dc54b24203a101 /src | |
parent | ce3d08701058bc046c0126114488746f3fd21dc7 (diff) | |
download | postgresql-fecc04f95a136bbfbded44c476d597eed6ac6258.tar.gz postgresql-fecc04f95a136bbfbded44c476d597eed6ac6258.zip |
This patch fixes in intermittent failure in the regression tests:
there was a race condition between the "alter_table" and "rules"
regression tests. Depending on scheduling, sometimes an ALTER
TABLE command would operate on a relation created by the "rules"
tests, leading to unexpected results.
Neil Conway
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/expected/alter_table.out | 8 | ||||
-rw-r--r-- | src/test/regress/sql/alter_table.sql | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/regress/expected/alter_table.out b/src/test/regress/expected/alter_table.out index 741b012c289..3833600f2b5 100644 --- a/src/test/regress/expected/alter_table.out +++ b/src/test/regress/expected/alter_table.out @@ -615,10 +615,10 @@ ERROR: ALTER TABLE: relation "pg_class" is a system catalog alter table pg_class alter relname set not null; ERROR: ALTER TABLE: relation "pg_class" is a system catalog -- try altering non-existent table, should fail -alter table foo alter column bar set not null; -ERROR: Relation "foo" does not exist -alter table foo alter column bar drop not null; -ERROR: Relation "foo" does not exist +alter table non_existent alter column bar set not null; +ERROR: Relation "non_existent" does not exist +alter table non_existent alter column bar drop not null; +ERROR: Relation "non_existent" does not exist -- test setting columns to null and not null and vice versa -- test checking for null values and primary key create table atacc1 (test int not null); diff --git a/src/test/regress/sql/alter_table.sql b/src/test/regress/sql/alter_table.sql index 8946d2b15b3..6eaae24fa80 100644 --- a/src/test/regress/sql/alter_table.sql +++ b/src/test/regress/sql/alter_table.sql @@ -478,8 +478,8 @@ alter table pg_class alter column relname drop not null; alter table pg_class alter relname set not null; -- try altering non-existent table, should fail -alter table foo alter column bar set not null; -alter table foo alter column bar drop not null; +alter table non_existent alter column bar set not null; +alter table non_existent alter column bar drop not null; -- test setting columns to null and not null and vice versa -- test checking for null values and primary key |