summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-10-13 23:10:27 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-17 02:47:05 +0200
commit623c581b0a1d819efff597ab91730ac5766eba04 (patch)
treea1ef541c4a134e1658daa4e938bf582be7698086 /src
parentaab48400058612c07c787e2a524de658640445c9 (diff)
QtSql: Correct documented default precision policy.
Follow-up to commit c9f77564df14f91276e9ca693a9b3f339dab9334 Task-number: QTBUG-27482 Change-Id: I17c12ee14d4609bccbe67bba2581f13d72c069ae Reviewed-by: Mark Brand <mabrand@mabrand.nl> (cherry picked from qt5/qtbase commit 7a34e88edcc8b05744cede732f79f99acaad75ef) Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/sql/kernel/qsql.qdoc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/sql/kernel/qsql.qdoc b/src/sql/kernel/qsql.qdoc
index 9fc7ae763c..45d1136c15 100644
--- a/src/sql/kernel/qsql.qdoc
+++ b/src/sql/kernel/qsql.qdoc
@@ -105,19 +105,15 @@
/*!
\enum QSql::NumericalPrecisionPolicy
- This enum type describes at which precision levels numerical values are read from
- a database.
-
- Some databases support numerical values with a precision that is not storable in a
- C++ basic data type. The default behavior is to bind these values as a QString.
- This enum can be used to override this behavior.
+ Numerical values in a database can have precisions greater than their corresponding
+ C++ types. This enum lists the policies for representing such values in the application.
\value LowPrecisionInt32 Force 32bit integer values. In case of floating point numbers,
the fractional part is silently discarded.
\value LowPrecisionInt64 Force 64bit integer values. In case of floating point numbers,
the fractional part is silently discarded.
- \value LowPrecisionDouble Force \c double values.
- \value HighPrecision The default behavior - try to preserve maximum precision.
+ \value LowPrecisionDouble Force \c double values. This is the default policy.
+ \value HighPrecision Strings will be used to preserve precision.
Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database
just returns an error in this case.