From 45642a3d4f18deb745f9ca1fb9f600a2bd06a205 Mon Sep 17 00:00:00 2001 From: Jan Viktorin Date: Wed, 9 Nov 2016 11:55:42 +0100 Subject: [PATCH] Support ODBC GUID data type as string The ODBC defines SQL_GUID datatype in sqlext.h. It is used e.g. for transfer of UUID datatype from PostgreSQL. Signed-off-by: Jan Viktorin --- Data/ODBC/src/ODBCMetaColumn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Data/ODBC/src/ODBCMetaColumn.cpp b/Data/ODBC/src/ODBCMetaColumn.cpp index 71d22f979..5745e6cf5 100644 --- a/Data/ODBC/src/ODBCMetaColumn.cpp +++ b/Data/ODBC/src/ODBCMetaColumn.cpp @@ -87,6 +87,9 @@ void ODBCMetaColumn::init() case SQL_CHAR: case SQL_VARCHAR: case SQL_LONGVARCHAR: +#ifdef SQL_GUID + case SQL_GUID: +#endif setType(MetaColumn::FDT_STRING); break; case SQL_WCHAR: