From: Jonathan C. Otsuka Date: Sat, 18 Aug 2012 00:16:04 +0000 (-0500) Subject: Adding DECIMAL_DIGITS to SQLServer size field for scale info: http://msdn.microsoft... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d970ab2f075db388df497e896510a971000b8ad;p=dbsrgits%2FSQL-Translator.git Adding DECIMAL_DIGITS to SQLServer size field for scale info: msdn.microsoft.com/en-us/library/aa258832(v=sql.80).aspx --- diff --git a/lib/SQL/Translator/Parser/DBI/SQLServer.pm b/lib/SQL/Translator/Parser/DBI/SQLServer.pm index 729b7ff..0906e8c 100644 --- a/lib/SQL/Translator/Parser/DBI/SQLServer.pm +++ b/lib/SQL/Translator/Parser/DBI/SQLServer.pm @@ -200,7 +200,7 @@ $table_info->{TABLE_TYPE}, name => $c->{COLUMN_NAME}, data_type => $c->{TYPE_NAME}, order => $c->{ORDINAL_POSITION}, - size => $c->{COLUMN_SIZE}, + size => [$c->{COLUMN_SIZE},$c->{DECIMAL_DIGITS}], ) || die $table->error; $f->is_nullable($c->{NULLABLE} == 1); $f->is_auto_increment($is_auto_increment);