if ($insert_ver) {
$sth = $dbh->prepare(qq|
insert into db_change (database_version,
script_name, run_date) values (?,?,?) |);
$sth->execute("$SQLFILES{$serverType[$serverIndex]}{DBVERSION}[$fileIndex]",
"$SQLFILES{$serverType[$serverIndex]}{FILENAME}[$fileIndex]",
"$currentDate");
}
I am getting the error shown below when I ran alter_db.pl
which is the script that updates the Informix database:
Can't call method "execute" on an undefined value at D:\ImageMark\opt\siips\classa\patches\alter_db.pl line 421.