Hello skidowitz,
it also works on Joomla 3.10.
Joomla 9.10 field configuration with 1 fixed option:
Code:
SELECT '1' as value, 'test1' as label;
vi-solutions.de/forum-uploads/sql-statem...-field_1-options.png
Joomla 9.10 field configuration with 2 fixed options:
Code:
SELECT '1' as value, 'test1' as label UNION SELECT '2' as value, 'test2' as label;
vi-solutions.de/forum-uploads/sql-statem...-field_2-options.png
It is very important that there are no tabs or newlines throughout the SQL statement. Otherwise an error occurs.
In earlier versions, at least line breaks were allowed between the select parts, i.e. immediately before the 'union select':
vi-solutions.de/de/support/forum/19-joom...rfach-verzahlen#8157
(use a translation tool like Google Translate)
But that is no longer possible.
No tabs or newlines in the whole SQL statement, which means the whole textarea.
In the best case, the error message only gives the line number in which the error occurs.
Since it is always exactly 1 line, the error message is not particularly meaningful.
Hope this helps!
Best regards, Ingmar