summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill King <bking@trolltech.com>2009-07-02 15:00:03 +1000
committerBill King <bking@trolltech.com>2009-07-02 15:02:13 +1000
commit18055b3c3fe50337ee1af819839694674bdfb3ff (patch)
tree5e89430a62a5ba74182943ace4fb4d186e07596c /src
parenta24b8166631a9b1d80f8205cd0e450824166a25d (diff)
Tinyint is unsigned, force it to such.
Tinyint only supports 0-255, so mark it as unsigned despite sign flag, which have the time is inverted/wrong.
Diffstat (limited to 'src')
-rw-r--r--src/sql/drivers/odbc/qsql_odbc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp
index e18a9ebce9..4f358ec5f2 100644
--- a/src/sql/drivers/odbc/qsql_odbc.cpp
+++ b/src/sql/drivers/odbc/qsql_odbc.cpp
@@ -252,9 +252,11 @@ static QVariant::Type qDecodeODBCType(SQLSMALLINT sqltype, const T* p, bool isSi
case SQL_SMALLINT:
case SQL_INTEGER:
case SQL_BIT:
- case SQL_TINYINT:
type = isSigned ? QVariant::Int : QVariant::UInt;
break;
+ case SQL_TINYINT:
+ type = QVariant::UInt;
+ break;
case SQL_BIGINT:
type = isSigned ? QVariant::LongLong : QVariant::ULongLong;
break;