-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make sure blob columns are correctly converted as parameters #4071
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bantu, @bartv2 and @MorrisJobke to be potential reviewers. |
I'd like to backport this to 11, so we can tell people that they can migrate away from sqlite on 11+ at least, @karlitschek |
nice. please backport 👍 |
Codecov Report
@@ Coverage Diff @@
## master #4071 +/- ##
============================================
- Coverage 54.24% 54.23% -0.01%
- Complexity 21285 21292 +7
============================================
Files 1310 1310
Lines 81187 81199 +12
Branches 1284 1284
============================================
+ Hits 44036 44037 +1
- Misses 37151 37162 +11
Continue to review full report at Codecov.
|
core/Command/Db/ConvertType.php
Outdated
} | ||
|
||
$prefix = $this->config->getSystemValue('dbtableprefix', 'oc_'); | ||
$this->columnTypes[$table][$column] = null; |
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.
setting this makes no difference, isset
will also return false if the value is null.
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.
Right, I used a different value before...
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.
Fixed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Is there anyway to have tests for this? |
The problem is, I can create a test whether 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.
ok lets do this
Fix #173
Fix #3536