Merge pull request #16304 from Nibbler999/inet6

Add support for INET6 column type
This commit is contained in:
Maurício Meneghini Fauth 2020-08-15 16:52:23 -03:00 committed by GitHub
commit 5931d5ab9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,11 @@ class Types
'Stores and enables efficient access to data in JSON'
. ' (JavaScript Object Notation) documents'
);
case 'INET6':
return __('Intended for storage of IPv6 addresses, as well as IPv4 '
. 'addresses assuming conventional mapping of IPv4 addresses '
. 'into IPv6 addresses'
);
}
return '';
@ -441,6 +446,7 @@ class Types
case 'LONGBLOB':
case 'ENUM':
case 'SET':
case 'INET6':
return 'CHAR';
case 'GEOMETRY':
case 'POINT':
@ -778,6 +784,10 @@ class Types
$ret['JSON'] = ['JSON'];
}
if ($isMariaDB && $serverVersion >= 100500) {
array_push($ret[_pgettext('string types', 'String')], '-', 'INET6');
}
return $ret;
}