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=4cc29626695f6684c014de9e7f85cfc74988d90f;hb=cb9c535fda0a11fd5615b0351474207a12b06992;hp=74b7b69edc275df668f96245bafe5b1730054da7;hpb=6b1d4f76b756e4b4119153a1f1e8a7bd59ad4e87;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 74b7b69..4cc2962 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ODBC/SQL_Anywhere.pm @@ -3,12 +3,12 @@ package DBIx::Class::Schema::Loader::DBI::ODBC::SQL_Anywhere; use strict; use warnings; use base qw/ + DBIx::Class::Schema::Loader::DBI::ODBC DBIx::Class::Schema::Loader::DBI::SQLAnywhere /; -use Carp::Clan qw/^DBIx::Class/; -use Class::C3; +use mro 'c3'; -our $VERSION = '0.07001'; +our $VERSION = '0.07034_02'; =head1 NAME @@ -21,6 +21,23 @@ 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, @@ -39,3 +56,4 @@ the same terms as Perl itself. =cut 1; +# vim:et sw=4 sts=4 tw=0: