Skip to content

Commit

Permalink
Fixed DBD::File finish() method to return 1 thanks to Jan Dubois.
Browse files Browse the repository at this point in the history
Fixed dbivport.h warnings on some compilers.
Fixed DBI::PurePerl warning from beta release versions of Math::BigInt


git-svn-id: https://svn.perl.org/modules/dbi/trunk@442 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
timbunce committed Aug 26, 2004
1 parent 03eb634 commit add8e05
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ DBI::Changes - List of significant changes to the DBI

=head2 Changes in DBI 1.44 (svn rev ???), XXX

fix utf8 leakage

Fixed build issues on VMS thanks to Jakob Snoer.
Fixed DBD::File finish() method to return 1 thanks to Jan Dubois.

Changed bind_param_array() so it doesn't require all bind arrays
to have the same number of elements.
Expand Down
2 changes: 1 addition & 1 deletion dbivport.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
#define DBIh_SET_ERR_CHAR(h, imp_xxh, err_c, err_i, errstr, state, method) \
sv_setiv(DBIc_ERR(imp_xxh), err_i); \
(state) ? sv_setpv(DBIc_STATE(imp_xxh), state) : SvOK_off(DBIc_STATE(imp_xxh)); \
(state) ? (void)sv_setpv(DBIc_STATE(imp_xxh), state) : (void)SvOK_off(DBIc_STATE(imp_xxh)); \
sv_setpv(DBIc_ERRSTR(imp_xxh), errstr)
#endif

Expand Down
1 change: 1 addition & 0 deletions lib/DBD/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ sub finish {
my $sth = shift;
$sth->{Active}=0;
delete $sth->{f_stmt}->{data};
return 1;
}
sub fetch ($) {
my $sth = shift;
Expand Down
6 changes: 3 additions & 3 deletions lib/DBI/DBD.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3684,14 +3684,14 @@ sub dbd_edit_mm_attribs {
# so 'make' creates them and 'make clean' deletes them
my %test_variants = (
pp => { name => "DBI::PurePerl",
add => [ '$ENV{DBI_PUREPERL}=2;' ],
add => [ 'local $ENV{DBI_PUREPERL} = 2;' ],
},
mx => { name => "DBD::Multiplex",
add => [ q{$ENV{DBI_AUTOPROXY}='dbi:Multiplex:';} ],
add => [ q{local $ENV{DBI_AUTOPROXY} = 'dbi:Multiplex:';} ],
}
# px => { name => "DBD::Proxy",
# need mechanism for starting/stopping the proxy server
# add => [ q{$ENV{DBI_AUTOPROXY}='dbi:Proxy:XXX';} ],
# add => [ q{local $ENV{DBI_AUTOPROXY} = 'dbi:Proxy:XXX';} ],
# }
);
# currently many tests fail - DBD::Multiplex needs more work
Expand Down
2 changes: 1 addition & 1 deletion lib/DBI/PurePerl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ sub hash {
elsif ($type == 1) { # Fowler/Noll/Vo hash
# see http://www.isthe.com/chongo/tech/comp/fnv/
require Math::BigInt; # feel free to reimplement w/o BigInt!
my $version = $Math::BigInt::VERSION || 0;
(my $version = $Math::BigInt::VERSION || 0) =~ s/_.*//; # eg "1.70_01"
if ($version >= 1.56) {
$hash = Math::BigInt->new(0x811c9dc5);
for my $uchar (unpack ("C*", $key)) {
Expand Down

0 comments on commit add8e05

Please sign in to comment.