From 7b304cf57d2d48343369e557fc5b1378793c9e78 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Tue, 27 Dec 2016 22:41:12 -0700 Subject: [PATCH] Fix sql type error for postgres Signed-off-by: Andrew DeMaria --- .../src/main/java/org/libresonic/player/dao/MusicFolderDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/dao/MusicFolderDao.java b/libresonic-main/src/main/java/org/libresonic/player/dao/MusicFolderDao.java index 705739f0..21b88606 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/dao/MusicFolderDao.java +++ b/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);