X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FODBC%2FSQL_Anywhere.pm;h=5016d5270bc9a903523a57e01d70d26da0ff65f5;hb=38a64290c6c15538795ff18e6bc6c1ddcb67aab3;hp=32bfb3a9a8de42a7af0c41bc8ba8603b0f5e1e76;hpb=c4a69b87bd3d3fdda08f05d363311a6e9d3fc0f7;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm b/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm index 32bfb3a..5016d52 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm @@ -8,7 +8,7 @@ use base qw/ /; use mro 'c3'; -our $VERSION = '0.07010'; +our $VERSION = '0.07049'; =head1 NAME @@ -21,15 +21,32 @@ Proxy for L when using L for usage information. +=cut + +sub _columns_info_for { + my $self = shift; + + my $result = $self->next::method(@_); + + while (my ($col, $info) = each %$result) { + # The ODBC driver sets the default value to NULL even when it was not specified. + if (ref $info->{default_value} && ${ $info->{default_value} } eq 'null') { + delete $info->{default_value}; + } + } + + return $result; +} + =head1 SEE ALSO L, L, L, L -=head1 AUTHOR +=head1 AUTHORS -See L and L. +See L. =head1 LICENSE @@ -39,3 +56,4 @@ the same terms as Perl itself. =cut 1; +# vim:et sw=4 sts=4 tw=0: