Here's my query:
QUERY = """
UPDATE my_table
SET
my_prop=:foo
WHERE hello='world'
"""
I execute the statement like this:
sqlalchemy_engine.execute(QUERY, foo='bar')
When I do I get the following error:
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) syntax error at or near ":"
UPDATE my_table\n SET\n my_prop.foo = :foo
^
I've never run into problems before passing values into the SQL Alchemy execute. What am I doing wrong?