Problem with Stored Procedure execution

Problem with Stored Procedure execution

am 11.12.2004 17:43:17 von gabriele zelasco

--=======AVGMAIL-41BB23A52A7D=======
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C4DFA8.E5A62FF0"

------=_NextPart_000_0013_01C4DFA8.E5A62FF0
Content-Type: text/plain; charset=Windows-1252
Content-Transfer-Encoding: quoted-printable

Hi , Sorry for my English,

My configuration is:
Win2000 SP4, Mysql server and clients alpha 5.0.1, MyOdbc 3.51.10
Well, when I try to execute a simple SP like this:

CREATE PROCEDURE `db01`.`Sp01`()
BEGIN
SELECT nome,cognome FROM TbAna;
END

I got the "famous" error message :=20
Error Code : 1311 SELECT in a stored procedure must have INTO

I've already read about it on your site

MySQL Bugs: #2273: SELECT in a stored procedure must have INTO and

MySQL Bugs: #2658: SELECT in a stored procedure must have INTO
My questions are the following:
When I call Sp01 from the consolle (mysql > call Sp01();) or from MySql =
Query Browser 1.1.2 it works (I got a resultset)
but when I try the same from VB6 (with correct syntax) or from other =
apps such as SQLyog, EMS, ecc. I got the error (err.1311) ??
Well I've read everything about it in the web.=20
Someone talks about Client Flags (CLIENT_MULTI_RESULTS ON) but I seem =
that it can be set=20
only by C API (mysql_real_connect(&mysql,...,CLIENT_MULTI_RESULTS);) and =
I would like to resolve using ODBC.
So, setting client flag is the solution ? Can I set that in MyOdbc ? =
I've to wait for 3.53 release ?
Why I got result with consolle and no result with other apps or VB ? =
Have you a solution ?

Thank in advance=20

Gabriele Zelasco (Italy)




------=_NextPart_000_0013_01C4DFA8.E5A62FF0
Content-Type: text/html; charset=Windows-1252
Content-Transfer-Encoding: quoted-printable



charset=3Dwindows-1252">




Hi , Sorry for my English,

 

My configuration is:

Win2000 SP4, Mysql server and clients =
alpha 5.0.1,=20
MyOdbc 3.51.10

Well, when I try to execute a simple SP =
like=20
this:

 

CREATE PROCEDURE =
`db01`.`Sp01`()
BEGIN
SELECT=20
nome,cognome FROM TbAna;
END

 

I got the "famous" error message : =

Error Code : 1311 SELECT in a stored =
procedure must=20
have INTO

 

I've already read about it on your=20
site



style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt; mso-ansi-language: EN-GB">MySQL=20
Bugs: #2273: SELECT in a stored procedure must have INTO  =
and
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Arial =
Unicode MS'"> prefix =3D o ns =3D "urn:schemas-microsoft-com:office:office"=20
/>

style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt; mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times New =
Roman'; mso-fareast-language: IT; mso-bidi-language: AR-SA">MySQL=20
Bugs: #2658: SELECT in a stored procedure must have =
INTO


My questions are the =
following:

When I call Sp01 from the consolle =
(mysql >=20
call Sp01();) or from MySql Query Browser 1.1.2 it works (I got a=20
resultset)

but when I try the same from VB6 (with =
correct=20
syntax) or from other apps such as SQLyog, EMS, ecc. I got the error =
(err.1311)=20
??

Well I've read everything about =
it in the web.=20

Someone talks about Client Flags=20
(CLIENT_MULTI_RESULTS ON) but I seem that it can be set =

only by size=3D2>C API size=3D3> size=3D2>(mysql_real_connect(&mysql,...,CLIENT_MULTI_RES ULTS);)=20
and I would like to resolve using ODBC.

So, =
setting client flag=20
is the solution ? Can I set that in MyOdbc ? I've to wait for 3.53 =
release=20
?

Why I got =
result with=20
consolle and no result with other apps or VB ? Have you a solution=20
?

size=3D2> 

Thank in =
advance=20

size=3D2> 

Gabriele =
Zelasco=20
(Italy)



 

   =


------=_NextPart_000_0013_01C4DFA8.E5A62FF0--
--=======AVGMAIL-41BB23A52A7D=======
Content-Type: text/plain; x-avg=cert; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Description: "AVG certification"

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.5.0 - Release Date: 09/12/2004


--=======AVGMAIL-41BB23A52A7D=======
Content-Type: text/plain; charset=us-ascii

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32@m.gmane.org
--=======AVGMAIL-41BB23A52A7D=======--