Weird query issue. If I put this into the batch tab (pasting directly or linking):
DROP VIEW IF EXISTS view_albumartist;
CREATE VIEW view_albumartist AS
SELECT CASE albumartist
, 1, 1
WHERE CAST(ifnull(hideflags, 0) AS INTEGER) < 2
AND filename_ext NOT LIKE '%.wav'
DROP VIEW IF EXISTS tree_library_albumartist;
CREATE VIEW tree_library_albumartist AS
SELECT (CASE WHEN initial >= ' ' AND initial <= 'B' THEN '# to B'
WHEN initial >= 'C' AND initial <= 'D' THEN 'C to D'
WHEN initial >= 'E' AND initial <= 'G' THEN 'E to G'
WHEN initial >= 'H' AND initial <= 'L' THEN 'H to L'
WHEN initial >= 'M' AND initial <= 'O' THEN 'M to O'
WHEN initial >= 'P' AND initial <= 'S' THEN 'P to S'
ELSE 'T to Z, Various'
||' (' || substr(datesortcoal, 1, 4) || ')'
ORDER BY albumartistsortcoal
…and then this into the query tab:
…then things work as expected.
However, if I put just that first SELECT statement in the batch and the SELECT portion of the second one (minus the path and subsong fields) into the query, then the treeview will fill with all the right nodes, but nothing will be sent to the playlist on clicking.
Further puzzler: the working version will not work if the Omit not existing files when sending to a playlist box is checked, only working when it is not. I like to think that the files exist: they play like they do.