ソースを参照

fix: (wip) invalid input (NULL) error while scanning some files

Fela Maslen 5 年 前
コミット
b1813f5fc0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      music-player/pkg/repository/scan.go

+ 1 - 1
music-player/pkg/repository/scan.go

@@ -41,7 +41,7 @@ func InsertMusicIntoDatabase(songs chan *read.Song) {
           ,relative_path
           ,modified_date
         )
-        values ($1, $2, $3, $4, $5, $6, $7, $8)
+        values ($1, $2::integer, $3, $4, $5::integer, $6, $7, $8::integer)
         on conflict (base_path, relative_path) do update
         set
           title = excluded.title