From: Ken Youens-Clark Date: Thu, 9 Oct 2003 18:09:07 +0000 (+0000) Subject: Fixed normalize_name per DLC. X-Git-Tag: v0.04~94 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae48473b58043e442584b5d9e5d166a1f4d1aa97;p=dbsrgits%2FSQL-Translator.git Fixed normalize_name per DLC. --- diff --git a/lib/SQL/Translator/Utils.pm b/lib/SQL/Translator/Utils.pm index 54f99fe..11a32a5 100644 --- a/lib/SQL/Translator/Utils.pm +++ b/lib/SQL/Translator/Utils.pm @@ -1,7 +1,7 @@ package SQL::Translator::Utils; # ---------------------------------------------------------------------- -# $Id: Utils.pm,v 1.10 2003-10-09 16:35:55 kycl4rk Exp $ +# $Id: Utils.pm,v 1.11 2003-10-09 18:09:07 kycl4rk Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 darren chamberlain # @@ -26,7 +26,7 @@ use vars qw($VERSION $DEFAULT_COMMENT @EXPORT_OK); use Exporter; -$VERSION = sprintf "%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/; $DEFAULT_COMMENT = '-- '; @EXPORT_OK = qw( debug normalize_name header_comment parse_list_arg $DEFAULT_COMMENT @@ -72,7 +72,7 @@ sub debug { # ---------------------------------------------------------------------- sub normalize_name { - my $name = shift || ''; + my $name = shift or return ''; # The name can only begin with a-zA-Z_; if there's anything # else, prefix with _