Apply patch from http://sourceforge.net/p/jtds/bugs/703/