X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSybase.pm;h=041aa2cc239168752edf0f7edf6ce8f6597d5696;hb=37b17a93efef4652db90e299b247e55ab1145b0b;hp=43932fac8084722eb55840b2e92a1cc890e3309f;hpb=b66a4f90f768da8aacd8f5cf7b24806d1d9e4642;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm index 43932fa..041aa2c 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm @@ -88,9 +88,6 @@ EOF $self->_rebless; } } - - $self->set_textsize; # based on LongReadLen in connect_info - } elsif (not $self->_get_dbh->{syb_dynamic_supported}) { # not necessarily FreeTDS, but no placeholders nevertheless @@ -101,12 +98,18 @@ EOF # this is highly unlikely, but we check just in case $self->auto_cast(1); } - - $self->_set_max_connect(256); } } } +sub _init { + my $self = shift; + $self->_set_max_connect(256); + + # based on LongReadLen in connect_info + $self->set_textsize if $self->using_freetds; +} + # Make sure we have CHAINED mode turned on if AutoCommit is off in non-FreeTDS # DBD::Sybase (since we don't know how DBD::Sybase was compiled.) If however # we're using FreeTDS, CHAINED mode turns on an implicit transaction which we