summaryrefslogtreecommitdiffstats
path: root/src/sql
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-15 12:19:45 +0200
commit7a34e88edcc8b05744cede732f79f99acaad75ef (patch)
tree5492a3307cbccfcaf951416b6c980bf20747960b /src/sql
parent3e030a9652e7a95ed28e24ec258a7895e8bc1e34 (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>
Diffstat (limited to 'src/sql')
-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 edc769fca3..3b0e848af1 100644
--- a/src/sql/kernel/qsql.qdoc
+++ b/src/sql/kernel/qsql.qdoc
@@ -81,19 +81,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.