]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix comment in test
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 2 Jan 2020 13:40:18 +0000 (14:40 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 2 Jan 2020 13:45:04 +0000 (14:45 +0100)
The comment was apparently copy-and-pasted and did not reflect the
actual test outcome.

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

index 9f6ad4de33be71fc1432456051c7546288b130cb..f3f7c79314a2e1cb97235b4a6a74d4cc3f84fd93 100644 (file)
@@ -505,7 +505,7 @@ CREATE STATISTICS alt_stat1 ON a, b FROM alt_regress_1;
 CREATE STATISTICS alt_stat2 ON a, b FROM alt_regress_1;
 ALTER STATISTICS alt_stat1 RENAME TO alt_stat2;   -- failed (name conflict)
 ERROR:  statistics object "alt_stat2" already exists in schema "alt_nsp1"
-ALTER STATISTICS alt_stat1 RENAME TO alt_stat3;   -- failed (name conflict)
+ALTER STATISTICS alt_stat1 RENAME TO alt_stat3;   -- OK
 ALTER STATISTICS alt_stat2 OWNER TO regress_alter_user2;  -- failed (no role membership)
 ERROR:  must be member of role "regress_alter_user2"
 ALTER STATISTICS alt_stat2 OWNER TO regress_alter_user3;  -- OK
index 311812e351d5e8e8713d6a319b61c3e902fb05b7..cb895024fc568f5b29e39be03d9ec7ccbaf691b7 100644 (file)
@@ -442,7 +442,7 @@ CREATE STATISTICS alt_stat1 ON a, b FROM alt_regress_1;
 CREATE STATISTICS alt_stat2 ON a, b FROM alt_regress_1;
 
 ALTER STATISTICS alt_stat1 RENAME TO alt_stat2;   -- failed (name conflict)
-ALTER STATISTICS alt_stat1 RENAME TO alt_stat3;   -- failed (name conflict)
+ALTER STATISTICS alt_stat1 RENAME TO alt_stat3;   -- OK
 ALTER STATISTICS alt_stat2 OWNER TO regress_alter_user2;  -- failed (no role membership)
 ALTER STATISTICS alt_stat2 OWNER TO regress_alter_user3;  -- OK
 ALTER STATISTICS alt_stat2 SET SCHEMA alt_nsp2;    -- OK