trac

psycopg2 TypeError: not all arguments converted during string formatting

psycopg2 TypeError: not all arguments converted during string formatting Question: I’m trying execute a simple query, but getting this error no matter how I pass the parameters. Here is the query (I’m using Trac db object to connect to a DB): cursor.execute(“””SELECT name FROM “%s”.customer WHERE firm_id=’%s'””” % (schema, each[‘id’])) schema and each[‘id’] both are …

Total answers: 7