Skip to content
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

Photos app broken with oracle #2594

Open
nickvergessen opened this issue Aug 13, 2024 · 1 comment
Open

Photos app broken with oracle #2594

nickvergessen opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working

Comments

@nickvergessen
Copy link
Member


1) OCA\Photos\Tests\Album\AlbumMapperTest::testCreateGet
OC\DB\Exceptions\DbalException: An exception occurred while executing a query: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_photos_albums"."location")
Help: https://docs.oracle.com/error-help/db/ora-01400/

/home/runner/actions-runner/_work/photos/photos/lib/private/DB/Exceptions/DbalException.php:54
/home/runner/actions-runner/_work/photos/photos/lib/private/DB/ConnectionAdapter.php:67
/home/runner/actions-runner/_work/photos/photos/lib/private/DB/QueryBuilder/QueryBuilder.php:291
/home/runner/actions-runner/_work/photos/photos/apps/photos/lib/Album/AlbumMapper.php:65
/home/runner/actions-runner/_work/photos/photos/apps/photos/tests/Album/AlbumMapperTest.php:121

The column is defined as "Not null" but we try to store empty strings. Empty strings are null in oracle. So either we need to always provide a value, or make the column nullable

@nickvergessen nickvergessen added bug Something isn't working 1. to develop Accepted and waiting to be taken care of labels Aug 13, 2024
@sorbaugh
Copy link

@yemkareems could you please take a look 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants