Jan Böhmer
|
0a482da93e
|
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
|
2024-06-17 23:13:04 +02:00 |
|
Jan Böhmer
|
8a42dfa154
|
Use the FIELD function on postgres for order by field value
|
2024-06-17 21:20:23 +02:00 |
|
Jan Böhmer
|
4f75e2641b
|
Define a custom FIELD function to sort tables by list of ids without the emulation via string operations
|
2024-06-16 23:46:40 +02:00 |
|
Jan Böhmer
|
11be65678e
|
Fixed order by FIELD emulation on sqlite via INSTR
We need to search for the comma token separators at both ends of the search term, otherwise the ordering will be wrong.
|
2023-07-29 17:06:35 +02:00 |
|
Jan Böhmer
|
80ed064cd6
|
Emulate the field function in SQLIte by using an string search, instead of our PHP function callback
|
2023-07-29 16:50:47 +02:00 |
|
Jan Böhmer
|
62b1e33616
|
Fixed field ordering on SQLite
|
2023-07-29 16:42:27 +02:00 |
|