The fix is easy: In TypeInfo.normalizeDataType add "typeName" as parameter and pass the typeName on each call of this function. In the switch statement there, on case -9 return Types.DATE for typeName "date" and "datetime2". I'd provide a PR but it seems that the project is not alive anymore :-/ Edit: Feel free to use my patch: https://github.com/bi-web/jTDS/commit/9c463aaf3a77d3b5870404837a019d812af7aaa3 It's partial, I passed typeInfo only at the places where it was already in a variable. There...
The fix is easy: In TypeInfo.normalizeDataType add "typeName" as parameter and pass the typeName on each call of this function. In the switch statement there, on case -9 return Types.DATE for typeName "date" and "datetime2". I'd provide a PR but it seems that the project is not alive anymore :-/