LibreOffice Base now does not apply named parameter substitution after upgrade from LO 6.0 to LO 6.1 and this breaks subforms based on mysql/mariadb tables

I have two simle mysql tables with no relationships set between them.
The database containing those tables is MariaDb and the JDBC driver I use to
connect is mariadb-java-client-2.2.6.
Both have a field named "num_vin" among various other fields.
And I created a simple form containing a subform.
The Main form has fields from table1, including "num_vin", and the Subform
has fields from table2, including "num_vin".

And I have set that the Main form field "num_vin" is connected to Sub form's
field "num_vin" so that when a record is shown in the Main form, it's
corresponding record will be shown in the Sub form.

This is all done in the GUI of LibreOffice Base, no basic code or macros
were used.

Now this all used to work (and is still working) in LibreOffice 6.0.6, but
in LibreOffice 6.1.0 throws this exception:

Could not set parameter at position 1 (values was 19)
Query - conn:10(M) - "SELECT * FROM `database`.`table2` WHERE (
`database`.`table2`.`num_vin` = :link_from_num_vin )"

And the Subform stays empty.

More precisely,

This happens only within odb files created with LibreOffice-6.0.6 and older.
And it is due to a setting of the driver <db:driver-settings
db:system-driver-settings="" db:base-dn=""
db:parameter-name-substitution="false"/>, which is present in the
content.xml file, within the .odb file.

But if one alters the above setting like this:

OLD SETTING:<db:driver-settings db:system-driver-settings="" db:base-dn=""
db:parameter-name-substitution="false"/>
NEW SETTING:<db:driver-settings db:system-driver-settings="" db:base-dn=""/>

Then in LibreOffice-6.1.0 the Subforms start working as expected again.

I hope this helps someone.

Hi toodr,

this is https://bugs.documentfoundation.org/show_bug.cgi?id=118112

Hope it will be fixed. Not everybody is able to change the content.xml.

Regards

Robert

Thanks for pointing me to this bug description.
I wasn't aware of it.

Quite a few .odb files I'll have to edit by hand.
Some of them dating back to 2010!

It seems that for the sqllight .odb files there is an option under Edit →
Database → Advanced Settings

http://document-foundation-mail-archive.969070.n3.nabble.com/Error-messge-interpretation-tp4244053p4244531.html

and I can't find it in my .odb file, because it is a mysql database.

Anyway it'll be good to have some easy way of resolving the "convertions" of
old .odb files, i.e. - created by older versions of LibreOffice.