Skip to content

Commit

Permalink
MariaDB shows no default value as 'NULL' (hepabolu#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Sadowski committed Oct 28, 2019
1 parent c620f0d commit 00f14b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mytap-column.sql
Expand Up @@ -688,7 +688,10 @@ BEGIN
WHERE `table_schema` = sname
AND `table_name` = tname
AND `column_name` = cname
AND `column_default` IS NOT NULL;
AND CASE tap.mysql_variant()
WHEN 'MariaDB' THEN `column_default` <> 'NULL'
ELSE `column_default` IS NOT NULL
END;

RETURN coalesce(ret, 0);
END //
Expand Down

0 comments on commit 00f14b1

Please sign in to comment.