>>> insert or ignore into library_track (library, track)
>>> select '%s', tracks.id
>>> from tracks
>>> where tracks.url like '%home%';
Looking at this again, I think the problem is the percent character: the
library code does use sprintf to replace placeholders. Such placeholders
start with a %. Thus most likely your SQL would result in something like
"where tracks.url like 'ome';" or similar - which would fail.
Use "where tracks.url like '%%home%%';" instead. This would tell sprintf
to return the literal % (http://perldoc.perl.org/functions/sprintf.html).
--
Michael
>>> select '%s', tracks.id
>>> from tracks
>>> where tracks.url like '%home%';
Looking at this again, I think the problem is the percent character: the
library code does use sprintf to replace placeholders. Such placeholders
start with a %. Thus most likely your SQL would result in something like
"where tracks.url like 'ome';" or similar - which would fail.
Use "where tracks.url like '%%home%%';" instead. This would tell sprintf
to return the literal % (http://perldoc.perl.org/functions/sprintf.html).
--
Michael