@@ -65,19 +65,22 @@ $sth->bind_columns(\$contig_coord_id) || die "What a bind NOT";
$sth->fetch()||die"Could not fetch coord_system_id";
$sth->finish;
my$get_code_sth=$dba->dbc->prepare("select attrib_type_id from attrib_type where code like ?");
my$get_seq_region_sth=$dba->dbc->prepare("select seq_region_id, length from seq_region where name like ?")
||die"Could not prepare get_seq_region_sth";
my$get_seq_region_id_sth=$dba->dbc->prepare("select seq_region_id from seq_region where coord_system_id = ? and name like ?")
my$get_seq_region_id_sth=$dba->dbc->prepare("select seq_region_id, length from seq_region where coord_system_id = ? and name like ?")
||die"Could not prepare get_seq_region_id_sth";
my$get_seq_id_sth=$dba->dbc->prepare("select sr.seq_region_id from seq_region sr , coord_system cs where sr.name like ? and cs.coord_system_id = sr.coord_system_id and cs.attrib like '%sequence%'");
my$insert_seq_region_sth=$dba->dbc->prepare("insert into seq_region (seq_region_id, name, coord_system_id, length) values(?, ?, ?, ?)")||die"Could not prepare seq_region insert sql";
#my $insert_seq_region_sth = $dba->dbc->prepare("insert into seq_region (seq_region_id, name, coord_system_id, length) values(?, ?, ?, ?)") || die "Could not prepare seq_region insert sql";
my$insert_dna_sth=$dba->dbc->prepare("insert into dna (seq_region_id, sequence) values (?, ?)")
||die"Could not prepare insert dna sql";
#my $insert_dna_sth = $dba->dbc->prepare("insert into dna (seq_region_id, sequence) values (?, ?)")