Im trying to update multiple columns in the same table. Im using node-postgres Here is what my code looks like.
client.query('UPDATE mytable SET column1 = ($1), column2 = ($2) WHERE id = ($3)',[data.a,data.b,data.id]);
The code goes through with no errors however the columns don't get updated. The data (data.a,data.b,data.id) is defined properly.
Am I missing something vital?