Drop printf ordering and omit COLLATE in artist queries
This commit is contained in:
parent
fc4740ae95
commit
edac021bab
1 changed files with 3 additions and 3 deletions
|
@ -1460,7 +1460,7 @@
|
||||||
const baseRowsSql = `
|
const baseRowsSql = `
|
||||||
SELECT id, name
|
SELECT id, name
|
||||||
FROM artists
|
FROM artists
|
||||||
ORDER BY printf('%s', name) COLLATE NOCASE
|
ORDER BY name
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
`;
|
`;
|
||||||
const countSql = 'SELECT COUNT(*) AS count FROM artists WHERE name LIKE ? ESCAPE "\\"';
|
const countSql = 'SELECT COUNT(*) AS count FROM artists WHERE name LIKE ? ESCAPE "\\"';
|
||||||
|
@ -1468,7 +1468,7 @@
|
||||||
SELECT id, name
|
SELECT id, name
|
||||||
FROM artists
|
FROM artists
|
||||||
WHERE name LIKE ? ESCAPE "\\"
|
WHERE name LIKE ? ESCAPE "\\"
|
||||||
ORDER BY printf('%s', name) COLLATE NOCASE
|
ORDER BY name
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
`;
|
`;
|
||||||
const ftsCountSql = `
|
const ftsCountSql = `
|
||||||
|
@ -1488,7 +1488,7 @@
|
||||||
JOIN artists a ON a.id = t.artist_id
|
JOIN artists a ON a.id = t.artist_id
|
||||||
WHERE fts_tracks MATCH ?
|
WHERE fts_tracks MATCH ?
|
||||||
GROUP BY a.id
|
GROUP BY a.id
|
||||||
ORDER BY printf('%s', a.name) COLLATE NOCASE
|
ORDER BY a.name
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue