From: Darren Chamberlain Date: Thu, 19 Jun 2003 20:44:26 +0000 (+0000) Subject: The $DEFAULT_SUB was still looking at $_[1], and not $_[0]->schema X-Git-Tag: v0.04~400 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=05a56b57a95b57344d07991f6137fd7fa5d951db;p=dbsrgits%2FSQL-Translator.git The $DEFAULT_SUB was still looking at $_[1], and not $_[0]->schema --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index ac31d7f..531a8fa 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -1,7 +1,7 @@ package SQL::Translator; # ---------------------------------------------------------------------- -# $Id: Translator.pm,v 1.32 2003-06-18 17:15:38 kycl4rk Exp $ +# $Id: Translator.pm,v 1.33 2003-06-19 20:44:26 dlc Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -27,7 +27,7 @@ use vars qw( $VERSION $REVISION $DEFAULT_SUB $DEBUG $ERROR ); use base 'Class::Base'; $VERSION = '0.02'; -$REVISION = sprintf "%d.%02d", q$Revision: 1.32 $ =~ /(\d+)\.(\d+)/; +$REVISION = sprintf "%d.%02d", q$Revision: 1.33 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; $ERROR = ""; @@ -43,7 +43,7 @@ use SQL::Translator::Schema; # SQL::Translator instance is the first value ($_[0]), and the stuff # to be parsed is the second value ($_[1]) # ---------------------------------------------------------------------- -$DEFAULT_SUB = sub { $_[1] } unless defined $DEFAULT_SUB; +$DEFAULT_SUB = sub { $_[0]->schema } unless defined $DEFAULT_SUB; # ---------------------------------------------------------------------- # init([ARGS])