[Qt-interest] QtSQL driver for postgres is automatically reducing precision, which is not desired

John Moran johnfrederickmoran at gmail.com
Fri May 7 15:21:59 CEST 2010


I find that doing this to my QSqlDatabase fixes the problem:

db.setNumericalPrecisionPolicy ( QSql::HighPrecision );

This is supposed to be the default (according to
http://doc.trolltech.com/4.6/qsql.html#NumericalPrecisionPolicy-enum),
but seemingly isn't for PSQL/Qt 4.6

Regards,
John



More information about the Qt-interest-old mailing list