Skip to content
Snippets Groups Projects
Commit c6462d22 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Do proper binding of parameters.

parent 67f92518
No related branches found
No related tags found
No related merge requests found
......@@ -341,11 +341,17 @@ sub run_coordinatemapping {
#---------------------------------------------------------------
my $sth = $xref_dbh->prepare_cached($sql);
$sth->execute( $species_id, $chr_name,
$gene->strand(), $transcript->start(),
$transcript->end(), $transcript->start(),
$transcript->end(), $transcript->start(),
$transcript->end() );
$sth->bind_param( 1, $species_id, SQL_INTEGER );
$sth->bind_param( 2, $chr_name, SQL_VARCHAR );
$sth->bind_param( 3, $gene->strand(), SQL_INTEGER );
$sth->bind_param( 4, $transcript->start(), SQL_INTEGER );
$sth->bind_param( 5, $transcript->end(), SQL_INTEGER );
$sth->bind_param( 6, $transcript->start(), SQL_INTEGER );
$sth->bind_param( 7, $transcript->end(), SQL_INTEGER );
$sth->bind_param( 8, $transcript->start(), SQL_INTEGER );
$sth->bind_param( 9, $transcript->end(), SQL_INTEGER );
$sth->execute();
my ( $coord_xref_id, $accession, $txStart, $txEnd, $cdsStart,
$cdsEnd, $exonStarts, $exonEnds );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment