From 194bbeed0152d541527059bb0f1dae60a8573912 Mon Sep 17 00:00:00 2001 From: Bill King Date: Thu, 25 Mar 2010 16:44:32 +1000 Subject: Fix ODBC compilation for ODBC versions < 3.5 Task-number: QTBUG-8488 Reviewed-by: Justin McPherson --- src/sql/drivers/odbc/qsql_odbc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp index 1506c3c..f41a914 100644 --- a/src/sql/drivers/odbc/qsql_odbc.cpp +++ b/src/sql/drivers/odbc/qsql_odbc.cpp @@ -352,7 +352,9 @@ static QVariant::Type qDecodeODBCType(SQLSMALLINT sqltype, const T* p, bool isSi #endif case SQL_CHAR: case SQL_VARCHAR: +#if (ODBCVER >= 0x0350) case SQL_GUID: +#endif case SQL_LONGVARCHAR: type = QVariant::String; break; -- cgit v0.12