Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
fix bug on column comment parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslantalpa committed Jun 21, 2018
1 parent cba8fd6 commit dd0ed46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/cz/startnet/utils/pgdiff/parsers/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ public String parseIdentifier() {
identifier += '.' + parseIdentifierInternal();
}

if (string.charAt(position) == '.') {
position++;
identifier += '.' + parseIdentifierInternal();
}

skipWhitespace();

return identifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ COMMENT ON VIEW test_view IS 'test view';

COMMENT ON COLUMN test_view.id IS 'view id col';

COMMENT ON COLUMN test_view.text IS 'view text col';

COMMENT ON FUNCTION test_fnc(arg character varying) IS 'test function';

COMMENT ON CONSTRAINT text_check ON test IS 'text check';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ COMMENT ON VIEW test_view IS 'test view';

COMMENT ON COLUMN test_view.id IS 'view id col';

COMMENT ON COLUMN public.test_view.text IS 'view text col';

ALTER TABLE test ALTER COLUMN id SET DEFAULT nextval('test_id_seq'::regclass);

Expand Down

0 comments on commit dd0ed46

Please sign in to comment.