2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[#2038] escape commas in kea-admin lease-dump mysql

This commit is contained in:
Andrei Pavel
2022-01-11 19:19:25 +02:00
parent 0d8bcb16a9
commit 8883a639e8
6 changed files with 28 additions and 32 deletions

View File

@@ -4113,9 +4113,9 @@ BEGIN
subnet_id,
fqdn_fwd,
fqdn_rev,
hostname,
REPLACE(hostname, ',', '&#x2c'),
state,
IFNULL(user_context, '')
REPLACE(IFNULL(user_context, ''), ',', '&#x2c')
FROM lease4
ORDER BY address;
END $$
@@ -4147,10 +4147,10 @@ BEGIN
prefix_len,
fqdn_fwd,
fqdn_rev,
hostname,
REPLACE(hostname, ',', '&#x2c'),
IFNULL(colonSeparatedHex(HEX(hwaddr)), ''),
state,
IFNULL(user_context, ''),
REPLACE(IFNULL(user_context, ''), ',', '&#x2c'),
hwtype,
hwaddr_source
FROM lease6

View File

@@ -89,9 +89,9 @@ BEGIN
subnet_id,
fqdn_fwd,
fqdn_rev,
hostname,
REPLACE(hostname, ',', '&#x2c'),
state,
IFNULL(user_context, '')
REPLACE(IFNULL(user_context, ''), ',', '&#x2c')
FROM lease4
ORDER BY address;
END $$
@@ -123,10 +123,10 @@ BEGIN
prefix_len,
fqdn_fwd,
fqdn_rev,
hostname,
REPLACE(hostname, ',', '&#x2c'),
IFNULL(colonSeparatedHex(HEX(hwaddr)), ''),
state,
IFNULL(user_context, ''),
REPLACE(IFNULL(user_context, ''), ',', '&#x2c'),
hwtype,
hwaddr_source
FROM lease6