Search found 6 matches

by que
14.11.2006, 11:02
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

Hehe.... i just found the solution for my problem:

Just added connection property
CLIENT_MULTI_STATEMENTS=true

After this calls to stored procs work in TZQuery :)
by que
14.11.2006, 10:29
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

using triggers is not best solution:
1) loss of flexibility, complicated process flow understanding and unhandy debugging
2) unsuitable for my problem - loading data, not storing :)
by que
14.11.2006, 09:50
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

functions via select, procedures via call like i wrote above: call spMySuperSP(param); :) I'm writing megasecure app with all its logic on server side, so my app will communicate with db hrough sp calls not via select/insert/update an so on. That's why i'm asking about full sp support, not only one ...
by que
14.11.2006, 09:26
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

example

Code: Select all

DELIMITER $$

DROP PROCEDURE IF EXISTS `test`.`spMySuperSP`$$

CREATE DEFINER=`root`@`localhost` PROCEDURE `spMySuperSP`()
    READS SQL DATA
BEGIN
  select * from b;
END$$

DELIMITER ;
by que
14.11.2006, 09:21
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

zippo Procedures do not return values if I'm not wrong - functions do that. Functions returns only scalar data types, but procedures returns data through OUT or INOUT parameters or returns datasets like SELECT operator, but i can not use 'call spMySuperSP(param);' in TZQuery, cause mysqlerror "...
by que
14.11.2006, 08:53
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4166

ZStoredProc is not implemented for mysql
:((((((
My stored procedure returns dataset... Is there any other way i can use it?
Or when sp support will be implemented?