-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2, 4.6.3
-
None
-
b211148e4b4167483e1a78a45ae8fef97e5a4f2d (qt/qtbase/dev), 7f24d8952 (dev), 20b5d3d0e (6.10), 6084f1d45 (6.9), c083f18bd (tqtc/lts-6.8)
Currently a float must be cast to a double to be save to the database via a QSqlQuery
query.addBindValue( QVariant(f) ); with f being a float, this fails
to make it work we need:
query.addBindValue( QVariant(double(f)) );
The float should be valid there.
Maybe by using QVariant::Private as the type?
- resulted in
-
QTBUG-138642 ODBC possible data loss with 'real' column
-
- Closed
-
For Gerrit Dashboard: QTBUG-8963 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
328265,5 | Sql ODBC driver: add direct support for float and short datatype | dev | qt/qtbase | Status: MERGED | +2 | 0 |
663803,2 | SQL/ODBC: fix reading REAL values | dev | qt/qtbase | Status: MERGED | +2 | 0 |
664761,2 | SQL/ODBC: fix reading REAL values | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
664909,3 | SQL/ODBC: fix reading REAL values | 6.9 | qt/qtbase | Status: MERGED | +2 | +1 |
666549,2 | SQL/ODBC: fix reading REAL values | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |