[Koha] error on installing koha

Eric G. Salayon esalayon at tip.edu.ph
Thu Feb 10 14:19:18 NZDT 2005


guys,

   good morning to all. i'd install koha in fedora core 2 linux here in
our office. it encountered an error:

DBD:mysql ::st execute failed: Invalid default valude for 'aqbudgetid' at
scripts/updater/updatedatabase line 1025
DBD:mysql ::st execute failed: Invalid default valude for 'id' at
scripts/updater/updatedatabase line 1025


what can i do to correct this? below is the section where the error happens
the last line '$sth->execute($default);' is line 1025

# if it's a primary key, drop the previous pk, before altering the table
                        my $sth;
                        if ($key ne 'PRIMARY KEY') {
                                $sth =$dbh->prepare("alter table $table
$action $field $type $null $key $extra
default ?");
                        } else {
                                $sth =$dbh->prepare("alter table $table
drop primary key, $action $field $type
$null $key $extra default ?");
                        }
                        $sth->execute($default);

hope to hear asap from you guys, TIA!!!

ERIC




More information about the Koha mailing list