freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: "James K. Lowden" <jklowden AT freetds.org>, FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] missing divide by zero error
- Date: Thu, 13 Oct 2016 15:47:52 +0100
2016-10-13 15:15 GMT+01:00 James K. Lowden <james.k.lowden AT icloud.com>:
> On Tue, 11 Oct 2016 14:09:27 -0400
> Adam Baratz <adam.baratz AT gmail.com> wrote:
>
>> I dug into this issue some more. I had misread the log. There was an
>> info response with a "Division by zero occurred." message following
>> the result. My handler ignored it because it came with a severity of
>> 0. The message number, 3607, came through correctly.
>
> That's odd. The severity level comes from the server, and is
> documented to be 10, not 0.
>
> Your log file includes the packet as received from the server. If you
> determine that the server actually sent a severity of zero (which
> vaguely ISTR seeing, too) that would be interesting. If the server
> sent a severity of 10 and your handler was called with 0, that would be
> a bug.
>
Adam attached part of TDSDUMP in the first mail and the server
is filling severity field with 0:
packet.c:639:Received packet
0000 04 01 00 7c 01 7f 01 00-81 01 00 00 00 00 00 21 |...|.... .......!|
0010 00 26 04 00 d1 00 ab 56-00 17 0e 00 00 00 00 1a |.&.....V ........|
0020 00 44 00 69 00 76 00 69-00 73 00 69 00 6f 00 6e |.D.i.v.i .s.i.o.n|
0030 00 20 00 62 00 79 00 20-00 7a 00 65 00 72 00 6f |. .b.y. .z.e.r.o|
0040 00 20 00 6f 00 63 00 63-00 75 00 72 00 72 00 65 |. .o.c.c .u.r.r.e|
Weird but true...
Frediano
-
Re: [freetds] missing divide by zero error,
Adam Baratz, 10/11/2016
- Re: [freetds] missing divide by zero error, Adam Baratz, 10/11/2016
-
Re: [freetds] missing divide by zero error,
James K. Lowden, 10/13/2016
-
Re: [freetds] missing divide by zero error,
Frediano Ziglio, 10/13/2016
- Re: [freetds] missing divide by zero error, Adam Baratz, 10/13/2016
-
Re: [freetds] missing divide by zero error,
Frediano Ziglio, 10/13/2016
Archive powered by MHonArc 2.6.24.