Search found 11 matches

by Asis
20.04.2007, 09:02
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Update Failed On Complex Query
Replies: 9
Views: 2662

Try to enumerate field names in zquerymaster SQL explicitly.
by Asis
10.04.2007, 13:56
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

It seems to be a bug. I couldn't found out the reason of this error but I've found some way to avoid or weaken it. You may extract code that works with statement's resultset and move it in a single method. Example: procedure DoExecute; begin if Stmt.Execute('call proc();') then begin DoProcessRS(); ...
by Asis
09.04.2007, 10:16
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

As far as I know, the reason of this trouble is not a closed connection.
It's, very likely, logical sequence of MySQL API calls breaks somewhere.

Could you give more detailed info, namely:
- stored procedure code;
- program code fragment that retrieves resultsets.
by Asis
29.03.2007, 11:56
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Update Failed On Complex Query
Replies: 9
Views: 2662

I got the same error lately. You might have forgotten to fill up property UpdateObject of your ZQuery component. If you havn't, try to place in ZUpdateSQL.SQL.Text this: ZUpdateSQL.ModifySQL.text='update k set name=:name where id=:old_id'; and do not forget to insert field 'id' in SELECT clause of y...
by Asis
06.03.2007, 12:35
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

I can't imagin which code you would like to write using dbc level. Here is the sample of client's code that should handle multiple result sets: procedure TForm1.Button1Click(Sender: TObject); var conn: IZConnection; stmt: IZStatement; rs: IZResultSet; updateCount: integer; begin ZConnection1.Connec...
by Asis
05.03.2007, 15:16
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

Hi Mark, I agree with you. It's not convenient to get access to multiple result sets through ZQuery component. But what about dbc level. Comments in unit ZDbcMySQLStatement.pas say: The methods <code>execute</code>, <code>getMoreResults</code>, <code>getResultSet</code>, and <code>getUpdateCount</co...
by Asis
03.03.2007, 17:56
Forum: MySQL
Topic: MySQL5 - Stored procedures
Replies: 17
Views: 8565

...but i still cannot find a solution regarding my problem. using CLIENT_MULTI_STATEMENTS=1 i'm able to accept multiple results. if i try while not zquery1.eof do begin ---CODE--- zquery1.next end; i only browse results included in the first resultset ... how can i browse to the second result set? ...
by Asis
03.03.2007, 17:46
Forum: MySQL
Topic: MySQL5 - Stored procedures
Replies: 17
Views: 8565

Hi, I'm using mysql 5.0 and the newest beta components. I tried to use a stored procedure using the tzquery.sql property. But If I have an OUT Variable in the stored procedure I get an error. Out or INOUT argument 2 for NEUER_KUNDE is not a variable. The Code of the storec Procedure is the followin...
by Asis
02.03.2007, 16:53
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

hello i also have a similar problem. I pass this parameter show that i do not receive an error, but how do i browse through the different results? As I see, currently Zeos Lib doesn't support multiple statements for MySQL. Property CLIENT_MULTI_STATEMENTS=1 only lets you avoid errors like 'Can't Re...
by Asis
13.12.2006, 13:39
Forum: MySQL
Topic: MySQL5 - Stored procedures
Replies: 17
Views: 8565

MySQL5 - Stored procedures

to awerner:

Code: Select all

ZConnection.Properties.Add('CLIENT_MULTI_STATEMENTS=1');
ZConnection.Connect;
From now you can execute SP, that return resultset.
For instance:

Code: Select all

  ZQuery1.SQL.Add('call myproc();');
  ZQuery1.Open;
by Asis
13.12.2006, 13:19
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL 5 stored procedures and ZEOSDBO beta
Replies: 16
Views: 6120

MySQL 5 stored procedures and ZEOSDBO beta

I had the same problem until I'd explored the sources. To get multiple resultset via stored procedure call, you should pass parameter CLIENT_MULTI_STATEMENTS to connection. To do this, add string 'CLIENT_MULTI_STATEMENTS=1' to property ZConnection1.Properties. Note that the string doesn't contain sp...