1. 21 Jul, 2017 4 commits
    • Vadim Zeitlin's avatar
      Add test checking string length when using bulk insert · c6aef12b
      Vadim Zeitlin authored
      This used to be broken, so add a test to check that it works after the
      changes of the last commit and to avoid breaking it again.
      c6aef12b
    • Vadim Zeitlin's avatar
      Improve get_affected_rows() documentation · 521a8408
      Vadim Zeitlin authored
      Mention that the exact result of this method can't be relied upon for
      the partially successful statements when using ODBC: some drivers
      (including the widely used MS SQL native client) simply don't return
      this information at all, while others (MySQL) just return wrong number
      of rows.
      
      Also remove the apparently obsolete note about this method not supported
      in the Oracle backend as it does seem to implement it.
      521a8408
    • Vadim Zeitlin's avatar
      Fix harmless variable shadowing warnings · 1a0eeb18
      Vadim Zeitlin authored
      Suppress VC14 (a.k.a. MSVS 2015) C4456 warning about shadowing variables
      in outer scope.
      
      No real changes.
      1a0eeb18
    • Vadim Zeitlin's avatar
      Add check for absence of unneeded truncation too · 06915e48
      Vadim Zeitlin authored
      We already checked that inserting a too long string resulted in an
      error, now check that inserting a string just long enough does not
      result in it.
      06915e48
  2. 20 Jul, 2017 1 commit
    • Vadim Zeitlin's avatar
      Avoid duplicate code for parsing dates in different backends · a1e07e38
      Vadim Zeitlin authored
      SQLite, MySQL and PostgreSQL backends used the same but slightly
      different code for parsing the contents of a buffer into std::tm struct.
      
      Replace all these different versions with a single version, copied from
      the PostgreSQL variant, which seems like the most complete, in the
      common code.
      
      Update MySQL-specific test to not expect parsing a string containing
      time without date to yield year 2000, this didn't make any sense at all
      and PostgreSQL default of year 1900 makes at least slightly more sense.
      a1e07e38
  3. 19 Jul, 2017 3 commits
  4. 07 Jul, 2017 1 commit
  5. 01 Mar, 2017 1 commit
  6. 22 Oct, 2016 1 commit
  7. 17 Oct, 2016 1 commit
  8. 14 Oct, 2016 1 commit
  9. 11 Oct, 2016 1 commit
  10. 10 Oct, 2016 1 commit
  11. 01 Oct, 2016 1 commit
  12. 15 Jul, 2016 1 commit
  13. 14 Jul, 2016 1 commit
  14. 07 Jul, 2016 1 commit
  15. 27 Jun, 2016 2 commits
  16. 12 Feb, 2016 1 commit
  17. 05 Feb, 2016 1 commit
    • Vadim Zeitlin's avatar
      Define cxx_details::auto_ptr<> to get rid of preprocessor checks · ec7d2dfc
      Vadim Zeitlin authored
      Defining cxx_details::auto_ptr<> as either std::auto_ptr<> or
      std::unique_ptr<> once instead of checking for SOCI_HAVE_CXX_C11 simplifies
      the code and also allows to use unique_ptr<> for MSVS 2010+ which has it even
      when SOCI_HAVE_CXX_C11 is not defined.
      
      Also use cxx_details::auto_ptr<> instead of std::auto_ptr<> in the tests to
      fix the build in C++11 mode with clang 3.8 due to -Wdeprecated-declarations
      warnings given by it for std::auto_ptr<> (and -Werror used by CMake and which
      apparently can't be overridden from command line...).
      ec7d2dfc
  18. 05 Nov, 2015 1 commit
  19. 21 Oct, 2015 1 commit
  20. 16 Oct, 2015 1 commit
  21. 13 Oct, 2015 1 commit
  22. 09 Oct, 2015 1 commit
  23. 08 Oct, 2015 2 commits
  24. 07 Oct, 2015 1 commit
  25. 30 Sep, 2015 1 commit
  26. 27 Sep, 2015 6 commits
  27. 24 Sep, 2015 1 commit
  28. 15 Sep, 2015 1 commit