1. 01 Apr, 2014 2 commits
  2. 29 Mar, 2014 1 commit
    • Thomas Markwalder's avatar
      [3080] Replaced use of CURSORs with single step selects · e954809f
      Thomas Markwalder authored
          Changed the SQL statements used to retrieve data to be simple selects
          rather than declared as cursors.  This allows the selects to be executed
          with a single statemen execution, eliminating the need for BEGIN and END
          Other minor clean up.
  3. 28 Mar, 2014 3 commits
    • Marcin Siodelski's avatar
    • Thomas Markwalder's avatar
      [3080] Fix build and unit test errors · 6adb8b73
      Thomas Markwalder authored
      Initial review and testing revealed build issues, unit test failures,
      and memory leaks.  With these changes it should build and pass unit testing.
      There are still runtime issues to address.
      Changed expire column type in lease tables to be "TIMESTAMP WITH TIME ZONE",
      and added methods to convert to and from such fields to LeaseExchange. This
      corrects mismatched time conversion to and from database which was causing unit tests to fail.
      Added constructors to PgSqlParam to eliminate use of ".value" initializers and
      to provide a safe, uniform way to create parameters for binary data. Prior to
      this valgrind was reporting invalid reads when vectors were statically cast
      to char*.
      Removed superflous BOOST_STATIC_ASSERT and corrected values tested in remaining
      Removed use of "SET AUTOCOMMIT TO" as it is no longer supported in PostgreSQL.
      Altered failure logic in PgSqlLeaseMgr::openDatabase() to release connection
      if it is not NULL. This was causing memory leak in unit tests.
      Added PQfinish call to createSchema() function to release the connection to fix
      memory leaks during unit testing.
      Cleaned most cppcheck complaints.
    • Thomas Markwalder's avatar
      [3080] Fixed link flags for Kea postgresSQL backend build · efbde0ad
      Thomas Markwalder authored
      Changed the definition of PGSQL_LIBS for building Kea with PostgreSQL
      backend to use pg_config value for LIBDIR rather than LDFLAGS.  The latter
      did not build with PostgreSQL 9.3.4 on OS-X or Centos.
      Added OS-X version numbers 10.9.1 and 10.9.2 to the test for setting the value
      of bind10_undefined_pthread_behavior.  Without this the death test for
      conditional variables fails as the problem introduced in 10.9 is still there
      as of 10.9.2.  This is unrelated to PostgreSQL.
  4. 14 Mar, 2014 1 commit
  5. 13 Mar, 2014 1 commit
  6. 12 Mar, 2014 4 commits
  7. 11 Mar, 2014 4 commits
  8. 10 Mar, 2014 2 commits
  9. 06 Mar, 2014 8 commits
  10. 05 Mar, 2014 5 commits
  11. 04 Mar, 2014 4 commits
  12. 02 Mar, 2014 2 commits
  13. 28 Feb, 2014 1 commit
  14. 27 Feb, 2014 2 commits