You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are also edge cases where mysql and maria have different behavior
I'm fine with adding a parameter to getDatabaseProvider() or a second method, which returns different for MySQL and MariaDB. We can't change the default as that would break quite some other places. But we must make sure that only OCP constants are returned, so it doesn't break when updating doctrine.
Side note: But the actual problem is that you use polygon database type which is not supported by all databases we support. Ref doctrine/dbal#2334
But the actual problem is that you use polygon database type which is not supported by all databases we support
Correct. It's not possible to do a real 2D lookup without some geometric type. Right now mysql / mariadb / postgres work fine (sqlite might work with some work, but doesn't seem worth the effort)
Activity
pulsejet commentedon Mar 1, 2025
There are also edge cases where mysql and maria have different behavior
https://github.com/pulsejet/memories/blob/7c9ed8adba2ffaf99362db8fe5ffecc6d88a8088/lib/Service/Places.php#L444-L446
susnux commentedon Mar 1, 2025
IIRC its needed for Doctrine DBAL 4.0 support, ref: #46192
cc @nickvergessen
nickvergessen commentedon Mar 1, 2025
Yeah we can not keep them and we should not expose them.
Upstreaming? It sounds roughly like https://github.com/nextcloud/server/blob/master/lib/private/DB/QueryBuilder/QueryBuilder.php#L160-L188 But I also sometimes miss getting an "executable query" back or logged.
Alternative: Upstream 😎
I'm fine with adding a parameter to
getDatabaseProvider()or a second method, which returns different for MySQL and MariaDB. We can't change the default as that would break quite some other places. But we must make sure that only OCP constants are returned, so it doesn't break when updating doctrine.Side note: But the actual problem is that you use polygon database type which is not supported by all databases we support. Ref doctrine/dbal#2334
pulsejet commentedon Mar 2, 2025
Noted, I'll make a migration plan then. Thanks for the prompt response!
This will likely be needed first, I'll cook up something if possible.
Thanks!
pulsejet commentedon Mar 2, 2025
Correct. It's not possible to do a real 2D lookup without some geometric type. Right now mysql / mariadb / postgres work fine (sqlite might work with some work, but doesn't seem worth the effort)
feat(db): add method to test mariadb
feat(db): add method to test mariadb
feat(db): add method to test mariadb
feat(database): Add option to test for mariadb
feat(database): Add option to test for mariadb