Commit 56e20822 by Torkel Ödegaard

Merge pull request #3157 from utkarshcmu/postgres

Fixed user deletion in Postgres SQL
parents d7ee7cb8 fe2d8f1e
...@@ -321,7 +321,7 @@ func DeleteUser(cmd *m.DeleteUserCommand) error { ...@@ -321,7 +321,7 @@ func DeleteUser(cmd *m.DeleteUserCommand) error {
return inTransaction(func(sess *xorm.Session) error { return inTransaction(func(sess *xorm.Session) error {
deletes := []string{ deletes := []string{
"DELETE FROM star WHERE user_id = ?", "DELETE FROM star WHERE user_id = ?",
"DELETE FROM user WHERE id = ?", "DELETE FROM " + dialect.Quote("user") + " WHERE id = ?",
} }
for _, sql := range deletes { for _, sql := range deletes {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment