Re: missing divide by zero error
Frediano Ziglio <[email protected]> Thu, 13 Oct 2016 15:47:52 +0100
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4dMwAGT1vxjPcVXqWKtChc1KSTdDesdSKKzf_1pzjn3Gg@mail.gmail.com> |
2016-10-13 15:15 GMT+01:00 James K. Lowden <[email protected]>: > On Tue, 11 Oct 2016 14:09:27 -0400 > Adam Baratz <[email protected]> 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