From abd06ab4d959d0ca9b6fafaaaf0542120fa084a9 Mon Sep 17 00:00:00 2001 From: MailShop Date: Fri, 17 Mar 2023 20:51:57 +0000 Subject: [PATCH] ODBC: Fix DataFormatException getting Time value from SQL Server (#3802) --- Data/ODBC/src/ODBCMetaColumn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Data/ODBC/src/ODBCMetaColumn.cpp b/Data/ODBC/src/ODBCMetaColumn.cpp index f2603c0f7..debf3a1a3 100644 --- a/Data/ODBC/src/ODBCMetaColumn.cpp +++ b/Data/ODBC/src/ODBCMetaColumn.cpp @@ -160,6 +160,7 @@ void ODBCMetaColumn::init() setType(MetaColumn::FDT_DATE); break; case SQL_TYPE_TIME: + case -154: //MS SQL Server custom type SQL_SS_TIME2 setType(MetaColumn::FDT_TIME); break; case SQL_TYPE_TIMESTAMP: