]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[94-cb-implement-mysqlconfigbackenddhcpv6-prepare] Updated pd_pool [dhcp6_]subnet_id...
authorFrancis Dupont <fdupont@isc.org>
Wed, 20 Feb 2019 22:15:31 +0000 (23:15 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 22 Feb 2019 22:59:25 +0000 (17:59 -0500)
src/hooks/dhcp/mysql_cb/mysql_query_macros_dhcp.h

index 9dbc7261626cdb6e495a559784fd055eef0eb4e0..68901cfacdd3f9432cbfe6b12f6d0fd448be73e9 100644 (file)
@@ -138,7 +138,7 @@ namespace {
     "  d.prefix," \
     "  d.prefix_length," \
     "  d.delegated_prefix_length," \
-    "  d.dhcp6_subnet_id," \
+    "  d.subnet_id," \
     "  d.modification_ts," \
     "  x.option_id," \
     "  x.code," \
@@ -185,7 +185,7 @@ namespace {
     "INNER JOIN dhcp6_server AS srv " \
     "  ON (a.server_id = srv.id) OR (a.server_id = 1) " \
     "LEFT JOIN dhcp6_pool AS p ON s.subnet_id = p.subnet_id " \
-    "LEFT JOIN dhcp6_pd_pool AS d ON s.subnet_id = d.dhcp6_subnet_id " \
+    "LEFT JOIN dhcp6_pd_pool AS d ON s.subnet_id = d.subnet_id " \
     "LEFT JOIN dhcp6_options AS x ON x.scope_id = 5 AND p.id = x.pool_id " \
     "LEFT JOIN dhcp6_options AS y ON y.scope_id = 6 AND d.id = y.pd_pool_id " \
     "LEFT JOIN dhcp6_options AS o ON o.scope_id = 1 AND s.subnet_id = o.dhcp6_subnet_id " \
@@ -380,7 +380,7 @@ namespace {
     "  prefix," \
     "  prefix_length," \
     "  delegated_prefix_length," \
-    "  dhcp6_subnet_id," \
+    "  subnet_id," \
     "  modification_ts" \
     ") VALUES (?, ?, ?, ?, ?)"
 #endif
@@ -537,7 +537,7 @@ namespace {
 #ifndef MYSQL_DELETE_PD_POOLS
 #define MYSQL_DELETE_PD_POOLS() \
     "DELETE FROM dhcp6_pd_pool " \
-    "WHERE dhcp6_subnet_id = ?"
+    "WHERE subnet_id = ?"
 #endif
 
 #ifndef MYSQL_DELETE_SHARED_NETWORK