Open GoogleCodeExporter opened 8 years ago
This is for Custom Browse v2.10.3296.
Original comment by dav...@gmail.com
on 9 Jan 2011 at 9:07
The problem also occurs with single quotes.
Original comment by dav...@gmail.com
on 9 Jan 2011 at 9:35
Looks like this may be a purely an SBS issue
http://forums.slimdevices.com/showthread.php?t=83890
I'll test this tonight to see whether this fixes the problem.
Original comment by dav...@gmail.com
on 11 Jan 2011 at 7:55
Well, I've fixed the ICU errors, but the double quote problem is still present,
so it it does not seem related to the error I pasted in above.
Original comment by dav...@gmail.com
on 12 Jan 2011 at 4:00
The relevant SQL is
select distinct
customscan_track_attributes.extravalue,customscan_track_attributes.value,substr(
customscan_track_attributes.value,1,1),ifnull(customscan_track_attributes.valuet
ype,'mixedtagWORK') from customscan_track_attributes
where
module='mixedtag' and
attr='WORK' and
extravalue='Symphony No. 3 \"Eroica\"'
I think the backslashes are causing the problem. If I paste the query into the
Database Query plugin and remove the backslashes, the query seems to work. Was
escaping the double quotes necessary for mysql? It doesn't seem to work with
sqlite.
More from the log below:
[11-03-14 17:58:04.7566]
Plugins::CustomBrowse::MenuHandler::SQLHandler::getData (50) Preparing SQL:
select distinct customscan_track_attributes.extravalue,customscan_track_attributes.value,substr(customscan_track_attributes.value,1,1),ifnull(customscan_track_attributes.valuetype,'mixedtagWORK') from customscan_track_attributes
where
module='mixedtag' and
attr='WORK' and
extravalue='{context.itemid}'
[11-03-14 17:58:04.7584]
Plugins::CustomBrowse::MenuHandler::SQLHandler::_execute (72) Executing: select
distinct
customscan_track_attributes.extravalue,customscan_track_attributes.value,substr(
customscan_track_attributes.value,1,1),ifnull(customscan_track_attributes.valuet
ype,'mixedtagWORK') from customscan_track_attributes
where
module='mixedtag' and
attr='WORK' and
extravalue='Symphony No. 3 \"Eroica\"'
[11-03-14 17:58:04.7593]
Plugins::CustomBrowse::MenuHandler::SQLHandler::_execute (79) Executing and
collecting: select distinct
customscan_track_attributes.extravalue,customscan_track_attributes.value,substr(
customscan_track_attributes.value,1,1),ifnull(customscan_track_attributes.valuet
ype,'mixedtagWORK') from customscan_track_attributes
where
module='mixedtag' and
attr='WORK' and
extravalue='Symphony No. 3 \"Eroica\"'
[11-03-14 17:58:04.7606] Plugins::CustomBrowse::Plugin::cliJiveHandlerImpl
(4037) Exiting cliJiveHandler
Original comment by dav...@gmail.com
on 15 Mar 2011 at 1:11
I "fixed" this by brute force by adding a line below line 70 in SQLHandler.pm:
$sql =~ s/\\"/"/g;
Hopefully someone with more knowledge of Perl and this sql package can provide
a proper fix.
Original comment by dav...@gmail.com
on 15 Mar 2011 at 10:15
Original issue reported on code.google.com by
dav...@gmail.com
on 9 Jan 2011 at 9:05