We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73938c7 commit 0dc4cdfCopy full SHA for 0dc4cdf
lib/DBD/mysql.pm
@@ -459,7 +459,7 @@ sub column_info {
459
my @type_attr= split / /, $attr||'';
460
461
$info->{DATA_TYPE}= SQL_VARCHAR();
462
- if ($basetype =~ /^(char|varchar|\w*text|\w*blob)/)
+ if ($basetype =~ /^(char|varchar|\w*text|\w*blob|json)/)
463
{
464
$info->{DATA_TYPE}= SQL_CHAR() if $basetype eq 'char';
465
if ($type_params[0])
@@ -472,6 +472,7 @@ sub column_info {
472
$info->{COLUMN_SIZE} = 255 if $basetype =~ /^tiny/;
473
$info->{COLUMN_SIZE} = 16777215 if $basetype =~ /^medium/;
474
$info->{COLUMN_SIZE} = 4294967295 if $basetype =~ /^long/;
475
+ $info->{COLUMN_SIZE} = 4294967295 if $basetype =~ /^json/;
476
}
477
478
elsif ($basetype =~ /^(binary|varbinary)/)
0 commit comments