Ver Fonte

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

Fela Maslen há 5 anos atrás
pai
commit
b1813f5fc0
1 ficheiros alterados com 1 adições e 1 exclusões
  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