]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1074] minor changes
authorRazvan Becheriu <razvan@isc.org>
Mon, 13 Jan 2020 20:40:20 +0000 (22:40 +0200)
committerRazvan Becheriu <razvan@isc.org>
Wed, 5 Feb 2020 21:00:32 +0000 (23:00 +0200)
src/lib/dhcpsrv/pgsql_host_data_source.cc

index 8e6e0208fa576926ab48a0748723b9289f95c9c9..a0b3412b99adf23a0c8f116867824c8fffe353a4 100644 (file)
@@ -1582,7 +1582,8 @@ TaggedStatementArray tagged_statements = { {
     // it. Left joining the dhcp4_options table results in multiple rows being
     // returned for the same host. The host is retrieved by IPv4 address.
     {1,
-     { OID_INT8 }, "get_host_addr",
+     { OID_INT8 },
+     "get_host_addr",
      "SELECT h.host_id, h.dhcp_identifier, h.dhcp_identifier_type, "
      "  h.dhcp4_subnet_id, h.dhcp6_subnet_id, h.ipv4_address, h.hostname, "
      "  h.dhcp4_client_classes, h.dhcp6_client_classes, h.user_context, "
@@ -1596,7 +1597,7 @@ TaggedStatementArray tagged_statements = { {
      "ORDER BY h.host_id, o.option_id"
     },
 
-    //PgSqlHostDataSourceImpl::GET_HOST_SUBID4_DHCPID
+    // PgSqlHostDataSourceImpl::GET_HOST_SUBID4_DHCPID
     // Retrieves host information and DHCPv4 options using subnet identifier
     // and client's identifier. Left joining the dhcp4_options table results in
     // multiple rows being returned for the same host.
@@ -1613,7 +1614,7 @@ TaggedStatementArray tagged_statements = { {
      "FROM hosts AS h "
      "LEFT JOIN dhcp4_options AS o ON h.host_id = o.host_id "
      "WHERE h.dhcp4_subnet_id = $1 AND h.dhcp_identifier_type = $2 "
-     "   AND h.dhcp_identifier = $3 "
+     "  AND h.dhcp_identifier = $3 "
      "ORDER BY h.host_id, o.option_id"
     },
 
@@ -1637,11 +1638,11 @@ TaggedStatementArray tagged_statements = { {
      "LEFT JOIN dhcp6_options AS o ON h.host_id = o.host_id "
      "LEFT JOIN ipv6_reservations AS r ON h.host_id = r.host_id "
      "WHERE h.dhcp6_subnet_id = $1 AND h.dhcp_identifier_type = $2 "
-     " AND h.dhcp_identifier = $3 "
+     "  AND h.dhcp_identifier = $3 "
      "ORDER BY h.host_id, o.option_id, r.reservation_id"
     },
 
-    //PgSqlHostDataSourceImpl::GET_HOST_SUBID_ADDR
+    // PgSqlHostDataSourceImpl::GET_HOST_SUBID_ADDR
     // Retrieves host information and DHCPv4 options for the host using subnet
     // identifier and IPv4 reservation. Left joining the dhcp4_options table
     // results in multiple rows being returned for the host. The number of