TZReadOnlyQuery shows error with valid query

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
poetzschpadborg
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 09.01.2023, 09:52

TZReadOnlyQuery shows error with valid query

Post by poetzschpadborg »

Hi,
I am new to this forum, but I have been using ZeosLib Components with Delphi and Lazarus for the past 10 years or so. I'm mostly using it to access MySQL Databases.

Now I have run into a strange Problem with TZReadOnlyQuery.

In my MariaDB database I have a pretty complex stored procedure that takes some input parameters, one inout param and one out param. Because of the error I get, when I try to call it with TZReadOnlyQuery, I have made a very simple procedure to test it.
This is my test procedure:
Image

I tried to call this procedure from different MySQL query/managment tools with this statement:

Code: Select all

select @x = 'inputparam';
call MyProc(@x, @y);
select @x, @y;
I get the expected answer: a dataset with one record and two fields like this:
Image

But when I add the same query statement to a TZReadOnlyQuery and try to open it I get an error message:
errormessage.jpg
Does anyone around here have any idea why this happens and how to work around it?

TIA
Lutz Kutscher

BTW: I tried to add my procedure definition and call as text, but then my post was blocked: Image
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: TZReadOnlyQuery shows error with valid query

Post by marsupilami »

Hello Lutz,

I am pretty sure, Zeos 7.2 doesn't support inout params. Could you test what happens on Zeos 8.0? Zeos 8.0 is currently only available from the SVN or from Github.

About the blocked message: This forum is run on Servers from SourceForge and we use MySQL as the forums database. I assume, they try to protect themselves and us from SQL injection by some software. This is something we cannot change in any way.

With best regards,

Jan
Post Reply