diff options
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/kernel/qsqldatabase.cpp | 9 | ||||
-rw-r--r-- | src/sql/kernel/qsqldriver.cpp | 9 |
2 files changed, 8 insertions, 10 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index 990ad9a..870aff8 100644 --- a/src/sql/kernel/qsqldatabase.cpp +++ b/src/sql/kernel/qsqldatabase.cpp @@ -1481,17 +1481,16 @@ QString QSqlDatabase::connectionName() const } /*! - - Sets the default numerical precision policy that queries use when created - on this database connection. + Sets the default numerical precision policy used by queries created + on this database connection to \a precisionPolicy. Note: Drivers that don't support fetching numerical values with low precision will ignore the precision policy. You can use QSqlDriver::hasFeature() to find out whether a driver supports this feature. - Note: Setting the default precision policy doesn't affect any currently - active queries. + Note: Setting the default precision policy to \a precisionPolicy + doesn't affect any currently active queries. \sa QSql::NumericalPrecisionPolicy, numericalPrecisionPolicy(), QSqlQuery::setNumericalPrecisionPolicy(), QSqlQuery::numericalPrecisionPolicy() */ diff --git a/src/sql/kernel/qsqldriver.cpp b/src/sql/kernel/qsqldriver.cpp index f7492c3..48ef6a2 100644 --- a/src/sql/kernel/qsqldriver.cpp +++ b/src/sql/kernel/qsqldriver.cpp @@ -914,12 +914,11 @@ QString QSqlDriver::stripDelimitersImplementation(const QString &identifier, Ide } /*! + Sets the default numerical precision policy used by queries created + by this driver to \a precisionPolicy. - Sets the default numerical precision policy that queries use when created - by this driver. - - Note: Setting the default precision policy doesn't affect any currently - active queries. + Note: Setting the default precision policy to \a precisionPolicy + doesn't affect any currently active queries. \sa QSql::NumericalPrecisionPolicy, numericalPrecisionPolicy(), QSqlQuery::setNumericalPrecisionPolicy(), QSqlQuery::numericalPrecisionPolicy() */ |