while (my ($col, $info) = each %$col_info) {
my $accessor = $info->{accessor} || $col;
- next if $accessor eq 'id'; # XXX fix this in DBIC
+ next if $accessor eq 'id'; # special case (very common column)
if (exists $methods{$accessor}) {
$info->{accessor} = undef;
$col_info->{$col}{accessor} = lc $col
if $col ne lc($col);
}
- } else {
+ }
+ else {
+ # XXX this needs to go away
$col_info = { map { lc($_), $col_info->{$_} } keys %$col_info };
}
id $self->{auto_inc_pk},
dat VARCHAR(32) NOT NULL,
dat2 VARCHAR(32) NOT NULL,
- set_primary_key INTEGER,
- dbix_class_testcomponent INTEGER,
+ set_primary_key INTEGER $self->{null},
+ dbix_class_testcomponent INTEGER $self->{null},
UNIQUE (dat2, dat)
) $self->{innodb}
},