title: Value '0' (Zero) not getting updated in Postgres database when updation is performed using database query written using go-gorm
body: <p>I'm trying to update an existing record in PostgreSQL database. I have a column which accepts integers. I have tried doing the update using db query written in gorm. All the integers are getting updated except <code>0</code> (zero).</p>
  
  <p>Can anyone help me fix this issue? </p>
  
  <pre><code>type RoleTypes struct {
      ID       int `gorm:"primary_key,AUTO_INCREMENT"`
      RoleName string
      IsEnable int
  }
  </code></pre>
  
  <p>Below is the db query:</p>
  
  <pre><code>func UpdateRoles(db *gorm.DB, r *models.RoleTypes) (err error) {
      Logr.Debug("Inside UpdateRoles method")
  
      if err = db.Debug().Model(&amp;r).Where("ID=?", r.ID).Update(&amp;r).Error; err != nil {
          Logr.Error("error occured!!", zap.Any("Error", err))
          return err
      }
      return nil
  }
  </code></pre>
  
  <p>I'm trying to Update the <code>IsEnable</code> to <code>0</code> (Zero).</p>