diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-24 19:38:36 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-24 19:38:36 +0200 |
commit | 7c7b082d362aa3d7ebdedf190a7e6a683c484a35 (patch) | |
tree | adb1bb9d67d1c6eb33547cc535d289238b2a6419 /pgsql/types | |
parent | ecc8b93c2378988d8c13285eb02d4dc3e977c2ea (diff) |
Remove all references to NUMERIC
Diffstat (limited to 'pgsql/types')
-rw-r--r-- | pgsql/types/driver.cxx | 1 | ||||
-rw-r--r-- | pgsql/types/test.hxx | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/pgsql/types/driver.cxx b/pgsql/types/driver.cxx index 17f48f4..aba7220 100644 --- a/pgsql/types/driver.cxx +++ b/pgsql/types/driver.cxx @@ -38,7 +38,6 @@ main (int argc, char* argv[]) o.float_ = 1.123F; o.float8_ = 1.123; o.double_ = 1.123; - // o.numeric_ = "123.456"; o.date_ = 4015; o.time_ = 48180000000; diff --git a/pgsql/types/test.hxx b/pgsql/types/test.hxx index ac1ed11..48c30ee 100644 --- a/pgsql/types/test.hxx +++ b/pgsql/types/test.hxx @@ -47,7 +47,7 @@ struct varbit std::size_t byte_len = size / 8; - if (std::memcmp (ubuffer_.data (), x.ubuffer_.data (), byte_len != 0)) + if (std::memcmp (ubuffer_.data (), x.ubuffer_.data (), byte_len) != 0) return false; std::size_t trailing_bits = size % 8; @@ -116,9 +116,6 @@ struct object #pragma db type ("DOUBLE PRECISION") double double_; - // #pragma db type ("NUMERIC(6,3)") - // std::string numeric_; - // Data-time types. // #pragma db type ("DATE") @@ -176,7 +173,6 @@ struct object float_ == y.float_ && float8_ == y.float8_ && double_ == y.double_ && - // numeric__ == y.numeric_ && date_ == y.date_ && time_ == y.time_ && timestamp_ == y.timestamp_ && |