Stored procedure assertion

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
viniciusfbb
Posts: 11
Joined: Thu 07 Mar 2019 01:00

Stored procedure assertion

Post by viniciusfbb » Mon 15 Jun 2020 20:58

Hi, I am using the last version of MyDac in delphi Sydney and sometimes when I execute a stored procedure I'm getting the assertion above
Assertion failure (D:\Projects\Delphi\Dac\MySql\Source\MyClasses.pas, line 1780).
But I don't have the license of the source to investigate it. What is this assertion?

viniciusfbb
Posts: 11
Joined: Thu 07 Mar 2019 01:00

Re: Stored procedure assertion

Post by viniciusfbb » Mon 15 Jun 2020 21:31

It appears to be related to ParamByName('xxxx').AsBytes. When I change to ParamByName('xxxx').AsBlob, the assertion stop.

So I have to ask when I should use AsBytes and when I should use AsBlob? And the the same apply to Fields?

In my case, the parameter of the stored procedure is
IN in_account_uuid binary(16)

viniciusfbb
Posts: 11
Joined: Thu 07 Mar 2019 01:00

Re: Stored procedure assertion

Post by viniciusfbb » Mon 15 Jun 2020 21:46

Sorry, I found the real problem and is in my code. --"

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Stored procedure assertion

Post by ViktorV » Tue 16 Jun 2020 08:03

Thank you for the interest to our product.
It is good to see that the problem has been solved.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply