1. 16 Dec, 2015 1 commit
  2. 15 Oct, 2015 1 commit
  3. 13 Oct, 2015 2 commits
  4. 01 Oct, 2015 1 commit
    • Thomas Markwalder's avatar
      [3916] Use stored procedures for MySQL lease dumps · 9ca02bd6
      Thomas Markwalder authored
      src/bin/admin/kea-admin.in
          src/bin/admin/kea-admin.in
              get_dump_query() - modified SQL text returned for MySQL backend
              which calls stored procedures to produce lease dumps  rather than
              SQL text from lease_dump_<version>.sh
      
      src/bin/admin/scripts/mysql/Makefile.am
          removed entries for leave_dump_<version>.sh files
      
      src/bin/admin/scripts/mysql/dhcpdb_create.mysql
          Added sql to create stored procedures for lease dumps:
              lease4DumpHeader
              lease4DumpData
              lease6DumpHeader
              lease6DumpData
      
      src/bin/admin/scripts/pgsql/dhcpdb_create.pgsql
          Changes table references in lease6DumpData() to match
          convention used in MySQL lease6DumpData()
      
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_lease4_dump_test() - change lease4 test leases to have differing
          values for lease4.state
      
          mysql_lease6_dump_test() - change lease4 test leases to have differing
          values for lease6.state
      
      mysql.lease4_dump_test.reference.csv
      mysql.lease6_dump_test.reference.csv
          Changed reference files to use lease_state.name values rather than
          lease.state to match dump query output and  new test data
      
      src/bin/admin/scripts/mysql
          deleted the following files as they are now obsolete
              leave_dump_1.0.sh
              leave_dump_2.0.sh
              leave_dump_3.0.sh
              leave_dump_4.0.sh
          Makefile.am - removed entries for deleted lease dump scripts
      9ca02bd6
  5. 30 Sep, 2015 1 commit
    • Thomas Markwalder's avatar
      [3916] Use stored functions for Postgres lease dumps · 9fbe63fc
      Thomas Markwalder authored
      lease_dump_1.0.sh - deleted, now obsolete
      
      src/bin/admin/scripts/pgsql/Makefile.am
          removed entries for lease_dump_1.0.sh
      
      src/bin/admin/kea-admin.in
          get_dump_query() - modified SQL text returned for Postgres backend
          which calls stored functions to produce lease dumps  rather than
          SQL texti from lease_dump_<version>.sh
      
      src/bin/admin/scripts/pgsql/dhcpdb_create.pgsql
          added statments to create lease dump functions:
              lease4DumpHeader
              lease4DumpData
              lease6DumpHeader
              lease6DumpData
      
      src/bin/admin/tests/data/pgsql.lease6_dump_test.reference.csv
          Booleans were expected be 't' or 'f', changed to int 1 or 0
      9fbe63fc
  6. 05 Nov, 2014 1 commit
  7. 03 Nov, 2014 1 commit
  8. 28 Mar, 2014 1 commit
    • 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
      check.
      
      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.
      6adb8b73
  9. 12 Mar, 2014 1 commit
  10. 11 Mar, 2014 1 commit
    • Tomek Mrugalski's avatar
      [3080] Initial PostgreSQL patch · a3d6102c
      Tomek Mrugalski authored
       - patch contributed by David Carlier (thanks!)
       - updated to current master
       - fixed compliation issues
       - written developer's guide (pgsql setup steps)
       - many smaller changes
       - still WIP
      a3d6102c