Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix problem with identifying annotations when windows newline is used#435

Merged
jgebal merged 4 commits intoutPLSQL:developfrom
pesse:fix_newline_in_annotations
Aug 3, 2017
Merged

Fix problem with identifying annotations when windows newline is used#435
jgebal merged 4 commits intoutPLSQL:developfrom
pesse:fix_newline_in_annotations

Conversation

@pesse
Copy link
Copy Markdown
Member

@pesse pesse commented Aug 2, 2017

Had this strange behaviour today in a project where I develop on a windows machine using dbForge

@pesse pesse changed the title Fix problem with identifying annotations on when windows newline is used Fix problem with identifying annotations when windows newline is used Aug 2, 2017
accidentially changed suffix by using dbForge editor
@jgebal jgebal added the bugfix label Aug 2, 2017
@jgebal jgebal added this to the v3.1.0 milestone Aug 2, 2017
Copy link
Copy Markdown
Member

@jgebal jgebal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pesse
Thanks for finding the bug and the contribution.
Can you move the fix to the sourcing fucntion?

Comment thread source/core/ut_annotations.pkb Outdated

-- strip everything except the annotation itself (spaces and others)
l_annotation_str := regexp_substr(l_comment, c_annotation_pattern, 1, 1, modifier => 'i');
l_annotation_str := regexp_substr(trim(translate(l_comment, chr(10)||chr(13), ' ')), c_annotation_pattern, 1, 1, modifier => 'i');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it would be better to put the fix into: ut_metadata.get_package_spec_source so that the whole source that we parse have Unix-style end of line.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed and fixed. Thanks for the hint.

pesse and others added 2 commits August 3, 2017 08:31
…ested.

Can't use translate here but the little slower performance of replace shouldn't be a problem
@jgebal jgebal merged commit b236bf7 into utPLSQL:develop Aug 3, 2017
@Pazus Pazus modified the milestones: v3.0.3, v3.1.0 Aug 5, 2017
@pesse pesse deleted the fix_newline_in_annotations branch August 9, 2017 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants