freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010)
- From: "Bower, Wayne (Wayne)" <Wayne.Bower AT lsi.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010)
- Date: Sat, 3 Mar 2012 17:34:00 -0500
The problem appears to be restricted only to procedures with output
parameters. We have not encountered the problem with any procedure that only
has input parameters.
We can only avoid the problem by either not using 'SET NOCOUNT ON' or moving
'SET NOCOUNT ON' to a later point in the procedure. This is demonstrated by
the different examples in the test case. Also note that having output
parameters and 'SET NOCOUNT ON' as the first statement does not guarantee
failure as shown with the example that begins with print "\nCreate $proc with
input, output, select, init SET NOCOUNT\n";
Please let me know if you need more information.
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of James K. Lowden
Sent: Saturday, March 03, 2012 3:16 PM
To: freetds AT lists.ibiblio.org
Subject: Re: [freetds] [unixODBC][Driver Manager]Function sequence error
(SQL-HY010)
On Fri, 2 Mar 2012 16:43:39 -0500
"Bower, Wayne (Wayne)" <Wayne.Bower AT lsi.com> wrote:
> Essentially the issue appears to be related to using 'SET NOCOUNT ON'
> in a stored procedure. The script creates a procedure and executes
> it. The cases that fail issue the message '[unixODBC][Driver Manager]
> Function sequence error (SQL-HY010)'. To avoid the failure I have to
> either remove 'SET NOCOUNT ON' or move later in the procedure. Keep
> in mind that this is just a test case to reveal the issue. In our
> actual code we always start each procedure with 'SET NOCOUNT ON' and
> do much more than shown in this test case.
Is the problem restricted to procedures that pass parameters? If not,
does bsqldb exhibit the same symptoms? If so, could you provide just
the SQL?
If parameters are required to provoke the problem, I would alter
src/odbc/unittests/rpc.c to induce it. It tried the attached patch;
it did not alter the outcome of the test.
HTH.
--jkl
-
[freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Bower, Wayne (Wayne), 03/02/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
James K. Lowden, 03/03/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Bower, Wayne (Wayne), 03/03/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Frediano Ziglio, 03/03/2012
- Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010), Bower, Wayne (Wayne), 03/04/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Bower, Wayne (Wayne), 03/04/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Ken Collins, 03/04/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
James K. Lowden, 03/04/2012
- [freetds] patches, releases, git (was Re: [unixODBC][Driver Manager]Function sequence error (SQL-HY010)), Craig A. Berry, 03/05/2012
- Re: [freetds] patches, releases, git (was Re: [unixODBC][Driver Manager]Function sequence error (SQL-HY010)), Frediano Ziglio, 03/08/2012
- Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010), Frediano Ziglio, 03/08/2012
- [freetds] git going (was: Function sequence error (SQL-HY010)), James K. Lowden, 03/10/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
James K. Lowden, 03/04/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Ken Collins, 03/04/2012
- Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010), Frediano Ziglio, 03/04/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Frediano Ziglio, 03/03/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
Bower, Wayne (Wayne), 03/03/2012
-
Re: [freetds] [unixODBC][Driver Manager]Function sequence error (SQL-HY010),
James K. Lowden, 03/03/2012
Archive powered by MHonArc 2.6.24.