Repository navigation
Fix Cache::update() to reset column on oracle - #31989
Conversation
|
|
||
| // Oracle does not support empty string values so we convert them to nulls | ||
| // https://github.com/owncloud/core/issues/31692 | ||
| if ($this->connection->getDatabasePlatform()->getName() === 'oracle') { |
There was a problem hiding this comment.
usually we go for
if ($this->connection->getDatabasePlatform() instanceof OraclePlatform) {There was a problem hiding this comment.
Will push changes after/if more change requests arrive to conserve ci-ressources.
b2dd00f to
d7ed633
Compare
Codecov Report
@@ Coverage Diff @@
## master #31989 +/- ##
============================================
+ Coverage 63.49% 63.49% +<.01%
- Complexity 18547 18550 +3
============================================
Files 1167 1167
Lines 69548 69551 +3
Branches 1264 1264
============================================
+ Hits 44159 44162 +3
Misses 25020 25020
Partials 369 369
Continue to review full report at Codecov.
|
d7ed633 to
828e0c6
Compare
|
@IljaN try running Wow, it looks like your fix worked and passed on Oracle! In previous attempts I was struggling because of the "is null" condition but didn't think of just converting all values. Well done. So far I can't think of any side effect that could happen here. It is likely that this also fixes other yet undiscovered bugs. |
828e0c6 to
97d0454
Compare
|
Backport here: #31996 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
FileCache columns were not reset on oracle when an empty value was passed instead of null.
Related Issue
How Has This Been Tested?
Unit-tests
Types of changes
Checklist:
Open tasks: