Commit f9336c6b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Single quote string that contains fancy

sprintf() formatting including '%1$s'.
parent 256053d4
......@@ -1517,9 +1517,9 @@ sub get_stable_ids {
my ( $self, $type, $string, $hashref ) = @_;
my $sql =
sprintf( "SELECT %1$s_id, stable_id "
. "FROM %1$s_stable_id "
. "WHERE %1$s_id IN ( %2$s )",
sprintf( 'SELECT %1$s_id, stable_id '
. 'FROM %1$s_stable_id '
. 'WHERE %1$s_id IN ( %2$s )',
$type, $string );
my $sth = $self->core->dbc->prepare($sql);
......
Markdown is supported
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