• Thomas Markwalder's avatar
    [4277] PgSqlHostWithOptionsExchange, PgSqlOptionExchange now functional · 3c01633e
    Thomas Markwalder authored
    src/lib/dhcpsrv/pgsql_connection.h
        Added OID_TEXT
    
    src/lib/dhcpsrv/pgsql_exchange.cc
        PsqlBindArray::addNull()
    
        class PgSqlExchange
            - getColumnLabel() - now gets column name from result set
            - getColumnValue variants are now static methods
            - rename column_labels_ to columns_
            - isColumnNull() new method tests if column in row is null
            - dumpRow() - debug method dumps row as text
    
    src/lib/dhcpsrv/pgsql_host_data_source.cc
        PgSqlHostWithOptionsExchange
        PgSqlOptionExchange  now functional
    
    src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
        TEST_F(PgSqlHostDataSourceTest, addDuplicate4)
        TEST_F(PgSqlHostDataSourceTest, formattedOptionsReservations4)
        - Enabled and passing.
    3c01633e
pgsql_exchange.cc 9.28 KB