Merge pull request #16304 from Nibbler999/inet6
Add support for INET6 column type
This commit is contained in:
commit
5931d5ab9b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user