Properly escape sql query for loadTrack (#877)

This commit is contained in:
Luck 2018-03-30 21:50:03 +01:00
parent 72f9de6cc7
commit f63d6cfced
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -106,7 +106,7 @@ public class SqlDao extends AbstractDao {
private static final String GROUP_DELETE = "DELETE FROM {prefix}groups WHERE name=?";
private static final String TRACK_INSERT = "INSERT INTO {prefix}tracks VALUES(?, ?)";
private static final String TRACK_SELECT = "SELECT groups FROM {prefix}tracks WHERE name=?";
private static final String TRACK_SELECT = "SELECT 'groups' FROM {prefix}tracks WHERE name=?";
private static final String TRACK_SELECT_ALL = "SELECT * FROM {prefix}tracks";
private static final String TRACK_UPDATE = "UPDATE {prefix}tracks SET groups=? WHERE name=?";
private static final String TRACK_DELETE = "DELETE FROM {prefix}tracks WHERE name=?";