Skip to content

Commit

Permalink
unbreak tests
Browse files Browse the repository at this point in the history
There isn't a way to preserve the original order of attributes in a
CREATE TABLE. This is a feature asked in #61. Let's use alphabetical
order for attributes so tests won't fail.
  • Loading branch information
Euler Taveira committed Sep 9, 2019
1 parent 3332d21 commit 916df90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/from-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ GRANT SELECT(a, b), INSERT (a, b), UPDATE (a, b) ON TABLE same_table_3 TO same_r
--);

CREATE TABLE same_cities (
id serial,
abbrev char(2) not null,
description varchar(80) not null,
abbrev char(2) not null
id serial
) PARTITION BY LIST (abbrev);

CREATE TABLE same_cities_north PARTITION OF same_cities FOR VALUES IN ('AC', 'AM', 'AP', 'PA', 'RO', 'RR', 'TO') PARTITION BY LIST (abbrev);
Expand Down
4 changes: 2 additions & 2 deletions test/to-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ GRANT INSERT, UPDATE (b, c) ON TABLE to_table_2 TO same_role_2;
--) PARTITION BY RANGE (a);

CREATE TABLE same_cities (
id serial,
abbrev char(2) not null,
description varchar(80) not null,
abbrev char(2) not null
id serial
) PARTITION BY LIST (abbrev);

CREATE TABLE same_cities_north PARTITION OF same_cities FOR VALUES IN ('AC', 'AM', 'AP', 'PA', 'RO', 'RR', 'TO') PARTITION BY LIST (abbrev);
Expand Down

0 comments on commit 916df90

Please sign in to comment.