Fix sql type error for postgres

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent 49dc5176d5
commit 7b304cf57d
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/dao/MusicFolderDao.java

@ -59,7 +59,7 @@ public class MusicFolderDao extends AbstractDao {
*/
public void createMusicFolder(MusicFolder musicFolder) {
String sql = "insert into music_folder (" + INSERT_COLUMNS + ") values (?, ?, ?, ?)";
update(sql, musicFolder.getPath(), musicFolder.getName(), musicFolder.isEnabled(), musicFolder.getChanged());
update(sql, musicFolder.getPath().getPath(), musicFolder.getName(), musicFolder.isEnabled(), musicFolder.getChanged());
Integer id = queryForInt("select max(id) from music_folder", 0);
update("insert into music_folder_user (music_folder_id, username) select ?, username from " + userDao.getUserTable(), id);

Loading…
Cancel
Save