Adding DECIMAL_DIGITS to SQLServer size field for scale info: http://msdn.microsoft...
Jonathan C. Otsuka [Sat, 18 Aug 2012 00:16:04 +0000 (19:16 -0500)]
lib/SQL/Translator/Parser/DBI/SQLServer.pm

index 729b7ff..0906e8c 100644 (file)
@@ -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);