Having just upgraded my local LibreOffice instal from version 7.3.3 to v. 7.3.5, I find that one of my Base FORMS with a LIST BOX throws an error when the form is opened. Basically, the listbox allows a client name to be selected using a drop-down and the SQL code for the listbox concatenates the client’s last and first names and the client ID (integer) is written to a filter table (to show that client’s records in the form.
The listbox code is:
SELECT COALESCE ( “lastname”, ‘’ ) || ', ’ || COALESCE ( “firstname”, ‘’ ), “id_cl” FROM “clients” ORDER BY “lastname” ASC
The above code worked fine with Base in LO 7.3.3 but throws the error below with LO 7.3.5…
firebird_sdbc error:
*arithmetic exception, numeric overflow, or string truncation
*string right truncation
*expected length 34, actual 69
caused by
‘isc_dsql_fetch’
The last name and first name columns of the clients table are both VCHAR(16). NOTE: If I change them both to VCHAR(50) the error changes also to…
*expected length 102, actual 205
- So the ‘actual’ value above seems to be the expected length+1
- And the ‘expected length’ is the sum of the two NAME field-lengths+2
I have tried this with setting different settings for the allowed 2 name-fields, and the above formula holds good.
Does anyone know what is going on here. It seems to be a bug?