fix(federation): Allow Oracles empty strings#49750
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
can we fix this in the QueryBuilder directly and not just at the QBMapper level ? |
It's not the query builder but the entity. The problem is when explicit null is allowed, we shouldn't map it to an empty string. |
|
So IIRC Oracle doesn't have |
Other way around, empty strings |
|
Let's merge this for now, so Talk tests are green again and then we can have a look at the general Entity patch later. |
|
@ArtificialOwl after some further checking, you marked the column nullable / server/core/Migrations/Version31000Date20240101084401.php Lines 89 to 93 in 91a83b6 So in this case the entity also needs to be able to understand null and the change in this PR is actually required, regardless of any other entity fiddling for empty strings. server/lib/private/DB/MigrationService.php Lines 570 to 573 in 91a83b6 I guess it did and that is when you changed changed the schema, but didn't adjust the entity to also allow null. |
Cannot assign null to property NCU\\Security\\Signature\\Model\\Signatory::$account of type string in file '/home/runner/actions-runner/_work/spreed/spreed/host/lib/public/AppFramework/Db/Entity.php' line 149Summary
$this->addType('account', 'string');to specify if they are "nullable" and if not "heal oracle" by converting null to empty string?Checklist