Use postgres native array_position function instead of our FIELD function and pass it as array literal instead of variadic function

Otherwise we will run into errors, that we can not give more than 100 arguments to a function
This commit is contained in:
Jan Böhmer 2024-06-17 23:13:04 +02:00
parent 8bb8118d9f
commit 0a482da93e
4 changed files with 90 additions and 17 deletions

View file

@ -47,6 +47,7 @@ doctrine:
field: DoctrineExtensions\Query\Mysql\Field
field2: App\Doctrine\Functions\Field2
natsort: App\Doctrine\Functions\Natsort
array_position: App\Doctrine\Functions\ArrayPosition
when@test:
doctrine: