From: Rafael Kitover Date: Tue, 17 May 2011 14:12:04 +0000 (-0400) Subject: change FreeTDS related warnings to carp_once X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70171cd7;p=dbsrgits%2FDBIx-Class-Historic.git change FreeTDS related warnings to carp_once --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm index ade2e19..7cad0aa 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm @@ -69,7 +69,7 @@ sub _rebless { my $no_bind_vars = __PACKAGE__ . '::NoBindVars'; if ($self->using_freetds) { - carp <<'EOF' unless $ENV{DBIC_SYBASE_FREETDS_NOWARN}; + carp_once <<'EOF' unless $ENV{DBIC_SYBASE_FREETDS_NOWARN}; You are using FreeTDS with Sybase. diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm index f1ea17c..5911981 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm @@ -44,7 +44,7 @@ sub _rebless { return if ref $self ne __PACKAGE__; if (not $self->_use_typeless_placeholders) { - carp <<'EOF' unless $ENV{DBIC_MSSQL_FREETDS_LOWVER_NOWARN}; + carp_once <<'EOF' unless $ENV{DBIC_MSSQL_FREETDS_LOWVER_NOWARN}; Placeholders do not seem to be supported in your configuration of DBD::Sybase/FreeTDS.