diff options
| author | fukachan <fukachan> | 2002-02-01 12:03:55 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-02-01 12:03:55 +0000 |
| commit | a176a2ad4ac5fd35a3a056dd3828c0dbb1da0e6d (patch) | |
| tree | c06f02bd93f73f40c2cafff8c461d73731b15b6d /fml/lib/IO/Adapter/MySQL.pm | |
| parent | eec3fb6d6aa9ffe509abbab89f304f450295d860 (diff) | |
| download | fml8-subdir-base.tar.gz fml8-subdir-base.tar.bz2 fml8-subdir-base.zip | |
remove $ENV{debug} based toggle flagsubdir-base
Diffstat (limited to 'fml/lib/IO/Adapter/MySQL.pm')
| -rw-r--r-- | fml/lib/IO/Adapter/MySQL.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fml/lib/IO/Adapter/MySQL.pm b/fml/lib/IO/Adapter/MySQL.pm index e48395e6..44d9b0b7 100644 --- a/fml/lib/IO/Adapter/MySQL.pm +++ b/fml/lib/IO/Adapter/MySQL.pm @@ -3,7 +3,7 @@ # Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi # All rights reserved. # -# $FML: MySQL.pm,v 1.18 2001/12/24 07:40:57 fukachan Exp $ +# $FML: MySQL.pm,v 1.19 2002/01/27 13:11:58 fukachan Exp $ # @@ -13,6 +13,8 @@ use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD); use Carp; +my $debug = 0; + use IO::Adapter::DBI; @ISA = qw(IO::Adapter::DBI); @@ -100,12 +102,12 @@ sub configure # $self->{ _driver } is the $config->{ driver } object. unless ($@) { - printf STDERR "%-20s %s\n", "loading", $pkg if $ENV{'debug'}; + printf STDERR "%-20s %s\n", "loading", $pkg if $debug; @ISA = ($pkg, @ISA); $me->{ _model_specific_driver } = $pkg; - printf STDERR "%-20s %s\n", "MySQL::ISA:", "@ISA" if $ENV{'debug'}; + printf STDERR "%-20s %s\n", "MySQL::ISA:", "@ISA" if $debug; } else { error_set($self, $@); |
