Subject: | int(10) vs int(11) |
http://www.issociate.de/board/post/504719/int%2810%29_va_int%2811%29.html
% diff lib/SQL/Translator/Parser/MySQL.pm
lib/SQL/Translator/Parser/MySQL.pm.orig
973,975c973,974
< my $default = $field->{extra}{unsigned} ? 3 : 4;
< $changed = $size != $default;
< $size = $default;
---
Show quoted text
> $changed = $size != 4;
> $size = 4;
978,979c977
< my $default = $field->{extra}{unsigned} ? 5 : 6;
< $changed = $size != $default;
---
Show quoted text> $changed = $size != 6;
983,985c981,982
< my $default = $field->{extra}{unsigned} ? 8 : 9;
< $changed = $size != $default;
< $size = $default;
---
Show quoted text> $changed = $size != 9;
> $size = 9;
988,989c985
< my $default = $field->{extra}{unsigned} ? 10 : 11;
< $changed = $size != $default || $type ne 'int';
---
Show quoted text> $changed = $size != 11 || $type ne 'int';
991c987
< $size = $default;
---
Show quoted text> $size = 11;
994,996c990,991
< my $default = $field->{extra}{unsigned} ? 19 : 20;
< $changed = $size != $default;
< $size = $default;
---
Show quoted text> $changed = $size != 20;
> $size = 20;