// 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, "
"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.
"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"
},
"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