I have an AWS lamda function making an update to my RDS.
def lambda_handler(event, context):
connection = psycopg2.connect(user="****", password=****,
host=****, port="****",
database="****")
cursor = connection.cursor()
postgres_put_query = "UPDATE restaurant SET (item, price) = ('{0}','{1}') WHERE id = '{2}'".format(event['item'], event['price'], event['id'])
cursor.execute(postgres_put_query)
print(cursor.rowcount)
The print statement prints 1 as expected however when I look at the data in my database no updates were made.