Skip to content
Snippets Groups Projects
Commit 9b364f36 authored by Andrey Vitushkin's avatar Andrey Vitushkin
Browse files

Issue #3459005: If the "text" format is selected in the formatter settings,...

Issue #3459005: If the "text" format is selected in the formatter settings, the output is different for the PostgreSQL and MySQL versions
parent e5fec617
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,8 @@ final class IpAddressMySqlFormatter extends FormatterBase {
break;
case 'text':
$value = $ipAddress . ' ' . $networkMask;
$prefixLength = Network::parse("$ipAddress $networkMask")->getPrefixLength();
$value = "$ipAddress/$prefixLength";
}
return [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment