Page 1 of 1

exception in TZMariaDBBatchDMLPreparedStatement

Posted: 19.07.2024, 07:40
by dcoun
I am using the last 8.0-patches from Github for zeos (https://github.com/marsupilami79/zeoslib)

I am getting exception in the following zeos code in a connection to a mariadb database from a TRestBatch in mormot2:
File ZDbcMySqlStatement, line 3201
(in a gist as cloudflare does not allow to post it)
https://gist.github.com/dkounal/cede7aa ... 3a600d1e9a

The above is called by mormot.db.sql.zeos line 1085 TZeosArrayBinding.Create(aStatement: TSqlDBZeosStatement) called by TSqlDBZeosStatement.ExecutePrepared for a Trestbatch

The problem above seems to be that Bind^.indicators is null when exception happens with ParameterIndex=0
Is there a way to overcome it?
Thank you in advance

Re: exception in TZMariaDBBatchDMLPreparedStatement

Posted: 19.07.2024, 09:19
by dcoun
I updated the libmariadb.dll to latest version from here (https://dlm.mariadb.com/browse/c_connector/) and I can not reproduce it for the moment.
So, I will report back if it continues