Problem: Queries that perform a LIST DISTINCT statement or a COALESCE in the SELECT portion return blank on reports.
The queries return all data and work great on their own but when used for a report, the fields that are based on the LIST or COALESCE statements are returning blank and looking at the formatting of the fields in the report, it’s picking them up as a numeral, even though LIST should return a string. The underlying table fields that the LIST and COALESCE statements are querying are set to text(VARCHAR).
If I set the formatting to TEXT for those fields in the report then rather than returning the data, it returns errors in the text box such as:
Any[Type[com.sun.star.sdbc.XClob], com.sun.star.bridges.jni_uno.JNI_proxy@7ce85af2 [oid=600022c74d20;gcc3[0];e84d90162d54bac8b9446ba93ce34f, type=com.sun.star.sdbc.XClob]]
You can recreate the issue fast and easily by creating a table called “Contacts” with three columns “Name”, “Address”, “Tel”. Set all to text VARCHAR and let it set the ID primary on save. Put some rows of dummy data. Then create this query:
“Name”,
LIST(DISTINCT “Address”) AS “Address1”,
“Tel”
FROM
“Contacts”
GROUP BY
“Name”,
“Tel”
Then open a report, drag Address1 to the detail and run the report. You will see (or more accurately wont see because it will be blank) the problem.
Does anyone please know how to fix this? The query runs perfectly, so what could be causing the issue?
Running LibreOffice 24.2 (Firebird embedded)