-
Notifications
You must be signed in to change notification settings - Fork 291
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
Update Constants.php #213
base: master
Are you sure you want to change the base?
Update Constants.php #213
Conversation
Update `_isNULL` and `_notNULL` constants to allow checks to run correctly
Uppercased right expression for type consistency specific to these methods in `isNull` and `isNotNull`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #213 +/- ##
============================================
+ Coverage 90.30% 90.76% +0.46%
Complexity 838 838
============================================
Files 14 14
Lines 2083 2058 -25
============================================
- Hits 1881 1868 -13
+ Misses 202 190 -12 ☔ View full report in Codecov by Sentry. |
Fix tests
Those constants also suppose to build create the actual SQL query string format. There might not be enough or no tests covering them. The Seems the Windows Github Actions Ci needs fixing now. |
It failed the test when I left the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming of the constants and meaning actually represent contents without spacing.
Seems there might be some logic bugs elsewhere that should be looked at too. see
Line 334 in 4bc6a25
private function conditionIs($key, $condition, $combine) |
Line 386 in 4bc6a25
private function processConditions($column, $condition, $value, $valueOrCombine, $extraCombine) |
This construction will actually produced IS NOT NULL null
the $y = 'null'
not really needed.
After looking a little further, there are other issues as mentioned, seems the need for more coverage tests should be done too. Plus test under PHP 8.1 for compatibility, this part I been wanting to do for over 2 months now. Just not in the right mind to address issues, got many other things I'm working on. |
Yea I had originally tried removing this as well but it wouldn't parse without those values so that's why I used the solution that I have as that does parse with no issues. Unfortunately, I'm in the same space as you otherwise I would have sorted this earlier myself. |
Update
_isNULL
and_notNULL
constants to allow checks to run correctly.Discovered that the
isNull
andisNotNull
where conditions were not firing correctly due to incorrectly declared constants.