Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2, 4.6.3
-
None
-
b211148e4b4167483e1a78a45ae8fef97e5a4f2d (qt/qtbase/dev)
Description
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?