1. 24 Sep, 2017 1 commit
    • Mateusz Loskot's avatar
      Add SOCI_OVERRIDE macro as conditional C++11 override specifier · 05ab0bcf
      Mateusz Loskot authored
      MSVC++ 1900+ always compile with C++11 mode enabled, so it should be
      safe to selectively enable 'override'specifier for internal use.
      
      It does not enable all C++11 features for SOCI and we still compile
      with C++11 compilation mode SOCI_CXX_C11=OFF by default.
      
      Refactoring performed with clang-tidy-4.0:
      
       cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSOCI_CXX_C11=ON ..
       run-clang-tidy.py -clang-tidy-binary -header-filter='.*' \
                         -checks='-*,modernize-use-modernize' -fix
      05ab0bcf
  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.
      d91c2228
  3. 14 Oct, 2016 1 commit
  4. 07 Nov, 2015 1 commit
    • Mateusz Łoskot's avatar
      DB2: Switch session from SQLConnect ot SQLDriverConnect · 5d1ab2c7
      Mateusz Łoskot authored
      SQLConnect is very basic, relies on DSN and is not convenient
      if user wants to provide all connection parameters as command line
      argument, without editing db2cli.ini, configuring DSN.
      
      SQLDriverConnect alternative enables remote database connection
      in quick and easy fashion, via complete connection string.
      5d1ab2c7
  5. 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
  6. 16 Apr, 2015 3 commits
  7. 01 Apr, 2015 1 commit
  8. 17 Mar, 2015 1 commit
  9. 25 Mar, 2014 1 commit
  10. 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
  11. 28 Apr, 2013 1 commit
    • Ricardo Andrade's avatar
      Fixes test_prepared_insert_with_orm_type with DB2. · 2ceafcce
      Ricardo Andrade authored
      DB2 backend seems to follow the implementation ODBC one, so this fix is almost a copy of odbc_standard_use_type_backend.
      db2_standard_use_type_backend calculates the size of variables during bind() while ODBC does it during pre_use().
      If the value (strings specifically) has its size changed between bind (statement::prepare) and pre_use (statement::execute) the backend will have the previous size.
      This difference results in wrongly sized buffers what may lead to memory corruption.
      2ceafcce
  12. 09 Mar, 2013 1 commit
    • 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
      future.
      
      Also replace session::lastFactory_ and lastConnectString_ with a single
      lastConnectParameters_ making the code slightly shorter and simpler.
      f2a575c3
  13. 07 Mar, 2013 3 commits
  14. 24 Feb, 2013 2 commits
  15. 20 Feb, 2013 12 commits
  16. 05 Feb, 2013 5 commits