-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(share): Return empty string if no label is set #48673
Conversation
/backport to stable30 |
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.
Oh then you can actually revert #47551 where I thought this was intended but wrongly documented!
It was already broken before 30 as well, so please backport to 29 and 28 as well.
I am not sure. The PHP documentation is only stating strings, but the DB accepts null. I personally think |
I thought some DB will treat null and empty string the same anyway and so we cannot differentiate in DB, no? |
Yeah, Oracle treats empty strings as NULL. |
* Resolves: #48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This reverts commit 01c4fa3. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
cee1ad5
to
64dd4ce
Compare
Done |
/backport to stable29 |
@susnux not 28? |
/backport to stable28 |
Summary
While the database supports NULL, the typing has always said it only returns string. So to not break any apps that might trust the typings we should return
''
if the database is set toNULL
.Checklist