1. 27 Feb, 2018 1 commit
    • Vadim Zeitlin's avatar
      Add logger class to allow customizing SOCI logging operations. · 37f36147
      Vadim Zeitlin authored
      No big changes yet, but it is now possible to use a custom logger object which
      may do something else than just write the query string passed to it to a
      The old behaviour is preserved by using the standard SOCI logger by default
      which does write the query to the stream.
  2. 19 Jul, 2017 1 commit
    • Vadim Zeitlin's avatar
      Add get_dummy_from_{table,clause}() methods · d91c2228
      Vadim Zeitlin authored
      These functions are helpful to allow writing queries not using any
      tables portably, i.e. they basically abstract the difference between
      "select ... from dual" in Oracle and just "select ..." in almost all the
      other backends.
  3. 18 Jul, 2017 1 commit
  4. 17 Oct, 2016 1 commit
  5. 20 Jun, 2016 1 commit
  6. 08 Jun, 2016 1 commit
  7. 07 Jun, 2016 1 commit
  8. 05 Feb, 2016 2 commits
    • 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...).
    • Vadim Zeitlin's avatar
      Include soci/soci-platform.h instead of soci-config.h · e06bfe96
      Vadim Zeitlin authored
      This is less confusing and ensures that common macros such as
      SOCI_NOT_COPYABLE() are always defined.
      Also remove an unneeded inclusion from session.cpp as the header is already
      included from session.h anyhow.
  9. 07 Nov, 2015 1 commit
  10. 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
      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.
  11. 18 May, 2015 1 commit
  12. 01 Apr, 2015 1 commit
  13. 25 Mar, 2014 1 commit
  14. 04 Apr, 2013 1 commit
    • Mateusz Loskot's avatar
      Fix query transformation setting on pooled session · 90408fef
      Mateusz Loskot authored
      Thanks for Stefan Chrobot @stefanchrobot for e-mailing me about
      this bug with corresponding test case #113 and suggesting fix #114.
      The actual fix that has been applied is more involved than Stefan's,
      but resulting behaviour is similar, hopefully correct.
      Close #113
      Close #114
  15. 09 Mar, 2013 2 commits
    • Vadim Zeitlin's avatar
      Update all backends to take connection_parameters instead of connect string. · f2a575c3
      Vadim Zeitlin authored
      There are still no real changes as only the connect string part of the
      connection parameters is currently used, but this will make it possible to use
      other information stored in connection_parameters from the backend code in the
      Also replace session::lastFactory_ and lastConnectString_ with a single
      lastConnectParameters_ making the code slightly shorter and simpler.
    • Vadim Zeitlin's avatar
      Start adding soci::connection_parameters class. · aec2f9c9
      Vadim Zeitlin authored
      Right now this is just a trivial wrapper for the backend and connection string
      and no extra functionality but it will be extended with connection options
      support in the subsequent commits.
      No changes in behaviour, this is a pure refactoring.
      Signed-off-by: 's avatarVadim Zeitlin <vz-soci@zeitlins.org>
  16. 28 Feb, 2013 1 commit
  17. 27 Feb, 2013 1 commit
  18. 26 Feb, 2013 1 commit
    • Mateusz Loskot's avatar
      Add query transformation callback feature · 9fffdf67
      Mateusz Loskot authored
      Implementation of query transformation requested in ticket #66:
      * Add query_transformation.h with internal types
      * Add method session::set_query_transformation<T>() - assigns
      user-defined function or functor
      * Add session::get_query() - returns string with transformed query.
      * Replace use of session::get_query_stream() with get_query()
      * Keep session::get_query_stream() to access original query accumulated
      in current session statement
      * Add test_query_transformation to common tests.
      Tested using VS2012 on Windows 8 against DB2, ODBC (PostgreSQL, SQL
      Server), MySQL, Oracle, SQLite3.
  19. 17 Feb, 2013 1 commit
    • Mateusz Loskot's avatar
      Improve fixes in pull #5 · bd7d0082
      Mateusz Loskot authored
      * Ensure connection is established and backend set for session (thanks
      to @kzeslaf for reporting this)
      * Add test_pull5 to ensure no crash occurs (see Krzysztof's example in
      pull #5 comments)
      * Add test0 testing connection ensured
      * Add test31 with basic use of connection_pool (no multiple threads,
      sequential use only)
  20. 31 Jul, 2012 1 commit
  21. 10 Jul, 2012 1 commit
  22. 30 Apr, 2009 1 commit
  23. 05 Jun, 2008 2 commits
  24. 12 May, 2008 1 commit
  25. 15 Apr, 2008 1 commit
  26. 27 Mar, 2008 2 commits
  27. 02 Mar, 2008 1 commit
  28. 13 Nov, 2007 1 commit
  29. 12 Sep, 2007 1 commit
  30. 11 Sep, 2007 1 commit
  31. 05 Sep, 2007 1 commit
  32. 17 Aug, 2007 1 commit
  33. 21 Jun, 2007 1 commit
  34. 03 Jun, 2007 1 commit
  35. 02 Mar, 2007 1 commit