title: Trying to update column on C# using Npgsql
body: <p>I'm trying to update the value of a column using Npgsql (PostgreSQL) and Visual Studio 2015. This is a "Forgot your Password?" form.</p>
  
  <p>The user needs to enter two variables in order to accomplish the reset (an if condition):
  1. enter the SSN (aka RG in Brazil); and
  2. enter a user-specific code that is unchangeable.</p>
  
  <p>What happens is: when I try to change the value (using the command below), nothing happens. </p>
  
  <pre><code>NpgsqlCommand command = new NpgsqlCommand("UPDATE dbschema.dbtable SET senha = '" + textBox2.Text + "' WHERE rg = '" + textBox2.Text + "'");
  </code></pre>
  
  <p>The if condition executes perfectly (I tied the if command to a Message box, where it shows that the password has been successfully reseted - a sign that the if condition was indeed executed) - the only thing that doesn't happen right now is the password update (which might be a minor feature in the release, as I'd prefer to reset myself on the database). I tried several changes in the code, with no success yet.</p>
  
  <p>Thanks in advance for the help.</p>
  
  <p>Lucas </p>