[freetds] missing divide by zero error

Adam Baratz adam.baratz at gmail.com
Wed Sep 14 16:50:08 EDT 2016

I'm running into an issue where a "SELECT 1/0" query returns a NULL result
instead of an error. I attached the relevant snippet from the TDSDUMP
output (the packet continues with some host information). The result is
coming back as TDS7_RESULT instead of ERROR, but part of it includes the
error message. I took a look at the appropriate spec[1], but I'm having
trouble understanding the format. Does anyone have thoughts on what's going
on? I'm using MSSQL with TDS 7.2.


[1] http://www.freetds.org/tds.html#t129
-------------- next part --------------
A non-text attachment was scrubbed...
Name: div0.log
Type: application/octet-stream
Size: 1037 bytes
Desc: not available
URL: <http://lists.ibiblio.org/pipermail/freetds/attachments/20160914/fca40ebb/attachment.obj>

More information about the FreeTDS mailing list