X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Fsqlt;h=e4e278727b3bcdb0aec4ea03968cac97b0e29d43;hb=88a4375ca729ba65dc35271cc4f44a2f5ac5a1bb;hp=e42f5a65aad5571fa2d61a574c13206285be753c;hpb=cccff7c225afb5a8e75f64793f93df4c51a810cb;p=dbsrgits%2FSQL-Translator.git diff --git a/bin/sqlt b/bin/sqlt index e42f5a6..e4e2787 100755 --- a/bin/sqlt +++ b/bin/sqlt @@ -2,10 +2,9 @@ # vim: set ft=perl: # ------------------------------------------------------------------- -# $Id: sqlt,v 1.10 2003-10-19 17:01:25 grommit Exp $ +# $Id: sqlt,v 1.12 2004-02-06 17:48:16 kycl4rk Exp $ # ------------------------------------------------------------------- -# Copyright (C) 2002 Ken Y. Clark , -# darren chamberlain +# Copyright (C) 2002-4 SQLFairy Authors # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -113,7 +112,7 @@ use Pod::Usage; use SQL::Translator; use vars qw( $VERSION ); -$VERSION = sprintf "%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/; my $from; # the original database my $to; # the destination database @@ -170,7 +169,7 @@ GetOptions( my @files = @ARGV; # source files unless ( @files ) { - if ( $from eq 'DBI' ) { + if ( defined($from) && $from eq 'DBI' ) { @files = ('!'); } else {