When running DBMaker perl sample program ("demo.pl") on DBMaker 5.0, what should be noticed by user?

~ 0 min
2016-03-08 11:00

 Suppose that version of DBD::DBMaker is 0.15:

 

1. Notice version of DBMaker: the original Makefile.PL may contain the entry at line12:

my $DEFAULTVER = '3.7';

Modify the entry as follows:

my $DEFAULTVER = '5.0';

2. User may meet: the "fetchrow_hashref" method in demo.pl program did not get correct result and it only shows "0" in each row

It’s a bug of demo.pl sample, because DBMaker 4.x and 5.x has updated the policy for case sensitive (IDCAP=1 default), so demo.pl should be modified as following:

$hash_ref->{"Id"},$hash_ref->{"Name"},$hash_ref->{"Title"},$hash_ref->{"Phone"});

==>

$hash_ref->{"ID"},$hash_ref->{"NAME"},$hash_ref->{"TITLE"},$hash_ref->{"PHONE

Average rating 0 (0 Votes)

You cannot comment on this entry

Tags