aboutsummaryrefslogtreecommitdiff
path: root/oracle
diff options
context:
space:
mode:
Diffstat (limited to 'oracle')
-rw-r--r--oracle/types/driver.cxx2
-rw-r--r--oracle/types/test.hxx8
2 files changed, 10 insertions, 0 deletions
diff --git a/oracle/types/driver.cxx b/oracle/types/driver.cxx
index fa056ff..b23a757 100644
--- a/oracle/types/driver.cxx
+++ b/oracle/types/driver.cxx
@@ -40,6 +40,8 @@ main (int argc, char* argv[])
o.float_ = 1.123F;
o.double_ = 1.123;
+ o.num_float_ = 1.123F;
+ o.num_double_ = 1.123;
o.binary_float_ = 1.123F;
o.binary_double_ = 1.123;
diff --git a/oracle/types/test.hxx b/oracle/types/test.hxx
index b496114..3e59594 100644
--- a/oracle/types/test.hxx
+++ b/oracle/types/test.hxx
@@ -136,6 +136,12 @@ struct object
#pragma db type ("FLOAT(53)")
double double_;
+ #pragma db type ("NUMBER(7,3)")
+ float num_float_;
+
+ #pragma db type ("NUMBER(15,5)")
+ double num_double_;
+
#pragma db type ("BINARY_FLOAT")
float binary_float_;
@@ -205,6 +211,8 @@ struct object
ulong_long_ == y.ulong_long_ &&
float_ == y.float_ &&
double_ == y.double_ &&
+ num_float_ == y.num_float_ &&
+ num_double_ == y.num_double_ &&
binary_float_ == y.binary_float_ &&
binary_double_ == y.binary_double_ &&
date_ == y.date_ &&