// modPrivItem updates a priv DB entry
modPrivItem updates a priv DB entry
// modPrivItem updates a priv DB entry
func modPrivItem(db *sql.DB, name, privs string) error {
	sql_modPrivItem := `UPDATE privileges SET privileges = ? WHERE name = ?;`
	stmt, err := db.Prepare(sql_modPrivItem)
	if err != nil {
		return err
	}
	defer stmt.Close()
	_, err = stmt.Exec(privs, name)
	if err != nil {
		return err
	}
	return nil
}
func modPrivItem ( db * sql . DB , name , privs string ) error { sql_modPrivItem := `UPDATE privileges SET privileges = ? WHERE name = ?;` stmt , err := db . Prepare ( sql_modPrivItem ) if err != nil { return err } defer stmt . Close ( ) _ , err = stmt . Exec ( privs , name ) if err != nil { return err } return nil }
modPrivItem updates a priv DB entry
modPrivItem updates a priv DB entry