-
Notifications
You must be signed in to change notification settings - Fork 187
Feature/1042 add and
to tags
#1250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0daab33
Checkpoint
lwasylow adbc76e
Address too long identified in 11g.
lwasylow 1478b0d
Adding validation for tag expression
lwasylow b5ad747
Comment out to see why its failing.
lwasylow 06cb054
Revert "Comment out to see why its failing."
lwasylow e87d39f
Adding validate function, with no calls
lwasylow 97537de
Remove a & from text
lwasylow 2a0f99a
Extra changes and added tests
lwasylow 5b46140
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow b30688c
Address sonar coverage issues.
lwasylow 0c41a0f
Adding tests covering exception of invalid tags
lwasylow 543685d
Removing that , we will not implement that, there is no benefit at th…
lwasylow 0d3cfa1
Removing force
lwasylow 20e3177
Changing to use Dijkstra algorithm to parse infix notation into postf…
lwasylow f51cc99
Missing slash at end of type
lwasylow 4b8e2ab
Cleanup.
lwasylow 84e8684
Update tests after removed function
lwasylow 2e7a766
Tidy up tests
lwasylow cbdf83a
Added ut_stack to uninstall
lwasylow 436eb5b
Addressing test failures and sonar smells
lwasylow 3d77514
Update name
lwasylow bf6959f
Update tests and code
lwasylow d8233ff
fixing typo in docs
lwasylow bd860f6
Removed unused variable
lwasylow 313d5e9
Stage 1 Resolving PR comments
lwasylow 02a071c
Separate tag logic.
lwasylow b8b66ee
Fix uninstall
lwasylow 077fdb1
Various PR fixe
lwasylow 01e5364
Update tests and code
lwasylow dc0b4a6
Addressing changes via PR review.
lwasylow ef1c02b
Update docs
lwasylow 1551ea5
Adding any and none
lwasylow 9dee7e0
Update docs
lwasylow beb9a3a
Resolving PR
lwasylow 46ffe73
Update note
lwasylow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changing to use Dijkstra algorithm to parse infix notation into postf…
…ix ( Reverse Polish Notation). This allows us to more flexibility of using boolean expressions and not limited to flaky regex.
- Loading branch information
commit 20e317742e00f5299b2abd2675160d4b2cc38b86
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
create or replace type body ut_stack as | ||
/* | ||
utPLSQL - Version 3 | ||
Copyright 2016 - 2021 utPLSQL Project | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"): | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
constructor function ut_stack( self in out nocopy ut_stack) return self as result is | ||
begin | ||
self.tokens := ut_varchar2_list(); | ||
self.top := 0; | ||
return; | ||
end ut_stack; | ||
|
||
member function peek(self in out nocopy ut_stack) return varchar2 is | ||
l_token varchar2(32767); | ||
begin | ||
if self.tokens.count =0 or self.tokens is null then | ||
l_token := null; | ||
else | ||
l_token := self.tokens(self.tokens.last); | ||
end if; | ||
return l_token; | ||
end; | ||
|
||
member procedure push(self in out nocopy ut_stack, a_token varchar2) is | ||
begin | ||
self.tokens.extend; | ||
self.tokens(self.tokens.last) := a_token; | ||
self.top := self.tokens.count; | ||
end push; | ||
|
||
member procedure pop(self in out nocopy ut_stack,a_cnt in integer default 1) is | ||
begin | ||
self.tokens.trim(a_cnt); | ||
self.top := self.tokens.count; | ||
end pop; | ||
|
||
member function pop(self in out nocopy ut_stack) return varchar2 is | ||
l_token varchar2(32767) := self.tokens(self.tokens.last); | ||
begin | ||
self.pop(); | ||
return l_token; | ||
end; | ||
end; | ||
/ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
create or replace type ut_stack as object ( | ||
top integer, | ||
tokens ut_varchar2_list, | ||
/* | ||
utPLSQL - Version 3 | ||
Copyright 2016 - 2021 utPLSQL Project | ||
lwasylow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License"): | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
constructor function ut_stack( self in out nocopy ut_stack) return self as result, | ||
member function peek(self in out nocopy ut_stack) return varchar2, | ||
member procedure push(self in out nocopy ut_stack, a_token varchar2), | ||
member procedure pop(self in out nocopy ut_stack,a_cnt in integer default 1), | ||
member function pop(self in out nocopy ut_stack) return varchar2 | ||
) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.