"Przemek M. Zawada" <przemek.zawada (AT) gmail (DOT) com> wrote:
Quote:
I've received lately quite common (as I've researched) error, which
occurs as following:
Commands out of sync; you can't run this command now
The problem is, that I'm not able to determine whether I'm doing
something wrong, my database server is to old or anything else. |
....
Quote:
Fortunately all other things are working fine except the stored procedures.
Any suggestions would be appropriated. |
I suggest to study the manual.
A stored procedure can return many result sets and you have to call
mysql_next_result() (or the equivalent) until it signals "no more
result sets". Only then you can execute the next SQL statement in
this connection.
http://dev.mysql.com/doc/refman/5.1/...xt-result.html
and also
http://dev.mysql.com/doc/refman/5.1/...ored-procedure
XL