1. 15 Jul, 2015 1 commit
    • Miha Ravselj's avatar
      More and better MSVC warnings fixes. · 7623f76f
      Miha Ravselj authored
      Fix warnings by changing the code whenever possible, in particular remove
      firebird_rowid_backend class and src/backends/firebird/row-id.cpp file in
      which it was defined entirely as it only resulted in "unreachable code"
      warnings but was otherwise unused.
      
      Also avoid implicit conversions by either using the correct types or by making
      the casts explicit using static_cast<> in places where the casts are really
      needed.
      
      Add helpful SOCI_NOT_COPYABLE, SOCI_NOT_ASSIGNABLE and SOCI_UNUSED macros and
      use them to suppress the corresponding warnings.
      
      Finally, combine soci-config.h and soci-platform.h in a single file, always
      include the latter as the first header and keep the former as a wrapper for
      the latter just for compatibility.
      
      Remove the MSVC "#pragma warning(disable: *)" as they are not needed any more.
      
      Closes #355.
      7623f76f
  2. 16 Mar, 2015 1 commit
    • Vadim Zeitlin's avatar
      Fix rounding error in Firebird NUMERIC/DECIMAL conversions. · 24c05399
      Vadim Zeitlin authored
      The value was truncated instead of being rounded in to_isc() helper function,
      resulting in, for example, "0.003958" being saved as "0.003957" in a
      NUMERIC(7,6) column because the string "0.003958" is actually
      "0.0039579999999999997129" when converted to string with 20 digits of
      precision and, after multiplying by 1e6 scale, yielded 3957 in the usual
      double precision.
      
      Round the values now to prevent this from happening.
      24c05399
  3. 25 Mar, 2014 1 commit
  4. 20 Jan, 2014 1 commit
  5. 29 May, 2013 1 commit
    • Mateusz Loskot's avatar
      Implement new source tree layout #125 · b6d97ffa
      Mateusz Loskot authored
      First set of changes incorporating new structure of source tree.
      It also applies some of changes planned as part of buried headers feature #25
      
      Work in progress, requires testing before merging into develop branch
      b6d97ffa