summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/mysql/qsql_mysql.cpp
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-06-18 03:57:51 (GMT)
committerBill King <bill.king@nokia.com>2009-06-21 23:04:53 (GMT)
commita290f3b64a4a77018845612eef15baa98fc0833a (patch)
tree9ab806dd7e0c3cf2a2264759a633aa68e1370d30 /src/sql/drivers/mysql/qsql_mysql.cpp
parentcb8cfe965d9e5716e4ffc14b90c1fefaab53d126 (diff)
downloadQt-a290f3b64a4a77018845612eef15baa98fc0833a.zip
Qt-a290f3b64a4a77018845612eef15baa98fc0833a.tar.gz
Qt-a290f3b64a4a77018845612eef15baa98fc0833a.tar.bz2
Stage 2 of incorporating database level precision policy.
All autotests pass now for all databases except DB2 (untested).
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
-rw-r--r--src/sql/drivers/mysql/qsql_mysql.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sql/drivers/mysql/qsql_mysql.cpp b/src/sql/drivers/mysql/qsql_mysql.cpp
index 46726a5..bfd65fc 100644
--- a/src/sql/drivers/mysql/qsql_mysql.cpp
+++ b/src/sql/drivers/mysql/qsql_mysql.cpp
@@ -254,6 +254,9 @@ static QVariant::Type qDecodeMYSQLType(int mysqltype, uint flags)
case FIELD_TYPE_FLOAT :
case FIELD_TYPE_DOUBLE :
case FIELD_TYPE_DECIMAL :
+#if defined(FIELD_TYPE_NEWDECIMAL)
+ case FIELD_TYPE_NEWDECIMAL:
+#endif
type = QVariant::Double;
break;
case FIELD_TYPE_DATE :