You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I called the bellow api , this error of pq: null value in column "favorites_count" of relation "articles" violates not-null constraint is happend.
I think this bellow query is not correct, because the col of favorites_count is not included in the artcle table.
When I deleted favorites_count and $6 and article.FavoritesCount, it is workd correctly
When I called the bellow api , this error of
pq: null value in column "favorites_count" of relation "articles" violates not-null constraint
is happend.I think this bellow query is not correct, because the col of
favorites_count
is not included in the artcle table.When I deleted
favorites_count
and$6
andarticle.FavoritesCount
, it is workd correctlygo-realworld/postgres/article.go
Lines 170 to 183 in d0c7055
The text was updated successfully, but these errors were encountered: