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 7eb34b7 commit 0fbf25fCopy full SHA for 0fbf25f
lib/DBD/MariaDB.pm
@@ -399,7 +399,7 @@ sub column_info {
399
my @type_attr= split / /, $attr||'';
400
401
$info->{DATA_TYPE}= SQL_VARCHAR();
402
- if ($basetype =~ /^(char|varchar|\w*text|\w*blob)/)
+ if ($basetype =~ /^(char|varchar|\w*text|\w*blob|json)/)
403
{
404
$info->{DATA_TYPE}= SQL_CHAR() if $basetype eq 'char';
405
if ($type_params[0])
@@ -412,6 +412,7 @@ sub column_info {
412
$info->{COLUMN_SIZE} = 255 if $basetype =~ /^tiny/;
413
$info->{COLUMN_SIZE} = 16777215 if $basetype =~ /^medium/;
414
$info->{COLUMN_SIZE} = 4294967295 if $basetype =~ /^long/;
415
+ $info->{COLUMN_SIZE} = 4294967295 if $basetype =~ /^json/;
416
}
417
418
elsif ($basetype =~ /^(binary|varbinary)/)
0 commit comments