Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError: dict is not a sequence

# If you're using SQLAlchemy:
# Use "%%" instead of "%" in your queries, because
# a single "%" is used in Python string formatting.

# Alternatively escape the SQL properly with sqlalchemy.text(...):
engine.execute(sqlalchemy.text(sql_query))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dict #sequence
ADD COMMENT
Topic
Name
5+6 =